Home
last modified time | relevance | path

Searched refs:renameat (Results 1 - 25 of 27) sorted by relevance

12

/third_party/rust/crates/rustix/tests/fs/
H A Drenameat.rs12 use rustix::fs::{cwd, openat, renameat, statat, AtFlags, Mode, OFlags}; in test_renameat()
25 renameat(&dir, "foo", &dir, "bar").unwrap(); in test_renameat()
30 /// Like `test_renameat` but the file already exists, so `renameat`
35 use rustix::fs::{cwd, openat, renameat, statat, AtFlags, Mode, OFlags}; in test_renameat_overwrite()
49 renameat(&dir, "foo", &dir, "bar").unwrap(); in test_renameat_overwrite()
H A Dmain.rs39 mod renameat; modules
/third_party/ltp/include/lapi/
H A Drenameat.h15 static inline int renameat(int olddirfd, const char *oldpath, int newdirfd, in renameat() function
/third_party/musl/src/unistd/
H A Drenameat.c4 int renameat(int oldfd, const char *old, int newfd, const char *new) in renameat() function
/third_party/ltp/testcases/kernel/syscalls/renameat/
H A Drenameat01.c22 * 1) renameat(2) returns -1 and sets errno to EBADF if olddirfd
24 * 2) renameat(2) returns -1 and sets errno to ENOTDIR if oldpath
28 * 3) renameat(2) returns -1 and sets errno to ELOOP if too many
31 * 4) renameat(2) returns -1 and sets errno to EROFS if the file
33 * 5) renameat(2) returns -1 and sets errno to EMLINK if oldpath
53 #include "lapi/renameat.h"
197 TEST(renameat(*(tc->oldfdptr), tc->oldpath, in renameat_verify()
201 tst_resm(TFAIL, "renameat() succeeded unexpectedly"); in renameat_verify()
206 tst_resm(TFAIL | TTERRNO, "renameat() failed unexpectedly"); in renameat_verify()
212 "renameat() returne in renameat_verify()
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
H A Drenameat.c26 * @tc.desc : When newname already exists, test the renameat function
32 char oldPath[] = "/data/renameat.txt"; in renameat_0100()
52 if (renameat(oldfd, oldPath, newfd, newPath) == -1) { in renameat_0100()
53 t_error("%s renameat failed\n", __func__); in renameat_0100()
/third_party/rust/crates/rustix/src/io/
H A Dprocfs.rs22 cwd, fstat, fstatfs, major, openat, renameat, Dir, FileType, Mode, OFlags, Stat,
185 /// `renameat` call that would otherwise fail, but which fails with `EXDEV`
188 let err = renameat(file, cstr!("../."), file, cstr!(".")).unwrap_err(); in is_mountpoint()
192 _ => panic!("Unexpected error from `renameat`: {:?}", err),
/third_party/rust/crates/nix/test/
H A Dtest_fcntl.rs6 use nix::fcntl::{openat, readlinkat, renameat};
71 renameat(Some(old_dirfd), "old", Some(new_dirfd), "new").unwrap(); in test_renameat()
73 renameat(Some(old_dirfd), "old", Some(new_dirfd), "new").unwrap_err(), in test_renameat()
/third_party/NuttX/fs/vfs/
H A Dfs_rename.c231 * Name: renameat
237 int renameat(int oldfd, const char *oldpath, int newdfd, const char *newpath) in renameat() function
/third_party/musl/porting/liteos_m/kernel/include/
H A Dstdio.h154 int renameat(int, const char *, int, const char *);
/third_party/musl/porting/liteos_a/kernel/include/
H A Dstdio.h156 int renameat(int, const char *, int, const char *);
/third_party/musl/porting/linux/user/include/
H A Dstdio.h157 int renameat(int, const char *, int, const char *);
/third_party/musl/porting/uniproton/kernel/include/
H A Dstdio.h154 int renameat(int, const char *, int, const char *);
/third_party/musl/include/
H A Dstdio.h157 int renameat(int, const char *, int, const char *);
/third_party/musl/libc-test/src/api/
H A Dstdio.c81 {int(*p)(int,const char*,int,const char*) = renameat;} in f()
/third_party/rust/crates/rustix/src/fs/
H A Dmod.rs95 linkat, mkdirat, openat, readlinkat, renameat, statat, symlinkat, unlinkat, utimensat, RawMode,
/third_party/rust/crates/nix/src/
H A Dfcntl.rs220 pub fn renameat<P1: ?Sized + NixPath, P2: ?Sized + NixPath>( in renameat() functions
228 libc::renameat( in renameat()
/third_party/rust/crates/rustix/src/backend/libc/fs/
H A Dsyscalls.rs322 pub(crate) fn renameat(
329 ret(c::renameat(
369 /// ABIs, `RenameFlags` has no flags defined, and we use plain `renameat`.
383 renameat(old_dirfd, old_path, new_dirfd, new_path)
/third_party/libfuse/example/
H A Dpassthrough_hp.cc529 auto res = renameat(inode_p.fd, name, inode_np.fd, newname); in sfs_rename()
H A Dpassthrough_ll.c497 res = renameat(lo_fd(req, parent), name, in lo_rename()
/third_party/musl/Benchmark/musl/
H A Dlibc_stdio.cpp1462 perror("open renameat old"); in Bm_function_Renameat()
1468 perror("open renameat new"); in Bm_function_Renameat()
1472 benchmark::DoNotOptimize(renameat(oldFd, oldPath, newFd, newPath)); in Bm_function_Renameat()
/third_party/rust/crates/libc/src/
H A Dwasi.rs632 pub fn renameat( in renameat() functions
/third_party/rust/crates/rustix/src/backend/linux_raw/fs/
H A Dsyscalls.rs1045 pub(crate) fn renameat(
/third_party/rust/crates/libc/src/unix/
H A Dmod.rs843 pub fn renameat( in renameat() functions
/third_party/python/Modules/
H A Dposixmodule.c146 # define HAVE_RENAMEAT_RUNTIME (renameat != NULL)
4825 result = renameat(src_dir_fd, src->narrow, dst_dir_fd, dst->narrow); in internal_rename()

Completed in 61 milliseconds

12