/freebsd/usr.sbin/pw/ |
H A D | cpdir.c | 64 AT_SYMLINK_NOFOLLOW) == -1) in copymkdir() 68 if (fchownat(rootfd, dir, uid, gid, AT_SYMLINK_NOFOLLOW) == -1) in copymkdir() 72 AT_SYMLINK_NOFOLLOW) == -1) in copymkdir() 90 if (fstatat(skelfd, p, &st, AT_SYMLINK_NOFOLLOW) == -1) in copymkdir() 107 fchownat(homefd, p, uid, gid, AT_SYMLINK_NOFOLLOW); in copymkdir()
|
H A D | rm_r.c | 86 if (fstatat(dirfd, e->d_name, &st, AT_SYMLINK_NOFOLLOW) != 0) in rm_r() 97 if (fstatat(rootfd, path, &st, AT_SYMLINK_NOFOLLOW) != 0) in rm_r()
|
/freebsd/crypto/openssh/openbsd-compat/regress/ |
H A D | utimensattest.c | 32 #ifndef AT_SYMLINK_NOFOLLOW 33 # define AT_SYMLINK_NOFOLLOW 0x80000000 macro 76 if (utimensat(AT_FDCWD, TMPFILE, ts, AT_SYMLINK_NOFOLLOW) == -1) in main() 110 (void)utimensat(AT_FDCWD, TMPFILE, ts, AT_SYMLINK_NOFOLLOW); in main()
|
/freebsd/tools/build/ |
H A D | utimensat.c | 46 if ((flag & ~AT_SYMLINK_NOFOLLOW) != 0) { in utimensat() 97 if ((flag & AT_SYMLINK_NOFOLLOW) == 0) in utimensat() 99 else if ((flag & AT_SYMLINK_NOFOLLOW) != 0 && in utimensat()
|
/freebsd/contrib/lib9p/backend/ |
H A D | fs.c | 474 if (fstatat(ff->ff_dirfd, path, st, AT_SYMLINK_NOFOLLOW) != 0) in fs_pdir() 533 AT_SYMLINK_NOFOLLOW) != 0) in fs_nde() 1229 if (fstatat(file->ff_dirfd, name, &first, AT_SYMLINK_NOFOLLOW) != 0) in fs_iopen() 1406 if (fchownat(ff->ff_dirfd, newname, uid, gid, AT_SYMLINK_NOFOLLOW) != 0 || in fs_imknod() 1407 fchmodat(ff->ff_dirfd, newname, perm, AT_SYMLINK_NOFOLLOW) != 0 || in fs_imknod() 1408 fstatat(ff->ff_dirfd, newname, st, AT_SYMLINK_NOFOLLOW) != 0) in fs_imknod() 1447 if (fchownat(ff->ff_dirfd, newname, uid, gid, AT_SYMLINK_NOFOLLOW) != 0 || in fs_imkfifo() 1448 fchmodat(ff->ff_dirfd, newname, perm, AT_SYMLINK_NOFOLLOW) != 0 || in fs_imkfifo() 1449 fstatat(ff->ff_dirfd, newname, st, AT_SYMLINK_NOFOLLOW) != 0) in fs_imkfifo() 1542 if (fchownat(ff->ff_dirfd, newname, uid, gid, AT_SYMLINK_NOFOLLOW) != 0 || in fs_imksocket() [all …]
|
/freebsd/contrib/openbsm/bin/auditdistd/ |
H A D | fstatat.h | 37 #define AT_SYMLINK_NOFOLLOW 0x01 macro 55 if (flag == AT_SYMLINK_NOFOLLOW) in fstatat()
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | bsd-misc.h | 99 # ifndef AT_SYMLINK_NOFOLLOW 100 # define AT_SYMLINK_NOFOLLOW 0x80000000 macro
|
H A D | bsd-misc.c | 149 if (flag & AT_SYMLINK_NOFOLLOW) in utimensat() 180 if (flag & AT_SYMLINK_NOFOLLOW) in fchownat() 211 if (flag & AT_SYMLINK_NOFOLLOW) in fchmodat()
|
/freebsd/lib/libc/sys/ |
H A D | lstat.c | 39 return (__sys_fstatat(AT_FDCWD, path, sb, AT_SYMLINK_NOFOLLOW)); in lstat()
|
/freebsd/sys/kern/ |
H A D | vfs_syscalls.c | 115 MPASS((at_flags & (AT_SYMLINK_FOLLOW | AT_SYMLINK_NOFOLLOW)) != in at2cnpflags() 116 (AT_SYMLINK_FOLLOW | AT_SYMLINK_NOFOLLOW)); in at2cnpflags() 125 if ((mask & AT_SYMLINK_NOFOLLOW) != 0) { in at2cnpflags() 126 res |= (at_flags & AT_SYMLINK_NOFOLLOW) != 0 ? NOFOLLOW : in at2cnpflags() 2211 AT_SYMLINK_NOFOLLOW)) != 0) in kern_accessat() 2232 AUDITVNODE1 | at2cnpflags(flag, AT_RESOLVE_BENEATH | AT_SYMLINK_NOFOLLOW | in kern_accessat() 2306 error = kern_statat(td, AT_SYMLINK_NOFOLLOW, AT_FDCWD, uap->path, in olstat() 2441 error = kern_statat(td, AT_SYMLINK_NOFOLLOW, AT_FDCWD, uap->path, in freebsd11_lstat() 2520 if ((flag & ~(AT_SYMLINK_NOFOLLOW | AT_RESOLVE_BENEATH | in kern_statat() 2525 AT_SYMLINK_NOFOLLOW | AT_EMPTY_PATH) | LOCKSHARED | LOCKLEAF | in kern_statat() [all …]
|
/freebsd/contrib/pjdfstest/tests/utimensat/ |
H A D | 05.t | 33 expect 0 open . O_RDONLY : utimensat 0 ${n2} $DATE3 0 $DATE4 0 AT_SYMLINK_NOFOLLOW
|
/freebsd/contrib/llvm-project/libcxx/src/filesystem/ |
H A D | posix_compat.h | 373 # define AT_SYMLINK_NOFOLLOW 1 in realpath() 393 if (attributes & FILE_ATTRIBUTE_REPARSE_POINT && !(flag & AT_SYMLINK_NOFOLLOW)) { in fchmod_handle() 468 # if defined(AT_SYMLINK_NOFOLLOW) && defined(AT_FDCWD) in readlink() 381 #define AT_SYMLINK_NOFOLLOW global() macro
|
/freebsd/sys/compat/linux/ |
H A D | linux_stats.c | 95 if ((flag & ~(AT_SYMLINK_NOFOLLOW | AT_RESOLVE_BENEATH | in linux_kern_statat() 100 AT_SYMLINK_NOFOLLOW | AT_EMPTY_PATH) | LOCKSHARED | LOCKLEAF | in linux_kern_statat() 135 return (linux_kern_statat(td, AT_SYMLINK_NOFOLLOW, AT_FDCWD, path, in linux_kern_lstat() 506 flags |= AT_SYMLINK_NOFOLLOW; in linux_to_bsd_stat_flags()
|
/freebsd/tools/test/stress2/misc/ |
H A D | nullfs29.sh | 50 ret = fstatat(new_dir, "what2", &sb, AT_SYMLINK_NOFOLLOW);
|
/freebsd/contrib/pjdfstest/ |
H A D | pjdfstest.c | 386 { AT_SYMLINK_NOFOLLOW, "AT_SYMLINK_NOFOLLOW" }, 393 { AT_SYMLINK_NOFOLLOW, "AT_SYMLINK_NOFOLLOW" }, 400 { AT_SYMLINK_NOFOLLOW, "AT_SYMLINK_NOFOLLOW" }, 407 { AT_SYMLINK_NOFOLLOW, "AT_SYMLINK_NOFOLLOW" }, 1167 flag = AT_SYMLINK_NOFOLLOW; in call_syscall()
|
/freebsd/bin/chflags/ |
H A D | chflags.c | 159 atflag = AT_SYMLINK_NOFOLLOW; in main()
|
/freebsd/bin/chmod/ |
H A D | chmod.c | 161 atflag = AT_SYMLINK_NOFOLLOW; in main()
|
/freebsd/contrib/netbsd-tests/lib/libc/c063/ |
H A D | t_faccessat.c | 169 ATF_REQUIRE(faccessat(dfd, BASELINK, F_OK, AT_SYMLINK_NOFOLLOW) == 0); in ATF_TC_BODY()
|
H A D | t_fchmodat.c | 178 ATF_REQUIRE(fchmodat(dfdlink, BASELINK, 0600, AT_SYMLINK_NOFOLLOW) == 0); in ATF_TC_BODY()
|
H A D | t_fstatat.c | 180 ATF_REQUIRE(fstatat(dfd, BASELINK, &st, AT_SYMLINK_NOFOLLOW) == 0); in ATF_TC_BODY()
|
H A D | t_utimensat.c | 190 ATF_REQUIRE(utimensat(dfd, BASELINK, tptr, AT_SYMLINK_NOFOLLOW) == 0); in ATF_TC_BODY()
|
/freebsd/lib/libc/gen/ |
H A D | getcwd.c | 172 AT_SYMLINK_NOFOLLOW)) { in __ssp_real()
|
/freebsd/sys/sys/ |
H A D | fcntl.h | 224 #define AT_SYMLINK_NOFOLLOW 0x0200 /* Do not follow symbolic links */ macro
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | idmap_util.c | 582 AT_SYMLINK_NOFOLLOW | OPEN_TREE_CLOEXEC | OPEN_TREE_CLONE); in is_idmap_supported() 672 AT_SYMLINK_NOFOLLOW | OPEN_TREE_CLOEXEC | OPEN_TREE_CLONE | flags); in do_idmap_mount()
|
/freebsd/usr.sbin/chown/ |
H A D | chown.c | 173 atflag = AT_SYMLINK_NOFOLLOW; in main()
|