/openbsd/bin/ls/ |
H A D | cmp.c | 60 if (b->fts_statp->st_mtime > a->fts_statp->st_mtime) in modcmp() 62 else if (b->fts_statp->st_mtime < a->fts_statp->st_mtime) in modcmp() 75 if (b->fts_statp->st_mtime > a->fts_statp->st_mtime) in revmodcmp() 90 if (b->fts_statp->st_atime > a->fts_statp->st_atime) in acccmp() 105 if (b->fts_statp->st_atime > a->fts_statp->st_atime) in revacccmp() 120 if (b->fts_statp->st_ctime > a->fts_statp->st_ctime) in statcmp() 135 if (b->fts_statp->st_ctime > a->fts_statp->st_ctime) in revstatcmp() 150 if (b->fts_statp->st_size > a->fts_statp->st_size) in sizecmp() 152 if (b->fts_statp->st_size < a->fts_statp->st_size) in sizecmp() 161 if (b->fts_statp->st_size > a->fts_statp->st_size) in revsizecmp() [all …]
|
H A D | print.c | 97 sp = p->fts_statp; in printlong() 226 sp = p->fts_statp; in printaname()
|
H A D | ls.c | 483 sp = cur->fts_statp; in display()
|
/openbsd/usr.sbin/mtree/ |
H A D | create.c | 157 if (p->fts_statp->st_uid != uid) { in statf() 164 p->fts_statp->st_uid); in statf() 170 if (p->fts_statp->st_gid != gid) { in statf() 177 p->fts_statp->st_gid); in statf() 189 (long long)p->fts_statp->st_size); in statf() 193 p->fts_statp->st_mtim.tv_nsec); in statf() 299 smode = p->fts_statp->st_mode & MBITS; in statd() 304 sgid = p->fts_statp->st_gid; in statd() 309 suid = p->fts_statp->st_uid; in statd() 360 if (S_ISDIR((*a)->fts_statp->st_mode)) { in dsort() [all …]
|
H A D | compare.c | 84 if (!S_ISBLK(p->fts_statp->st_mode)) in compare() 88 if (!S_ISCHR(p->fts_statp->st_mode)) in compare() 92 if (!S_ISDIR(p->fts_statp->st_mode)) in compare() 96 if (!S_ISFIFO(p->fts_statp->st_mode)) in compare() 100 if (!S_ISREG(p->fts_statp->st_mode)) in compare() 104 if (!S_ISLNK(p->fts_statp->st_mode)) in compare() 108 if (!S_ISSOCK(p->fts_statp->st_mode)) { in compare() 119 tab, s->st_uid, p->fts_statp->st_uid); in compare() 150 mode = p->fts_statp->st_mode & MBITS; in compare() 187 (long long)p->fts_statp->st_size); in compare() [all …]
|
H A D | verify.c | 129 if ((S_ISDIR(p->fts_statp->st_mode) in vwalk()
|
/openbsd/usr.bin/find/ |
H A D | function.c | 179 COMPARE((now - entry->fts_statp->st_atime + in f_amin() 206 COMPARE((now - entry->fts_statp->st_atime + in f_atime() 234 COMPARE((now - entry->fts_statp->st_ctime + in f_cmin() 261 COMPARE((now - entry->fts_statp->st_ctime + in f_ctime() 333 if (S_ISDIR(entry->fts_statp->st_mode)) { in f_delete() 364 if (S_ISREG(entry->fts_statp->st_mode) && entry->fts_statp->st_size == 0) in f_empty() 366 if (S_ISDIR(entry->fts_statp->st_mode)) { in f_empty() 791 flags = entry->fts_statp->st_flags & in f_flags() 858 curdev = entry->fts_statp->st_dev; in f_fstype() 1364 mode = entry->fts_statp->st_mode & in f_perm() [all …]
|
/openbsd/bin/cp/ |
H A D | cp.c | 377 if (pflag && setfile(curr->fts_statp, -1)) in copy() 381 curr->fts_statp->st_mode); in copy() 384 if (to_stat.st_dev == curr->fts_statp->st_dev && in copy() 385 to_stat.st_ino == curr->fts_statp->st_ino) { in copy() 389 if (S_ISDIR(curr->fts_statp->st_mode)) in copy() 393 if (!S_ISDIR(curr->fts_statp->st_mode) && in copy() 402 switch (curr->fts_statp->st_mode & S_IFMT) { in copy() 428 curr->fts_statp->st_mode | S_IRWXU) == -1) in copy() 439 if ((cval = copy_special(curr->fts_statp, in copy() 452 if ((cval = copy_fifo(curr->fts_statp, in copy()
|
H A D | utils.c | 82 fs = entp->fts_statp; in copy_file() 220 return (pflag ? setfile(p->fts_statp, -1) : 0); in copy_link()
|
/openbsd/usr.bin/du/ |
H A D | du.c | 170 p->fts_number += p->fts_statp->st_blocks; in main() 172 totalblocks += p->fts_statp->st_blocks; in main() 192 if (p->fts_statp->st_nlink > 1 && linkchk(p)) in main() 200 prtout(howmany(p->fts_statp->st_blocks, in main() 202 p->fts_parent->fts_number += p->fts_statp->st_blocks; in main() 204 totalblocks += p->fts_statp->st_blocks; in main() 250 st = p->fts_statp; in linkchk()
|
/openbsd/bin/mv/ |
H A D | cp.c | 318 if (setfile(curr->fts_statp, -1)) in copy() 322 curr->fts_statp->st_mode); in copy() 325 if (to_stat.st_dev == curr->fts_statp->st_dev && in copy() 326 to_stat.st_ino == curr->fts_statp->st_ino) { in copy() 330 if (S_ISDIR(curr->fts_statp->st_mode)) in copy() 334 if (!S_ISDIR(curr->fts_statp->st_mode) && in copy() 343 switch (curr->fts_statp->st_mode & S_IFMT) { in copy() 359 curr->fts_statp->st_mode | S_IRWXU) == -1) in copy() 370 if (copy_fifo(curr->fts_statp, !fts_dne(curr))) in copy() 466 fs = entp->fts_statp; in copy_file() [all …]
|
/openbsd/usr.sbin/dev_mkdb/ |
H A D | dev_mkdb.c | 115 if (S_ISCHR(dp->fts_statp->st_mode)) in main() 117 else if (S_ISBLK(dp->fts_statp->st_mode)) in main() 121 bkey.dev = dp->fts_statp->st_rdev; in main()
|
/openbsd/usr.bin/rsync/ |
H A D | flist.c | 205 S_ISCHR(ent->fts_statp->st_mode))) || in flist_fts_check() 207 (S_ISFIFO(ent->fts_statp->st_mode) || in flist_fts_check() 208 S_ISSOCK(ent->fts_statp->st_mode)))) { in flist_fts_check() 907 assert(ent->fts_statp != NULL); in flist_gen_dirent() 908 if (S_ISLNK(ent->fts_statp->st_mode) && in flist_gen_dirent() 929 !S_ISDIR(ent->fts_statp->st_mode)) in flist_gen_dirent() 947 xdev[nxdev] = ent->fts_statp->st_dev; in flist_gen_dirent() 985 flist_copy_stat(f, ent->fts_statp); in flist_gen_dirent() 989 if (S_ISLNK(ent->fts_statp->st_mode)) { in flist_gen_dirent() 1295 assert(ent->fts_statp != NULL); in flist_gen_dels() [all …]
|
/openbsd/bin/pax/ |
H A D | ftree.c | 408 do_atdir(ftent->fts_path, ftent->fts_statp->st_dev, in next_file() 409 ftent->fts_statp->st_ino); in next_file() 440 memcpy(&arcn->sb, ftent->fts_statp, sizeof(arcn->sb)); in next_file()
|
/openbsd/usr.bin/compress/ |
H A D | main.c | 406 stat(_infile, entry->fts_statp) == in main() 408 S_ISREG(entry->fts_statp->st_mode)) { in main() 420 if (!S_ISREG(entry->fts_statp->st_mode) && in main() 421 !(S_ISLNK(entry->fts_statp->st_mode) && in main() 466 error = dodecompress(infile, outfile, entry->fts_statp); in main() 468 error = docompress(infile, outfile, method, bits, entry->fts_statp); in main()
|
/openbsd/bin/rm/ |
H A D | rm.c | 182 p->fts_statp)) { in rm_tree() 194 !check(p->fts_path, p->fts_accpath, p->fts_statp)) in rm_tree() 219 FTS_NSOK ? NULL : p->fts_statp); in rm_tree()
|
/openbsd/bin/chmod/ |
H A D | chmod.c | 265 getmode(set, p->fts_statp->st_mode), atflags) in main() 274 (p->fts_statp->st_flags | fset) & fclear, atflags)) in main()
|
/openbsd/lib/libc/gen/ |
H A D | ftw.c | 78 error = fn(cur->fts_path, cur->fts_statp, fnflag); in ftw()
|
H A D | nftw.c | 96 error = fn(cur->fts_path, cur->fts_statp, fnflag, &ftw); in nftw()
|
H A D | fts.c | 810 sbp = ISSET(FTS_NOSTAT) ? &sb : p->fts_statp; in fts_stat() 927 p->fts_statp = (struct stat *)ALIGN(p->fts_name + namelen + 2); in fts_alloc()
|
/openbsd/include/ |
H A D | fts.h | 112 struct stat *fts_statp; /* stat(2) information */ member
|
/openbsd/usr.sbin/smtpd/ |
H A D | smtpd.c | 1566 if (e->fts_statp->st_gid != e->fts_parent->fts_statp->st_gid) in offline_scan() 1569 if (e->fts_statp->st_size == 0) { in offline_scan() 1575 if (offline_add(e->fts_name, e->fts_statp->st_uid, in offline_scan() 1576 e->fts_statp->st_gid)) { in offline_scan()
|
H A D | queue_fs.c | 610 if (timespeccmp(&e->fts_statp->st_mtim, &startup, >)) in fsqueue_qwalk()
|
/openbsd/regress/lib/libc/sys/ |
H A D | t_stat.c | 143 if (sb.st_ino != ftse->fts_statp->st_ino) in ATF_TC_BODY()
|
/openbsd/usr.bin/mandoc/ |
H A D | mandocdb.c | 590 if (stat(path, ff->fts_statp) == -1) { in treescan() 595 if ((ff->fts_statp->st_mode & S_IFMT) != S_IFREG) in treescan() 664 mlink_add(mlink, ff->fts_statp); in treescan()
|