Home
last modified time | relevance | path

Searched refs:AT_SYMLINK_NOFOLLOW (Results 1 – 25 of 50) sorted by relevance

12

/freebsd/usr.sbin/pw/
H A Dcpdir.c64 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 Drm_r.c86 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 Dutimensattest.c32 #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 Dutimensat.c46 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 Dfs.c474 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 Dfstatat.h37 #define AT_SYMLINK_NOFOLLOW 0x01 macro
55 if (flag == AT_SYMLINK_NOFOLLOW) in fstatat()
/freebsd/crypto/openssh/openbsd-compat/
H A Dbsd-misc.h99 # ifndef AT_SYMLINK_NOFOLLOW
100 # define AT_SYMLINK_NOFOLLOW 0x80000000 macro
H A Dbsd-misc.c149 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 Dlstat.c39 return (__sys_fstatat(AT_FDCWD, path, sb, AT_SYMLINK_NOFOLLOW)); in lstat()
/freebsd/sys/kern/
H A Dvfs_syscalls.c115 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 D05.t33 expect 0 open . O_RDONLY : utimensat 0 ${n2} $DATE3 0 $DATE4 0 AT_SYMLINK_NOFOLLOW
/freebsd/contrib/llvm-project/libcxx/src/filesystem/
H A Dposix_compat.h373 # 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 Dlinux_stats.c95 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 Dnullfs29.sh50 ret = fstatat(new_dir, "what2", &sb, AT_SYMLINK_NOFOLLOW);
/freebsd/contrib/pjdfstest/
H A Dpjdfstest.c386 { 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 Dchflags.c159 atflag = AT_SYMLINK_NOFOLLOW; in main()
/freebsd/bin/chmod/
H A Dchmod.c161 atflag = AT_SYMLINK_NOFOLLOW; in main()
/freebsd/contrib/netbsd-tests/lib/libc/c063/
H A Dt_faccessat.c169 ATF_REQUIRE(faccessat(dfd, BASELINK, F_OK, AT_SYMLINK_NOFOLLOW) == 0); in ATF_TC_BODY()
H A Dt_fchmodat.c178 ATF_REQUIRE(fchmodat(dfdlink, BASELINK, 0600, AT_SYMLINK_NOFOLLOW) == 0); in ATF_TC_BODY()
H A Dt_fstatat.c180 ATF_REQUIRE(fstatat(dfd, BASELINK, &st, AT_SYMLINK_NOFOLLOW) == 0); in ATF_TC_BODY()
H A Dt_utimensat.c190 ATF_REQUIRE(utimensat(dfd, BASELINK, tptr, AT_SYMLINK_NOFOLLOW) == 0); in ATF_TC_BODY()
/freebsd/lib/libc/gen/
H A Dgetcwd.c172 AT_SYMLINK_NOFOLLOW)) { in __ssp_real()
/freebsd/sys/sys/
H A Dfcntl.h224 #define AT_SYMLINK_NOFOLLOW 0x0200 /* Do not follow symbolic links */ macro
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Didmap_util.c582 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 Dchown.c173 atflag = AT_SYMLINK_NOFOLLOW; in main()

12