Lines Matching defs:flags
25 static int do_nftw(char *path, int (*fn)(const char *, const struct stat *, int, struct FTW *), int fd_limit, int flags, struct history *h)
40 if ((flags & FTW_PHYS) ? lstat(path, &st) : stat(path, &st) < 0) {
41 if (!(flags & FTW_PHYS) && errno==ENOENT && !lstat(path, &st))
49 } else if (flags & FTW_DEPTH) {
53 if (flags & FTW_DEPTH) type = FTW_DP;
57 if (flags & FTW_PHYS) type = FTW_SL;
63 if ((flags & FTW_MOUNT) && h && type != FTW_NS && st.st_dev != h->dev)
91 if (!(flags & FTW_DEPTH) && (r=fn(path, &st, type, &lev)))
122 if ((r=do_nftw(path, fn, fd_limit-1, flags, &new))) {
141 if ((flags & FTW_DEPTH) && (r=fn(path, &st, type, &lev)))
147 int nftw(const char *path, int (*fn)(const char *, const struct stat *, int, struct FTW *), int fd_limit, int flags)
163 r = do_nftw(pathbuf, fn, fd_limit, flags, NULL);