Lines Matching defs:flags
23 static int do_nftw(char *path, int (*fn)(const char *, const struct stat *, int, struct FTW *), int fd_limit, int flags, struct history *h)
34 if ((flags & FTW_PHYS) ? lstat(path, &st) : stat(path, &st) < 0) {
35 if (!(flags & FTW_PHYS) && errno==ENOENT && !lstat(path, &st))
40 if (flags & FTW_DEPTH) type = FTW_DP;
43 if (flags & FTW_PHYS) type = FTW_SL;
49 if ((flags & FTW_MOUNT) && h && st.st_dev != h->dev)
75 if (!(flags & FTW_DEPTH) && (r=fn(path, &st, type, &lev)))
103 if ((r=do_nftw(path, fn, fd_limit-1, flags, &new))) {
117 if ((flags & FTW_DEPTH) && (r=fn(path, &st, type, &lev)))
123 int nftw(const char *path, int (*fn)(const char *, const struct stat *, int, struct FTW *), int fd_limit, int flags)
139 r = do_nftw(pathbuf, fn, fd_limit, flags, NULL);