/dragonfly/bin/rm/ |
H A D | rm.c | 250 (p->fts_statp->st_flags & (UF_APPEND|UF_IMMUTABLE)) && in rm_tree() 251 !(p->fts_statp->st_flags & (SF_APPEND|SF_IMMUTABLE)) && in rm_tree() 253 p->fts_statp->st_flags &= ~(UF_APPEND|UF_IMMUTABLE)) < 0) in rm_tree() 276 (p->fts_statp->st_flags & (UF_APPEND|UF_IMMUTABLE)) && in rm_tree() 277 !(p->fts_statp->st_flags & (SF_APPEND|SF_IMMUTABLE))) in rm_tree() 388 (sb.st_flags & (UF_APPEND|UF_IMMUTABLE)) && in rm_file() 389 !(sb.st_flags & (SF_APPEND|SF_IMMUTABLE))) in rm_file() 390 rval = lchflags(f, sb.st_flags & ~(UF_APPEND|UF_IMMUTABLE)); in rm_file() 526 && !(sp->st_flags & (SF_APPEND|SF_IMMUTABLE)) && in check() 527 (!(sp->st_flags & (UF_APPEND|UF_IMMUTABLE)) || !uid) in check() [all …]
|
/dragonfly/usr.sbin/mtree/ |
H A D | compare.c | 81 if (flags != p->fts_statp->st_flags) { \ 85 sf = flags_to_string(p->fts_statp->st_flags, "none"); \ 106 flags = (s->st_flags & (mask)) | (pflags); \ 116 flags = (~(s->st_flags & (mask)) & CH_MASK) & (pflags); \ 178 SETFLAGS(p->fts_statp->st_flags, SP_FLGS); in compare() 183 CLEARFLAGS(p->fts_statp->st_flags, SP_FLGS); in compare() 360 if ((s->flags & F_FLAGS) && ((s->st_flags != p->fts_statp->st_flags) in compare() 362 if (s->st_flags != p->fts_statp->st_flags) { in compare() 365 f_s = flags_to_string(s->st_flags, "none"); in compare() 370 f_s = flags_to_string(p->fts_statp->st_flags, "none"); in compare()
|
H A D | verify.c | 289 if ((p->flags & F_FLAGS) && p->st_flags) { in miss() 291 flags = p->st_flags; in miss() 293 flags = p->st_flags & ~SP_FLGS; in miss()
|
H A D | create.c | 293 if (keys & F_FLAGS && p->fts_statp->st_flags != flags) { in statf() 294 char *str = flags_to_string(p->fts_statp->st_flags, "none"); in statf() 375 sflags = FLAGS2INDEX(p->fts_statp->st_flags); in statd() 377 saveflags = p->fts_statp->st_flags; in statd()
|
H A D | spec.c | 387 str = flags_to_string(cur->st_flags, "none"); in dump_nodes() 512 REPLACE(st_flags); in replacenode() 560 ip->st_flags = 0; in set() 561 else if (string_to_flags(&val, &ip->st_flags, NULL) in set()
|
H A D | specspec.c | 94 printf(" flags=%s", flags_to_string(n->st_flags, "none")); in shownode() 177 if (FF(n1, n2, F_FLAGS, st_flags)) in compare_nodes()
|
H A D | mtree.h | 53 u_long st_flags; /* flags */ member
|
/dragonfly/usr.bin/xinstall/ |
H A D | xinstall.c | 387 if (target_sb->st_flags & NOCHANGEBITS) in do_link() 388 (void)chflags(to_name, target_sb->st_flags & in do_link() 435 if (target_sb->st_flags & NOCHANGEBITS) in do_symlink() 436 (void)chflags(to_name, target_sb->st_flags & in do_symlink() 631 if (to_sb.st_flags & NOCHANGEBITS) in install() 633 to_sb.st_flags & ~NOCHANGEBITS); in install() 744 if (to_sb.st_flags & NOCHANGEBITS) in install() 805 if (to_sb.st_flags & NOCHANGEBITS) in install() 839 nfset = (to_sb.st_flags | fset) & ~fclr; in install() 842 (to_sb.st_flags & UF_NOHISTORY); in install() [all …]
|
/dragonfly/bin/cp/ |
H A D | utils.c | 329 if (!gotstat || fs->st_flags != ts.st_flags) in setfile() 331 fchflags(fd, fs->st_flags) : in setfile() 332 (islink ? lchflags(to.p_path, fs->st_flags) : in setfile() 333 chflags(to.p_path, fs->st_flags))) { in setfile()
|
/dragonfly/usr.bin/chflags/ |
H A D | chflags.c | 167 newflags = (p->fts_statp->st_flags | set) & clear; in main() 168 if (newflags == p->fts_statp->st_flags) in main() 178 (u_long)p->fts_statp->st_flags, in main()
|
/dragonfly/bin/cpdup/ |
H A D | cpdup.c | 71 #define st_flags st_mode macro 514 return (((st1->st_flags ^ st2->st_flags) & ~ignored) == 0); in FlagsMatch() 709 if (stat1->st_flags & SF_SNAPSHOT) in DoCopy() 713 st2.st_flags = 0; /* in case lstat fails */ in DoCopy() 717 st2_flags = st2.st_flags; in DoCopy() 843 hc_chflags(&DstHost, dpath, stat1->st_flags); in DoCopy() 1040 hc_chflags(&DstHost, dpath, stat1->st_flags); in DoCopy() 1161 if (stat1->st_flags & (UF_IMMUTABLE|SF_IMMUTABLE)) in DoCopy() 1176 if (DstRootPrivs ? stat1->st_flags : stat1->st_flags & UF_SETTABLE) in DoCopy() 1177 hc_chflags(&DstHost, dpath, stat1->st_flags); in DoCopy() [all …]
|
/dragonfly/usr.sbin/pw/ |
H A D | cpdir.c | 83 chflags(dst, st.st_flags); /* propagate flags */ in copymkdir() 112 fchflags(outfd, st.st_flags); in copymkdir()
|
/dragonfly/bin/mv/ |
H A D | mv.c | 342 if (fchflags(to_fd, sbp->st_flags)) in fastcopy() 343 if (errno != EOPNOTSUPP || sbp->st_flags != 0) in fastcopy() 344 warn("%s: set flags (was: 0%07o)", to, sbp->st_flags); in fastcopy()
|
/dragonfly/usr.sbin/makefs/ |
H A D | walk.c | 542 (unsigned long)dirnode->inode->st.st_flags, in apply_specentry() 543 (unsigned long)specnode->st_flags); in apply_specentry() 544 dirnode->inode->st.st_flags = specnode->st_flags; in apply_specentry()
|
H A D | mtree.c | 540 st->st_flags &= ~flclr; in read_mtree_keywords() 541 st->st_flags |= flset; in read_mtree_keywords()
|
/dragonfly/sbin/restore/ |
H A D | utilities.c | 216 if (stat(existing, &s) == 0 && s.st_flags != 0 && in linkit() 219 chflags(existing, s.st_flags); in linkit()
|
/dragonfly/usr.bin/stat/ |
H A D | stat.c | 809 small = (sizeof(st->st_flags) == 4); in format1() 810 data = st->st_flags; in format1() 811 sdata = xfflagstostr(st->st_flags); in format1()
|
/dragonfly/sys/sys/ |
H A D | stat.h | 115 __uint32_t st_flags; /* user defined flags for file */ member
|
/dragonfly/usr.bin/find/ |
H A D | function.c | 381 if ((entry->fts_statp->st_flags & (UF_APPEND|UF_IMMUTABLE)) && in f_delete() 382 !(entry->fts_statp->st_flags & (SF_APPEND|SF_IMMUTABLE)) && in f_delete() 385 entry->fts_statp->st_flags &= ~(UF_APPEND|UF_IMMUTABLE)); in f_delete() 739 flags = entry->fts_statp->st_flags; in f_flags()
|
/dragonfly/contrib/libarchive/libarchive/ |
H A D | archive_write_disk_posix.c | 1056 a->st.st_flags |= UF_COMPRESSED; in hfs_set_compressed_fflag() 1057 if (fchflags(a->fd, a->st.st_flags) != 0) { in hfs_set_compressed_fflag() 3958 a->st.st_flags &= ~clear; in set_fflags_platform() 3959 a->st.st_flags |= set; in set_fflags_platform() 3964 a->st.st_flags &= ~sf_mask; in set_fflags_platform() 3968 if (fd >= 0 && fchflags(fd, a->st.st_flags) == 0) in set_fflags_platform() 3977 if (lchflags(name, a->st.st_flags) == 0) in set_fflags_platform() 3985 if (chflags(name, a->st.st_flags) == 0) in set_fflags_platform() 4364 compressed = a->st.st_flags & UF_COMPRESSED; in set_mac_metadata() 4434 st.st_flags & UF_COMPRESSED); in fixup_appledouble()
|
H A D | archive_read_disk_entry_from_file.c | 219 if ((a->flags & ARCHIVE_READDISK_NO_FFLAGS) == 0 && st->st_flags != 0) in archive_read_disk_entry_from_file() 220 archive_entry_set_fflags(entry, st->st_flags, 0); in archive_read_disk_entry_from_file()
|
/dragonfly/sys/net/ipfw/ |
H A D | ip_fw2.c | 477 uint16_t st_flags; /* IPFW_STATE_F_ */ member 499 ((s)->st_flags & IPFW_STATE_F_XLATSLAVE)) 522 #define xlat_flags xlat_st.st_flags 1098 s->st_flags |= IPFW_STATE_F_LINKED; in ipfw_state_link() 1107 KASSERT(s->st_flags & IPFW_STATE_F_LINKED, in ipfw_state_unlink() 1111 s->st_flags &= ~IPFW_STATE_F_LINKED; in ipfw_state_unlink() 1786 if (s->st_flags & IPFW_STATE_F_XLATSLAVE) { in ipfw_state_remove() 2032 s->st_flags |= IPFW_STATE_F_SEQFWD; in ipfw_state_update_tcp() 2042 s->st_flags |= IPFW_STATE_F_ACKFWD; in ipfw_state_update_tcp() 2057 s->st_flags |= IPFW_STATE_F_SEQREV; in ipfw_state_update_tcp() [all …]
|
/dragonfly/sbin/hammer2/ |
H A D | cmd_recover.c | 1026 if (st.st_flags) in dump_tree() 1071 if (st.st_flags) in dump_tree() 1090 if (st.st_flags) in dump_tree()
|
/dragonfly/sbin/newfs/ |
H A D | fscopy.c | 350 if (chflags(path, st->st_flags) < 0) in FSPaste()
|
/dragonfly/usr.bin/compress/ |
H A D | compress.c | 364 if (chflags(name, fs->st_flags) && errno != EOPNOTSUPP) in setfile()
|