Home
last modified time | relevance | path

Searched refs:fchdir (Results 1 - 25 of 35) sorted by relevance

12

/third_party/rust/crates/rustix/src/process/
H A Dchdir.rs21 /// `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 Dmod.rs36 pub use chdir::fchdir;
/third_party/ltp/testcases/kernel/syscalls/fchdir/
H A Dfchdir02.c17 TST_EXP_FAIL(fchdir(bad_fd), EBADF); in verify_fchdir()
H A Dfchdir01.c20 TST_EXP_PASS(fchdir(fd)); in verify_fchdir()
H A Dfchdir03.c10 * 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 Dfchdir.c6 int fchdir(int fd) in fchdir() function
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
H A Dfchdir.c35 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 Dworking_directory.rs36 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 Ddir.rs7 use crate::process::fchdir;
177 /// `fchdir(self)`
180 fchdir(&self.fd) in chdir()
/third_party/rust/crates/rustix/src/backend/libc/fs/
H A Ddir.rs29 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 Dfts.c68 #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 Dsyscalls.rs47 pub(crate) fn fchdir(dirfd: BorrowedFd<'_>) -> io::Result<()> {
48 unsafe { ret(c::fchdir(borrowed_fd(dirfd))) }
/third_party/toybox/lib/
H A Dportability.c388 // 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 Dfind.c111 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 Dunistd.h101 int fchdir(int);
/third_party/musl/porting/uniproton/kernel/include/
H A Dunistd.h75 int fchdir(int);
/third_party/musl/porting/linux/user/include/
H A Dunistd.h81 int fchdir(int);
/third_party/musl/porting/liteos_m/user/include/
H A Dunistd.h101 int fchdir(int);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dunistd.h75 int fchdir(int);
/third_party/musl/porting/liteos_a/kernel/include/
H A Dunistd.h81 int fchdir(int);
/third_party/musl/porting/liteos_m/kernel/include/
H A Dunistd.h75 int fchdir(int);
/third_party/musl/include/
H A Dunistd.h116 int fchdir(int);
/third_party/rust/crates/rustix/src/backend/linux_raw/process/
H A Dsyscalls.rs37 pub(crate) fn fchdir(fd: BorrowedFd<'_>) -> io::Result<()> {
/third_party/ntfs-3g/libfuse-lite/
H A Dfusermount.c625 fchdir(currdir_fd); in mount_fuse()
/third_party/musl/libc-test/src/api/
H A Dunistd.c268 {int(*p)(int) = fchdir;} in f()

Completed in 23 milliseconds

12