Lines Matching refs:statbuf

430 typedef int (*action_fp)(const char *fileName, const struct stat *statbuf, void *) FAST_FUNC;
442 const struct stat *statbuf UNUSED_PARAM, \
513 static int exec_actions(action ***appp, const char *fileName, const struct stat *statbuf) in exec_actions() argument
545 rc |= TRUE ^ ap->f(fileName, statbuf, ap); in exec_actions()
654 return ((statbuf->st_mode & S_IFMT) == ap->type_mask); in ACTF()
668 return (statbuf->st_mode & ap->perm_mask) != 0; in ACTF()
671 return (statbuf->st_mode & ap->perm_mask) == ap->perm_mask; in ACTF()
673 return (statbuf->st_mode & 07777) == ap->perm_mask; in ACTF()
684 static int time_cmp(const struct stat *statbuf, unsigned type_and_char, time_t N_from_user, unsigne…
688 ftime = statbuf->st_mtime;
692 ftime = statbuf->st_atime;
696 ftime = statbuf->st_ctime;
714 return time_cmp(statbuf, in ACTF()
725 return time_cmp(statbuf, in ACTF()
736 return (ap->newer_mtime < statbuf->st_mtime); in ACTF()
742 return (statbuf->st_ino == ap->inode_num); in ACTF()
748 return statbuf->st_ino == ap->inode_num && in ACTF()
749 statbuf->st_dev == ap->device; in ACTF()
860 return (statbuf->st_uid == ap->uid); in ACTF()
866 return (statbuf->st_gid == ap->gid); in ACTF()
884 return exec_actions(ap->subexpr, fileName, statbuf); in ACTF()
891 return statbuf->st_size > ap->size; in ACTF()
893 return statbuf->st_size < ap->size; in ACTF()
894 return statbuf->st_size == ap->size; in ACTF()
919 if (S_ISDIR(statbuf->st_mode)) { in ACTF()
935 if (S_ISDIR(statbuf->st_mode)) { in ACTF()
953 return S_ISREG(statbuf->st_mode) && statbuf->st_size == 0; in ACTF()
978 case '-' : return (statbuf->st_nlink < ap->links_count); in ACTF()
979 case '+' : return (statbuf->st_nlink > ap->links_count); in ACTF()
980 default: return (statbuf->st_nlink == ap->links_count); in ACTF()
988 struct stat *statbuf) in fileAction() argument
994 if (S_ISDIR(statbuf->st_mode) && G.xdev_count) { in fileAction()
997 if (G.xdev_dev[i] == statbuf->st_dev) in fileAction()
1016 r = exec_actions(G.actions, fileName, statbuf); in fileAction()
1022 if (S_ISDIR(statbuf->st_mode)) { in fileAction()