#214 cscope ignores symlinks to files
stat() stats the file pointed to by path and fills in buf.
lstat() is identical to stat(), except that if path is a symbolic link, then the link itself is stat-ed, not the file that it refers to.
This is the reason why cscope doesn't work symbolic link file.
Fix: I'm trying to use cscope to index a source tree that contains symlinks to files located outside of the tree. cscope won't process these files, since dir.c uses lstat() and checks for S_ISREG, which will never be true of the symlink itself. I can make cscope do what I want by changing the lstat() to stat() in accessible_file().
You donwload cscope source code form source forge https://sourceforge.net/projects/cscope/files/cscope/