Home
last modified time | relevance | path

Searched refs:fts_statp (Results 1 – 25 of 178) sorted by relevance

12345678

/dports/ftp/tnftpd/tnftpd-20200704/ls/
H A Dcmp.c97 if (b->fts_statp->st_mtime > a->fts_statp->st_mtime) in modcmp()
101 else if (MTIMENSEC_CMP(b->fts_statp, >, a->fts_statp)) in modcmp()
113 if (b->fts_statp->st_mtime > a->fts_statp->st_mtime) in revmodcmp()
129 if (b->fts_statp->st_atime > a->fts_statp->st_atime) in acccmp()
145 if (b->fts_statp->st_atime > a->fts_statp->st_atime) in revacccmp()
161 if (b->fts_statp->st_ctime > a->fts_statp->st_ctime) in statcmp()
177 if (b->fts_statp->st_ctime > a->fts_statp->st_ctime) in revstatcmp()
193 if (b->fts_statp->st_size > a->fts_statp->st_size) in sizecmp()
195 if (b->fts_statp->st_size < a->fts_statp->st_size) in sizecmp()
205 if (b->fts_statp->st_size > a->fts_statp->st_size) in revsizecmp()
[all …]
/dports/ftp/bsdftpd-ssl/bsdftpd-ssl-1.1.0/contrib/ls/
H A Dcmp.c75 return (b->fts_statp->st_mtime - a->fts_statp->st_mtime); in modcmp()
81 return (a->fts_statp->st_mtime - b->fts_statp->st_mtime); in revmodcmp()
87 return (b->fts_statp->st_atime - a->fts_statp->st_atime); in acccmp()
93 return (a->fts_statp->st_atime - b->fts_statp->st_atime); in revacccmp()
99 return (b->fts_statp->st_ctime - a->fts_statp->st_ctime); in statcmp()
105 return (a->fts_statp->st_ctime - b->fts_statp->st_ctime); in revstatcmp()
/dports/japanese/jls/ls/
H A Dcmp.c70 return (b->fts_statp->st_mtime - a->fts_statp->st_mtime); in modcmp()
76 return (a->fts_statp->st_mtime - b->fts_statp->st_mtime); in revmodcmp()
82 return (b->fts_statp->st_atime - a->fts_statp->st_atime); in acccmp()
88 return (a->fts_statp->st_atime - b->fts_statp->st_atime); in revacccmp()
94 return (b->fts_statp->st_ctime - a->fts_statp->st_ctime); in statcmp()
100 return (a->fts_statp->st_ctime - b->fts_statp->st_ctime); in revstatcmp()
/dports/misc/rump/buildrump.sh-b914579/src/usr.sbin/mtree/
H A Dcreate.c202 inotype(p->fts_statp->st_mode)); in statf()
209 p->fts_statp->st_uid); in statf()
217 p->fts_statp->st_gid); in statf()
221 p->fts_statp->st_mode & MBITS); in statf()
223 (S_ISBLK(p->fts_statp->st_mode) || S_ISCHR(p->fts_statp->st_mode))) in statf()
225 (uintmax_t)p->fts_statp->st_rdev); in statf()
231 (uintmax_t)p->fts_statp->st_size); in statf()
368 smode = p->fts_statp->st_mode & MBITS; in statd()
373 sgid = p->fts_statp->st_gid; in statd()
378 suid = p->fts_statp->st_uid; in statd()
[all …]
H A Dcompare.c149 if (!S_ISBLK(p->fts_statp->st_mode)) in compare()
153 if (!S_ISCHR(p->fts_statp->st_mode)) in compare()
157 if (!S_ISDIR(p->fts_statp->st_mode)) in compare()
161 if (!S_ISFIFO(p->fts_statp->st_mode)) in compare()
165 if (!S_ISREG(p->fts_statp->st_mode)) in compare()
169 if (!S_ISLNK(p->fts_statp->st_mode)) in compare()
174 if (!S_ISSOCK(p->fts_statp->st_mode)) in compare()
206 (uintmax_t)p->fts_statp->st_rdev); in compare()
213 p->fts_statp->st_gid) == -1) ) in compare()
266 mode = p->fts_statp->st_mode & MBITS; in compare()
[all …]
/dports/sysutils/vcp/vcp-2.2/
H A Dcopyall.c85 if(setperm(dest.path,ftsf->fts_statp) != 0) { in copyall()
86 mode = ftsf->fts_statp->st_mode; in copyall()
100 if((st.st_dev==ftsf->fts_statp->st_dev) && in copyall()
101 (st.st_ino==ftsf->fts_statp->st_ino)) { in copyall()
115 if(!S_ISDIR(ftsf->fts_statp->st_mode) && uflag) { in copyall()
116 if(st.st_size == ftsf->fts_statp->st_size &&\ in copyall()
117 difftime(st.st_mtime,ftsf->fts_statp->st_mtime) > 0) { in copyall()
129 switch(ftsf->fts_statp->st_mode & S_IFMT) { in copyall()
143 ftsf->fts_statp->st_mode | S_IRWXU) < 0) { in copyall()
163 copyspecial(dest.path,ftsf->fts_statp) ? ret = 1 : 0; in copyall()
[all …]
/dports/shells/ksh93-devel/ast-cc1bca27/src/lib/libcmd/
H A Drm.c77 #define beenhere(f) (((f)->fts_number>>1)==(f)->fts_statp->st_nlink)
81 #define retry(f) ((f)->fts_number=((f)->fts_statp->st_nlink<<1))
118 else if (state->fs3d && iview(ent->fts_statp)) in rm()
128 if (!chmod(ent->fts_name, (ent->fts_statp->st_mode & S_IPERM)|S_IRWXU)) in rm()
162 if (state->unconditional && (ent->fts_statp->st_mode & S_IRWXU) != S_IRWXU) in rm()
163 chmod(path, (ent->fts_statp->st_mode & S_IPERM)|S_IRWXU); in rm()
178 …t_nlink <= 2 || st.st_ino == ent->fts_parent->fts_statp->st_ino && st.st_dev == ent->fts_parent->f… in rm()
274 ent->fts_statp->st_uid != state->uid ? "``not owner''" : in rm()
275 fmtmode(ent->fts_statp->st_mode & S_IPERM, 0) + 1, ent->fts_path)) < 0 || in rm()
285 if (state->clobber && S_ISREG(ent->fts_statp->st_mode) && ent->fts_statp->st_size > 0) in rm()
[all …]
H A Dcp.c337 …if ((ent->fts_statp->st_mode & S_IPERM) != (st.st_mode & S_IPERM) && chmod(state->path, ent->fts_s… in visit()
340 preserve(state, state->path, &st, ent->fts_statp); in visit()
427 if (state->op != LN && st.st_dev == ent->fts_statp->st_dev && st.st_ino == ent->fts_statp->st_ino) in visit()
567 if (errno != EXDEV && (rm || S_ISDIR(ent->fts_statp->st_mode))) in visit()
577 if (S_ISLNK(ent->fts_statp->st_mode)) in visit()
591 else if (state->op == CP || S_ISREG(ent->fts_statp->st_mode) || S_ISDIR(ent->fts_statp->st_mode)) in visit()
601 if (ent->fts_statp->st_size > 0) in visit()
605 else if (ent->fts_statp->st_size > 0) in visit()
639 …else if (S_ISBLK(ent->fts_statp->st_mode) || S_ISCHR(ent->fts_statp->st_mode) || S_ISFIFO(ent->fts… in visit()
641 if (mknod(state->path, ent->fts_statp->st_mode, idevice(ent->fts_statp))) in visit()
[all …]
H A Dchgrp.c423 if ((unsigned long)ent->fts_statp->st_ctime >= before) in b_chgrp()
429 keys[0].uid = keys[1].uid = ent->fts_statp->st_uid; in b_chgrp()
430 keys[0].gid = keys[2].gid = ent->fts_statp->st_gid; in b_chgrp()
452 uid = ent->fts_statp->st_uid; in b_chgrp()
454 gid = ent->fts_statp->st_gid; in b_chgrp()
465 if (uid != ent->fts_statp->st_uid && uid != NOID || gid != ent->fts_statp->st_gid && gid != NOID) in b_chgrp()
471 ent->fts_statp->st_uid = 0; in b_chgrp()
472 ent->fts_statp->st_gid = 0; in b_chgrp()
474 …tdout, "%s uid:%05d->%05d gid:%05d->%05d %s\n", op, ent->fts_statp->st_uid, uid, ent->fts_statp->s… in b_chgrp()
/dports/shells/ksh93/ast-93u/src/lib/libcmd/
H A Drm.c77 #define beenhere(f) (((f)->fts_number>>1)==(f)->fts_statp->st_nlink)
81 #define retry(f) ((f)->fts_number=((f)->fts_statp->st_nlink<<1))
118 else if (state->fs3d && iview(ent->fts_statp)) in rm()
128 if (!chmod(ent->fts_name, (ent->fts_statp->st_mode & S_IPERM)|S_IRWXU)) in rm()
162 if (state->unconditional && (ent->fts_statp->st_mode & S_IRWXU) != S_IRWXU) in rm()
163 chmod(path, (ent->fts_statp->st_mode & S_IPERM)|S_IRWXU); in rm()
178 …t_nlink <= 2 || st.st_ino == ent->fts_parent->fts_statp->st_ino && st.st_dev == ent->fts_parent->f… in rm()
274 ent->fts_statp->st_uid != state->uid ? "``not owner''" : in rm()
275 fmtmode(ent->fts_statp->st_mode & S_IPERM, 0) + 1, ent->fts_path)) < 0 || in rm()
285 if (state->clobber && S_ISREG(ent->fts_statp->st_mode) && ent->fts_statp->st_size > 0) in rm()
[all …]
H A Dcp.c337 …if ((ent->fts_statp->st_mode & S_IPERM) != (st.st_mode & S_IPERM) && chmod(state->path, ent->fts_s… in visit()
340 preserve(state, state->path, &st, ent->fts_statp); in visit()
427 if (state->op != LN && st.st_dev == ent->fts_statp->st_dev && st.st_ino == ent->fts_statp->st_ino) in visit()
567 if (errno != EXDEV && (rm || S_ISDIR(ent->fts_statp->st_mode))) in visit()
577 if (S_ISLNK(ent->fts_statp->st_mode)) in visit()
591 else if (state->op == CP || S_ISREG(ent->fts_statp->st_mode) || S_ISDIR(ent->fts_statp->st_mode)) in visit()
601 if (ent->fts_statp->st_size > 0) in visit()
605 else if (ent->fts_statp->st_size > 0) in visit()
639 …else if (S_ISBLK(ent->fts_statp->st_mode) || S_ISCHR(ent->fts_statp->st_mode) || S_ISFIFO(ent->fts… in visit()
641 if (mknod(state->path, ent->fts_statp->st_mode, idevice(ent->fts_statp))) in visit()
[all …]
H A Dchgrp.c423 if ((unsigned long)ent->fts_statp->st_ctime >= before) in b_chgrp()
429 keys[0].uid = keys[1].uid = ent->fts_statp->st_uid; in b_chgrp()
430 keys[0].gid = keys[2].gid = ent->fts_statp->st_gid; in b_chgrp()
452 uid = ent->fts_statp->st_uid; in b_chgrp()
454 gid = ent->fts_statp->st_gid; in b_chgrp()
465 if (uid != ent->fts_statp->st_uid && uid != NOID || gid != ent->fts_statp->st_gid && gid != NOID) in b_chgrp()
471 ent->fts_statp->st_uid = 0; in b_chgrp()
472 ent->fts_statp->st_gid = 0; in b_chgrp()
474 …tdout, "%s uid:%05d->%05d gid:%05d->%05d %s\n", op, ent->fts_statp->st_uid, uid, ent->fts_statp->s… in b_chgrp()
/dports/shells/ast-ksh/ast-ksh93v/src/lib/libcmd/
H A Drm.c75 #define beenhere(f) (((f)->fts_number>>1)==(f)->fts_statp->st_nlink)
79 #define retry(f) ((f)->fts_number=((f)->fts_statp->st_nlink<<1))
116 else if (state->fs3d && iview(ent->fts_statp)) in rm()
126 if (!chmod(ent->fts_name, (ent->fts_statp->st_mode & S_IPERM)|S_IRWXU)) in rm()
163 if (state->unconditional && (ent->fts_statp->st_mode & S_IRWXU) != S_IRWXU) in rm()
164 chmod(path, (ent->fts_statp->st_mode & S_IPERM)|S_IRWXU); in rm()
179 …t_nlink <= 2 || st.st_ino == ent->fts_parent->fts_statp->st_ino && st.st_dev == ent->fts_parent->f… in rm()
275 ent->fts_statp->st_uid != state->uid ? "``not owner''" : in rm()
276 fmtmode(ent->fts_statp->st_mode & S_IPERM, 0) + 1, ent->fts_path)) < 0 || in rm()
286 if (state->clobber && S_ISREG(ent->fts_statp->st_mode) && ent->fts_statp->st_size > 0) in rm()
[all …]
H A Dcp.c337 …if ((ent->fts_statp->st_mode & S_IPERM) != (st.st_mode & S_IPERM) && chmod(state->path, ent->fts_s… in visit()
340 preserve(state, state->path, &st, ent->fts_statp); in visit()
427 if (state->op != LN && st.st_dev == ent->fts_statp->st_dev && st.st_ino == ent->fts_statp->st_ino) in visit()
567 if (errno != EXDEV && (rm || S_ISDIR(ent->fts_statp->st_mode))) in visit()
577 if (S_ISLNK(ent->fts_statp->st_mode)) in visit()
591 else if (state->op == CP || S_ISREG(ent->fts_statp->st_mode) || S_ISDIR(ent->fts_statp->st_mode)) in visit()
594 …if ((!S_ISREG(ent->fts_statp->st_mode) || ent->fts_statp->st_size > 0) && (rfd = open(ent->fts_pat… in visit()
640 …else if (S_ISBLK(ent->fts_statp->st_mode) || S_ISCHR(ent->fts_statp->st_mode) || S_ISFIFO(ent->fts… in visit()
642 if (mknod(state->path, ent->fts_statp->st_mode, idevice(ent->fts_statp))) in visit()
661 …& PRESERVE_PERM) && (ent->fts_statp->st_mode & state->perm) != (st.st_mode & state->perm) && chmod… in visit()
[all …]
H A Dchgrp.c421 if ((unsigned long)ent->fts_statp->st_ctime >= before) in b_chgrp()
427 keys[0].uid = keys[1].uid = ent->fts_statp->st_uid; in b_chgrp()
428 keys[0].gid = keys[2].gid = ent->fts_statp->st_gid; in b_chgrp()
450 uid = ent->fts_statp->st_uid; in b_chgrp()
452 gid = ent->fts_statp->st_gid; in b_chgrp()
463 if (uid != ent->fts_statp->st_uid && uid != NOID || gid != ent->fts_statp->st_gid && gid != NOID) in b_chgrp()
469 ent->fts_statp->st_uid = 0; in b_chgrp()
470 ent->fts_statp->st_gid = 0; in b_chgrp()
472 …tdout, "%s uid:%05d->%05d gid:%05d->%05d %s\n", op, ent->fts_statp->st_uid, uid, ent->fts_statp->s… in b_chgrp()
/dports/shells/ast-ksh/ast-ksh93v/src/cmd/tw/
H A Dfind.c1498 u = ent->fts_statp->st_ino; in execute()
1521 u = ent->fts_statp->st_size; in execute()
1524 u = ent->fts_statp->st_uid; in execute()
1531 u = ent->fts_statp->st_gid; in execute()
1705 n2 = f1->fts_statp->st_atime; in order()
1706 n1 = f2->fts_statp->st_atime; in order()
1709 n2 = f1->fts_statp->st_ctime; in order()
1710 n1 = f2->fts_statp->st_ctime; in order()
1713 n2 = f1->fts_statp->st_mtime; in order()
1717 n2 = f1->fts_statp->st_size; in order()
[all …]
/dports/shells/ksh93/ast-93u/src/cmd/tw/
H A Dfind.c1485 u = ent->fts_statp->st_ino; in execute()
1508 u = ent->fts_statp->st_size; in execute()
1511 u = ent->fts_statp->st_uid; in execute()
1518 u = ent->fts_statp->st_gid; in execute()
1678 n2 = f1->fts_statp->st_atime; in order()
1679 n1 = f2->fts_statp->st_atime; in order()
1682 n2 = f1->fts_statp->st_ctime; in order()
1683 n1 = f2->fts_statp->st_ctime; in order()
1686 n2 = f1->fts_statp->st_mtime; in order()
1690 n2 = f1->fts_statp->st_size; in order()
[all …]
/dports/shells/ksh93-devel/ast-cc1bca27/src/cmd/tw/
H A Dfind.c1485 u = ent->fts_statp->st_ino; in execute()
1508 u = ent->fts_statp->st_size; in execute()
1511 u = ent->fts_statp->st_uid; in execute()
1518 u = ent->fts_statp->st_gid; in execute()
1678 n2 = f1->fts_statp->st_atime; in order()
1679 n1 = f2->fts_statp->st_atime; in order()
1682 n2 = f1->fts_statp->st_ctime; in order()
1683 n1 = f2->fts_statp->st_ctime; in order()
1686 n2 = f1->fts_statp->st_mtime; in order()
1690 n2 = f1->fts_statp->st_size; in order()
[all …]
/dports/sysutils/rmlint/rmlint-2.10.1-11-ga726d0cb/lib/
H A Dtraverse.c252 buf->st_dev = fts_statp->st_dev; in rm_traverse_convert_small_stat_buf()
253 buf->st_ino = fts_statp->st_ino; in rm_traverse_convert_small_stat_buf()
254 buf->st_mode = fts_statp->st_mode; in rm_traverse_convert_small_stat_buf()
255 buf->st_nlink = fts_statp->st_nlink; in rm_traverse_convert_small_stat_buf()
256 buf->st_uid = fts_statp->st_uid; in rm_traverse_convert_small_stat_buf()
257 buf->st_gid = fts_statp->st_gid; in rm_traverse_convert_small_stat_buf()
258 buf->st_rdev = fts_statp->st_rdev; in rm_traverse_convert_small_stat_buf()
259 buf->st_size = fts_statp->st_size; in rm_traverse_convert_small_stat_buf()
262 buf->st_atim = fts_statp->st_atim; in rm_traverse_convert_small_stat_buf()
263 buf->st_mtim = fts_statp->st_mtim; in rm_traverse_convert_small_stat_buf()
[all …]
/dports/security/fakeroot/fakeroot-1.23/
H A Dlibfakeroot_inode64.c114 r->fts_statp = NULL; /* Otherwise fts_statp may be a random pointer */ in fts_read$INODE64()
116 if(r && r->fts_statp) { /* Should we bother checking fts_info here? */ in fts_read$INODE64()
117 send_get_stat64((struct stat64 *)r->fts_statp); in fts_read$INODE64()
135 if(r->fts_statp) { /* Should we bother checking fts_info here? */ in fts_children$INODE64()
136 send_get_stat64((struct stat64 *)r->fts_statp); in fts_children$INODE64()
/dports/devel/kBuild/kBuild-0.1.9998/src/kmk/kmkbuiltin/
H A Dchmod.c223 newmode = bsd_getmode(set, p->fts_statp->st_mode); in kmk_builtin_chmod()
224 if ((newmode & ALLPERMS) == (p->fts_statp->st_mode & ALLPERMS)) in kmk_builtin_chmod()
236 bsd_strmode(p->fts_statp->st_mode, m1); in kmk_builtin_chmod()
237 bsd_strmode((p->fts_statp->st_mode & in kmk_builtin_chmod()
241 (unsigned int)p->fts_statp->st_mode, m1, in kmk_builtin_chmod()
242 (unsigned int)((p->fts_statp->st_mode & S_IFMT) | newmode), m2); in kmk_builtin_chmod()
H A Dcp.c520 if (setfile(curr->fts_statp, -1)) in copy()
523 mode = curr->fts_statp->st_mode; in copy()
538 if (to_stat.st_dev == curr->fts_statp->st_dev && in copy()
540 to_stat.st_ino == curr->fts_statp->st_ino && in copy()
545 if (S_ISDIR(curr->fts_statp->st_mode)) in copy()
549 if (!S_ISDIR(curr->fts_statp->st_mode) && in copy()
560 switch (curr->fts_statp->st_mode & S_IFMT) { in copy()
593 curr->fts_statp->st_mode | S_IRWXU) < 0) in copy()
611 if (copy_special(curr->fts_statp, !dne)) in copy()
622 if (copy_fifo(curr->fts_statp, !dne)) in copy()
/dports/devel/gnulib/gnulib-20140202-stable/lib/
H A Dfts-cycle.c78 struct stat const *st = ent->fts_statp;
108 if (cycle_check (fts->fts_cycle.state, ent->fts_statp))
127 struct stat const *st = ent->fts_statp;
144 *(parent->fts_statp), *st);
/dports/sysutils/coreutils/coreutils-8.32/lib/
H A Dfts-cycle.c78 struct stat const *st = ent->fts_statp; in enter_dir()
108 if (cycle_check (fts->fts_cycle.state, ent->fts_statp)) in enter_dir()
127 struct stat const *st = ent->fts_statp; in leave_dir()
144 *(parent->fts_statp), *st); in leave_dir()
/dports/misc/gnuls/coreutils-8.30/lib/
H A Dfts-cycle.c78 struct stat const *st = ent->fts_statp; in enter_dir()
108 if (cycle_check (fts->fts_cycle.state, ent->fts_statp)) in enter_dir()
127 struct stat const *st = ent->fts_statp; in leave_dir()
144 *(parent->fts_statp), *st); in leave_dir()

12345678