Lines Matching refs:statbuf
68 typedef int (*action_fp)(const char *fileName, struct stat *statbuf, void *);
77 #define ACTF(name) static int func_##name(const char *fileName, struct stat *statbuf, action_##name* ap)
137 static int exec_actions(action ***appp, const char *fileName, struct stat *statbuf)
169 rc |= TRUE ^ ap->f(fileName, statbuf, ap);
215 return ((statbuf->st_mode & S_IFMT) == ap->type_mask);
223 return (statbuf->st_mode & ap->perm_mask) != 0;
226 return (statbuf->st_mode & ap->perm_mask) == ap->perm_mask;
228 return (statbuf->st_mode & 07777) == ap->perm_mask;
234 time_t file_age = time(NULL) - statbuf->st_mtime;
247 time_t file_age = time(NULL) - statbuf->st_mtime;
260 return (ap->newer_mtime < statbuf->st_mtime);
266 return (statbuf->st_ino == ap->inode_num);
291 return (statbuf->st_uid == ap->uid);
297 return (statbuf->st_gid == ap->gid);
315 return exec_actions(ap->subexpr, fileName, statbuf);
322 return statbuf->st_size > ap->size;
324 return statbuf->st_size < ap->size;
325 return statbuf->st_size == ap->size;
344 if (S_ISDIR(statbuf->st_mode)) {
374 static int fileAction(const char *fileName, struct stat *statbuf, void *userData, int depth)
384 if (S_ISDIR(statbuf->st_mode) && xdev_count) {
386 if (xdev_dev[i] == statbuf->st_dev)
393 i = exec_actions(actions, fileName, statbuf);