/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | fchownat.c | 33 int ret = fchownat(fd, ptr, 0, 0, AT_SYMLINK_NOFOLLOW); in fchownat_0100() 55 int ret = fchownat(AT_FDCWD, ptr, 0, 0, AT_SYMLINK_NOFOLLOW); in fchownat_0200()
|
/third_party/musl/src/unistd/ |
H A D | fchownat.c | 4 int fchownat(int fd, const char *path, uid_t uid, gid_t gid, int flag) in fchownat() function
|
/third_party/ltp/testcases/kernel/syscalls/fchownat/ |
H A D | fchownat.h | 29 static inline int fchownat(int dirfd, const char *filename, uid_t owner, in fchownat() function
|
H A D | fchownat01.c | 21 * This test case will verify basic function of fchownat 37 #include "fchownat.h" 104 TEST(fchownat(*(test->fds), test->filenames, geteuid(), in fchownat_verify() 109 "fchownat() returned %ld, expected %d, errno=%d", in fchownat_verify() 116 "fchownat() returned the expected errno %d: %s", in fchownat_verify() 120 "fchownat() failed unexpectedly; expected: %d - %s", in fchownat_verify()
|
H A D | fchownat02.c | 19 * The flag of fchownat() is AT_SYMLINK_NOFOLLOW and the pathname would 34 #include "fchownat.h" 102 TEST(fchownat(dir_fd, TESTFILE_LINK, set_uid, set_gid, in fchownat_verify() 106 tst_resm(TFAIL | TTERRNO, "fchownat() failed, errno=%d : %s", in fchownat_verify() 123 tst_resm(TPASS, "fchownat() test AT_SYMLINK_NOFOLLOW success"); in test_verify() 126 "fchownat() test AT_SYMLINK_NOFOLLOW fail with uid=%d " in test_verify()
|
/third_party/ltp/testcases/kernel/crypto/ |
H A D | af_alg07.c | 11 * set sock->sk = NULL after closing the socket. Racing fchownat() against 17 * fchownat() will return ENOENT as it should only when the bug is not 79 TEST(fchownat(sock, "", uid, gid, AT_EMPTY_PATH)); in run() 95 "fchownat() failed successfully"); in run() 101 "fchownat() failed unexpectedly"); in run() 106 "Invalid fchownat() return value"); in run() 110 tst_res(TFAIL, "fchownat() failed to fail, kernel may be vulnerable"); in run()
|
/third_party/toybox/toys/posix/ |
H A D | chgrp.c | 55 ret = fchownat(fd, node->name, TT.owner, TT.group, in do_chgrp()
|
H A D | cp.c | 320 rc = fchownat(cfd, catch, try->st.st_uid, try->st.st_gid, in cp_node()
|
/third_party/ltp/lib/ |
H A D | tst_safe_file_at.c | 207 rval = fchownat(dirfd, path, owner, group, flags); in safe_fchownat() 211 "fchownat(%d<%s>, '%s', %d, %d, %d) failed", dirfd, in safe_fchownat() 215 "Invalid fchownat(%d<%s>, '%s', %d, %d, %d) return value %d", in safe_fchownat()
|
/third_party/musl/porting/liteos_a/user/include/ |
H A D | unistd.h | 54 int fchownat(int, const char *, uid_t, gid_t, int);
|
/third_party/musl/porting/uniproton/kernel/include/ |
H A D | unistd.h | 52 int fchownat(int, const char *, uid_t, gid_t, int);
|
/third_party/musl/porting/linux/user/include/ |
H A D | unistd.h | 58 int fchownat(int, const char *, uid_t, gid_t, int);
|
/third_party/musl/porting/liteos_m/user/include/ |
H A D | unistd.h | 54 int fchownat(int, const char *, uid_t, gid_t, int);
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/ |
H A D | unistd.h | 52 int fchownat(int, const char *, uid_t, gid_t, int);
|
/third_party/musl/porting/liteos_a/kernel/include/ |
H A D | unistd.h | 58 int fchownat(int, const char *, uid_t, gid_t, int);
|
/third_party/musl/porting/liteos_m/kernel/include/ |
H A D | unistd.h | 52 int fchownat(int, const char *, uid_t, gid_t, int);
|
/third_party/musl/include/ |
H A D | unistd.h | 68 int fchownat(int, const char *, uid_t, gid_t, int);
|
/third_party/rust/crates/nix/test/ |
H A D | test_unistd.rs | 543 fchownat(Some(dirfd), "file", uid, gid, FchownatFlags::FollowSymlink) in test_fchownat() 547 fchownat(None, "file", uid, gid, FchownatFlags::FollowSymlink).unwrap(); in test_fchownat() 550 fchownat(None, "file", uid, gid, FchownatFlags::FollowSymlink).unwrap_err(); in test_fchownat()
|
/third_party/musl/libc-test/src/api/ |
H A D | unistd.c | 270 {int(*p)(int,const char*,uid_t,gid_t,int) = fchownat;} in f()
|
/third_party/toybox/porting/liteos_a/toys/posix/ |
H A D | cp.c | 293 rc = fchownat(cfd, catch, try->st.st_uid, try->st.st_gid, in cp_node()
|
/third_party/libfuse/example/ |
H A D | passthrough_hp.cc | 252 res = fchownat(ifd, "", uid, gid, AT_EMPTY_PATH | AT_SYMLINK_NOFOLLOW); in do_setattr()
|
H A D | passthrough_ll.c | 241 res = fchownat(ifd, "", uid, gid, in lo_setattr()
|
/third_party/rust/crates/nix/src/ |
H A D | unistd.rs | 740 /// Flags for `fchownat` function. 761 /// `fchownat(None, path, owner, group, FchownatFlags::NoFollowSymlink)` is identical to 767 /// [fchownat(2)](https://pubs.opengroup.org/onlinepubs/9699919799/functions/fchownat.html). 769 pub fn fchownat<P: ?Sized + NixPath>( in fchownat() functions 783 libc::fchownat(at_rawfd(dirfd), cstr.as_ptr(), uid, gid, in fchownat()
|
/third_party/rust/crates/libc/src/unix/ |
H A D | mod.rs | 815 pub fn fchownat( in fchownat() functions
|
/third_party/python/Modules/ |
H A D | posixmodule.c | 130 # define HAVE_FCHOWNAT_RUNTIME (fchownat != NULL) 3623 dir_fd : dir_fd(requires='fchownat') = None 3688 result = fchownat(dir_fd, path->narrow, uid, gid, in os_chown_impl()
|