/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
D | renameat.c | 31 int oldfd, newfd; in renameat_0100() local 38 if ((oldfd = creat(oldPath, S_IWUSR)) < 0) { in renameat_0100() 44 close(oldfd); in renameat_0100() 46 oldfd = open(oldPath, O_RDWR); in renameat_0100() 47 int wresult = write(oldfd, msg, len); in renameat_0100() 51 close(oldfd); in renameat_0100() 52 if (renameat(oldfd, oldPath, newfd, newPath) == -1) { in renameat_0100()
|
/third_party/musl/src/unistd/ |
D | renameat.c | 4 int renameat(int oldfd, const char *old, int newfd, const char *new) in renameat() argument 7 return syscall(SYS_renameat, oldfd, old, newfd, new); in renameat() 9 return syscall(SYS_renameat2, oldfd, old, newfd, new, 0); in renameat()
|
/third_party/ltp/testcases/kernel/syscalls/dup3/ |
D | dup3_02.c | 28 int *oldfd; member 41 TST_EXP_FAIL2(dup3(*tc->oldfd, *tc->newfd, tc->flags), EINVAL, in run() 42 "dup3(%d, %d, %d)", *tc->oldfd, *tc->newfd, tc->flags); in run()
|
/third_party/ltp/lib/ |
D | tst_safe_macros.c | 477 int safe_dup(const char *file, const int lineno, int oldfd) in safe_dup() argument 481 rval = dup(oldfd); in safe_dup() 485 "dup(%i) failed", oldfd); in safe_dup() 488 "Invalid dup(%i) return value %d", oldfd, rval); in safe_dup() 494 int safe_dup2(const char *file, const int lineno, int oldfd, int newfd) in safe_dup2() argument 498 rval = dup2(oldfd, newfd); in safe_dup2() 502 "dup2(%i, %i) failed", oldfd, newfd); in safe_dup2() 506 oldfd, newfd, rval); in safe_dup2()
|
/third_party/NuttX/fs/vfs/ |
D | fs_rename.c | 117 int do_rename(int oldfd, const char *oldpath, int newfd, const char *newpath) in do_rename() argument 134 ret = vfs_normalize_pathat(oldfd, oldpath, &fulloldpath); in do_rename() 237 int renameat(int oldfd, const char *oldpath, int newdfd, const char *newpath) in renameat() argument 239 return do_rename(oldfd, oldpath, newdfd, newpath); in renameat()
|
D | fs_link.c | 36 int do_link(int oldfd, const char *oldpath, int newfd, const char *newpath, int flag) in do_link() argument 67 ret = vfs_normalize_pathat(oldfd, oldpath, &fulloldpath); in do_link() 80 ret = follow_symlink(oldfd, oldpath, &old_vnode, &fulloldpath); in do_link()
|
/third_party/ltp/include/ |
D | tst_safe_macros.h | 48 int safe_dup(const char *file, const int lineno, int oldfd); 50 #define SAFE_DUP(oldfd) \ argument 51 safe_dup(__FILE__, __LINE__, (oldfd)) 53 int safe_dup2(const char *file, const int lineno, int oldfd, int newfd); 55 #define SAFE_DUP2(oldfd, newfd) \ argument 56 safe_dup2(__FILE__, __LINE__, (oldfd), (newfd))
|
/third_party/libuv/src/unix/ |
D | linux-syscalls.c | 214 int uv__dup3(int oldfd, int newfd, int flags) { in uv__dup3() argument 218 return syscall(__NR_dup3, oldfd, newfd, flags); in uv__dup3()
|
D | linux-syscalls.h | 63 int uv__dup3(int oldfd, int newfd, int flags);
|
D | internal.h | 240 int uv__dup2_cloexec(int oldfd, int newfd);
|
D | core.c | 1041 int uv__dup2_cloexec(int oldfd, int newfd) { in uv__dup2_cloexec() argument 1045 r = dup3(oldfd, newfd, O_CLOEXEC); in uv__dup2_cloexec() 1054 r = dup2(oldfd, newfd); /* Never retry. */ in uv__dup2_cloexec()
|
/third_party/ltp/testcases/kernel/syscalls/linkat/ |
D | linkat01.c | 91 int *oldfd; member 244 (*desc->oldfd, desc->oldfn, *desc->newfd, desc->newfn, in mylinkat_test()
|
/third_party/rust/crates/nix/src/ |
D | unistd.rs | 428 pub fn dup(oldfd: RawFd) -> Result<RawFd> { 429 let res = unsafe { libc::dup(oldfd) }; 441 pub fn dup2(oldfd: RawFd, newfd: RawFd) -> Result<RawFd> { 442 let res = unsafe { libc::dup2(oldfd, newfd) }; 452 pub fn dup3(oldfd: RawFd, newfd: RawFd, flags: OFlag) -> Result<RawFd> { 453 dup3_polyfill(oldfd, newfd, flags) 457 fn dup3_polyfill(oldfd: RawFd, newfd: RawFd, flags: OFlag) -> Result<RawFd> { 458 if oldfd == newfd { 462 let fd = dup2(oldfd, newfd)?;
|
/third_party/rust/crates/libc/src/unix/linux_like/emscripten/ |
D | mod.rs | 1796 pub fn dup3(oldfd: ::c_int, newfd: ::c_int, flags: ::c_int) -> ::c_int; in dup3()
|
/third_party/rust/crates/libc/src/unix/linux_like/linux/ |
D | mod.rs | 4024 pub fn dup3(oldfd: ::c_int, newfd: ::c_int, flags: ::c_int) -> ::c_int; in dup3()
|
/third_party/rust/crates/libc/src/fuchsia/ |
D | mod.rs | 4003 pub fn dup3(oldfd: ::c_int, newfd: ::c_int, flags: ::c_int) -> ::c_int; in dup3()
|
/third_party/libabigail/tests/data/test-read-dwarf/ |
D | test15-pr18892.so.abi | 10076 …<parameter type-id='type-id-41' name='oldfd' filepath='../../.././libsanitizer/sanitizer_common/sa… 10082 …<parameter type-id='type-id-41' name='oldfd' filepath='../../.././libsanitizer/sanitizer_common/sa… 10087 …<parameter type-id='type-id-41' name='oldfd' filepath='../../.././libsanitizer/sanitizer_common/sa… 10094 …<parameter type-id='type-id-41' name='oldfd' filepath='../../.././libsanitizer/sanitizer_common/sa… 13688 …<parameter type-id='type-id-6' name='oldfd' filepath='../../.././libsanitizer/tsan/tsan_intercepto… 13692 …<parameter type-id='type-id-6' name='oldfd' filepath='../../.././libsanitizer/tsan/tsan_intercepto… 13697 …<parameter type-id='type-id-6' name='oldfd' filepath='../../.././libsanitizer/tsan/tsan_intercepto…
|
/third_party/libabigail/tests/data/test-annotate/ |
D | test15-pr18892.so.abi | 17772 …<parameter type-id='type-id-41' name='oldfd' filepath='../../.././libsanitizer/sanitizer_common/sa… 17783 …<parameter type-id='type-id-41' name='oldfd' filepath='../../.././libsanitizer/sanitizer_common/sa… 17792 …<parameter type-id='type-id-41' name='oldfd' filepath='../../.././libsanitizer/sanitizer_common/sa… 17805 …<parameter type-id='type-id-41' name='oldfd' filepath='../../.././libsanitizer/sanitizer_common/sa… 24186 …<parameter type-id='type-id-6' name='oldfd' filepath='../../.././libsanitizer/tsan/tsan_intercepto… 24193 …<parameter type-id='type-id-6' name='oldfd' filepath='../../.././libsanitizer/tsan/tsan_intercepto… 24202 …<parameter type-id='type-id-6' name='oldfd' filepath='../../.././libsanitizer/tsan/tsan_intercepto…
|