Lines Matching defs:statbuf
25 static int true_action(const char *fileName, struct stat *statbuf,
40 * 0: lstat(statbuf). Calls fileAction on link name even if points to dir.
41 * 1: stat(statbuf). Calls dirAction and optionally recurse on link to dir.
46 int (*fileAction)(const char *fileName, struct stat *statbuf, void* userData, int depth),
47 int (*dirAction)(const char *fileName, struct stat *statbuf, void* userData, int depth),
51 struct stat statbuf;
61 status = ((flags & status) ? stat : lstat)(fileName, &statbuf);
72 if ( /* (!(flags & ACTION_FOLLOWLINKS) && S_ISLNK(statbuf.st_mode)) || */
73 !S_ISDIR(statbuf.st_mode)
75 return fileAction(fileName, &statbuf, userData, depth);
81 return dirAction(fileName, &statbuf, userData, depth);
85 status = dirAction(fileName, &statbuf, userData, depth);
114 if (!dirAction(fileName, &statbuf, userData, depth))