/third_party/rust/crates/rustix/tests/fs/ |
H A D | renameat.rs | 12 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 D | main.rs | 39 mod renameat; modules
|
/third_party/ltp/include/lapi/ |
H A D | renameat.h | 15 static inline int renameat(int olddirfd, const char *oldpath, int newdirfd, in renameat() function
|
/third_party/musl/src/unistd/ |
H A D | renameat.c | 4 int renameat(int oldfd, const char *old, int newfd, const char *new) in renameat() function
|
/third_party/ltp/testcases/kernel/syscalls/renameat/ |
H A D | renameat01.c | 22 * 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 D | renameat.c | 26 * @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 D | procfs.rs | 22 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 D | test_fcntl.rs | 6 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 D | fs_rename.c | 231 * 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 D | stdio.h | 154 int renameat(int, const char *, int, const char *);
|
/third_party/musl/porting/liteos_a/kernel/include/ |
H A D | stdio.h | 156 int renameat(int, const char *, int, const char *);
|
/third_party/musl/porting/linux/user/include/ |
H A D | stdio.h | 157 int renameat(int, const char *, int, const char *);
|
/third_party/musl/porting/uniproton/kernel/include/ |
H A D | stdio.h | 154 int renameat(int, const char *, int, const char *);
|
/third_party/musl/include/ |
H A D | stdio.h | 157 int renameat(int, const char *, int, const char *);
|
/third_party/musl/libc-test/src/api/ |
H A D | stdio.c | 81 {int(*p)(int,const char*,int,const char*) = renameat;} in f()
|
/third_party/rust/crates/rustix/src/fs/ |
H A D | mod.rs | 95 linkat, mkdirat, openat, readlinkat, renameat, statat, symlinkat, unlinkat, utimensat, RawMode,
|
/third_party/rust/crates/nix/src/ |
H A D | fcntl.rs | 220 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 D | syscalls.rs | 322 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 D | passthrough_hp.cc | 529 auto res = renameat(inode_p.fd, name, inode_np.fd, newname); in sfs_rename()
|
H A D | passthrough_ll.c | 497 res = renameat(lo_fd(req, parent), name, in lo_rename()
|
/third_party/musl/Benchmark/musl/ |
H A D | libc_stdio.cpp | 1462 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 D | wasi.rs | 632 pub fn renameat( in renameat() functions
|
/third_party/rust/crates/rustix/src/backend/linux_raw/fs/ |
H A D | syscalls.rs | 1045 pub(crate) fn renameat(
|
/third_party/rust/crates/libc/src/unix/ |
H A D | mod.rs | 843 pub fn renameat( in renameat() functions
|
/third_party/python/Modules/ |
H A D | posixmodule.c | 146 # define HAVE_RENAMEAT_RUNTIME (renameat != NULL) 4825 result = renameat(src_dir_fd, src->narrow, dst_dir_fd, dst->narrow); in internal_rename()
|