/third_party/rust/crates/rustix/src/process/ |
H A D | chdir.rs | 21 /// `fchdir(fd)`—Change the current working directory. 27 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fchdir.html 28 /// [Linux]: https://man7.org/linux/man-pages/man2/fchdir.2.html 31 pub fn fchdir<Fd: AsFd>(fd: Fd) -> io::Result<()> { in fchdir() functions 32 backend::process::syscalls::fchdir(fd.as_fd()) in fchdir()
|
H A D | mod.rs | 36 pub use chdir::fchdir;
|
/third_party/ltp/testcases/kernel/syscalls/fchdir/ |
H A D | fchdir02.c | 17 TST_EXP_FAIL(fchdir(bad_fd), EBADF); in verify_fchdir()
|
H A D | fchdir01.c | 20 TST_EXP_PASS(fchdir(fd)); in verify_fchdir()
|
H A D | fchdir03.c | 10 * Testcase for testing that fchdir(2) sets EACCES errno 16 * 4. this child attempts to fchdir(2) to the directory created in 2. 30 TEST(fchdir(fd)); in verify_fchdir() 33 tst_res(TFAIL, "fchdir() succeeded unexpectedly"); in verify_fchdir() 38 tst_res(TFAIL | TTERRNO, "fchdir() should fail with EACCES"); in verify_fchdir() 42 tst_res(TPASS | TTERRNO, "fchdir() failed expectedly"); in verify_fchdir()
|
/third_party/musl/src/unistd/ |
H A D | fchdir.c | 6 int fchdir(int fd) in fchdir() function
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | fchdir.c | 35 int result = fchdir(fd); in fchdir_0100() 37 t_error("%s fchdir failed, result is %d\n", __func__, result); in fchdir_0100() 49 t_error("%s fchdir failed, buf is %s\n", __func__, buf); in fchdir_0100()
|
/third_party/rust/crates/rustix/tests/process/ |
H A D | working_directory.rs | 36 rustix::process::fchdir(orig_fd_cwd).expect("changing dir to the original"); in test_changing_working_directory()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/fs/ |
H A D | dir.rs | 7 use crate::process::fchdir; 177 /// `fchdir(self)` 180 fchdir(&self.fd) in chdir()
|
/third_party/rust/crates/rustix/src/backend/libc/fs/ |
H A D | dir.rs | 29 use crate::process::fchdir; 167 /// `fchdir(self)` 171 fchdir(unsafe { BorrowedFd::borrow_raw(c::dirfd(self.0.as_ptr())) }) in chdir()
|
/third_party/FreeBSD/lib/libc/gen/ |
H A D | fts.c | 68 #define FCHDIR(sp, fd) (!ISSET(FTS_NOCHDIR) && fchdir(fd)) 279 saved_errno = fchdir(sp->fts_rfd) ? errno : 0; in fts_close() 575 rc = fchdir(fd); in fts_children() 1145 ret = fchdir(newfd); in fts_safe_changedir()
|
/third_party/rust/crates/rustix/src/backend/libc/process/ |
H A D | syscalls.rs | 47 pub(crate) fn fchdir(dirfd: BorrowedFd<'_>) -> io::Result<()> { 48 unsafe { ret(c::fchdir(borrowed_fd(dirfd))) }
|
/third_party/toybox/lib/ |
H A D | portability.c | 388 // In the absence of a mknodat system call, fchdir to dirfd and back 394 if (old_dirfd == -1 || fchdir(dirfd) == -1) return -1; in mknodat() 396 if (fchdir(old_dirfd) == -1) perror_exit("mknodat couldn't return"); in mknodat()
|
/third_party/toybox/toys/posix/ |
H A D | find.c | 111 rc = fchdir(new->parent->dirfd); in flush_exec() 112 } else rc = fchdir(TT.topdir); in flush_exec() 143 if (revert) revert = fchdir(TT.topdir); in flush_exec()
|
/third_party/musl/porting/liteos_a/user/include/ |
H A D | unistd.h | 101 int fchdir(int);
|
/third_party/musl/porting/uniproton/kernel/include/ |
H A D | unistd.h | 75 int fchdir(int);
|
/third_party/musl/porting/linux/user/include/ |
H A D | unistd.h | 81 int fchdir(int);
|
/third_party/musl/porting/liteos_m/user/include/ |
H A D | unistd.h | 101 int fchdir(int);
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/ |
H A D | unistd.h | 75 int fchdir(int);
|
/third_party/musl/porting/liteos_a/kernel/include/ |
H A D | unistd.h | 81 int fchdir(int);
|
/third_party/musl/porting/liteos_m/kernel/include/ |
H A D | unistd.h | 75 int fchdir(int);
|
/third_party/musl/include/ |
H A D | unistd.h | 116 int fchdir(int);
|
/third_party/rust/crates/rustix/src/backend/linux_raw/process/ |
H A D | syscalls.rs | 37 pub(crate) fn fchdir(fd: BorrowedFd<'_>) -> io::Result<()> {
|
/third_party/ntfs-3g/libfuse-lite/ |
H A D | fusermount.c | 625 fchdir(currdir_fd); in mount_fuse()
|
/third_party/musl/libc-test/src/api/ |
H A D | unistd.c | 268 {int(*p)(int) = fchdir;} in f()
|