STAT on directories of PROC ???
Hello friends,
I am reading PROC directory through readdir().
I am successful in reading the directories in PROC
but i am not able to differentiate among them as
directory or file.
FUNCTION stat() runs good for . and ..
but for other it returns -1 since these are not
regular files.
Can anyone tell me how to differential them into
files or directories ?
|