Home
last modified time | relevance | path

Searched refs:olddirfd (Results 1 – 18 of 18) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/renameat2/
Drenameat201.c52 static int olddirfd; variable
57 int *olddirfd; member
64 {&olddirfd, TEST_FILE, &newdirfd, TEST_FILE2, RENAME_NOREPLACE, EEXIST},
65 {&olddirfd, TEST_FILE, &newdirfd, TEST_FILE2, RENAME_EXCHANGE, 0},
66 {&olddirfd, TEST_FILE, &newdirfd, NON_EXIST, RENAME_EXCHANGE, ENOENT},
67 {&olddirfd, TEST_FILE, &newdirfd, TEST_FILE3, RENAME_NOREPLACE, 0},
68 {&olddirfd, TEST_FILE, &newdirfd, TEST_FILE2, RENAME_NOREPLACE
70 {&olddirfd, TEST_FILE, &newdirfd, TEST_FILE2, RENAME_WHITEOUT
119 olddirfd = SAFE_OPEN(cleanup, TEST_DIR, O_DIRECTORY); in setup()
125 if (olddirfd > 0 && close(olddirfd) < 0) in cleanup()
[all …]
Drenameat202.c39 static int olddirfd; variable
67 TEST(renameat2(olddirfd, TEST_FILE, in main()
96 olddirfd = SAFE_OPEN(cleanup, TEST_DIR, O_DIRECTORY); in setup()
105 if (olddirfd > 0 && close(olddirfd) < 0) in cleanup()
Drenameat2.h27 int renameat2(int olddirfd, const char *oldpath, int newdirfd, in renameat2() argument
30 return ltp_syscall(__NR_renameat2, olddirfd, oldpath, newdirfd, in renameat2()
/third_party/ltp/testcases/kernel/syscalls/linkat/
Dlinkat01.c87 static int olddirfd, newdirfd = -1, cwd_fd = AT_FDCWD, stdinfd = 0, badfd = variable
102 &olddirfd, TEST_FILE1, &newdirfd, TEST_FILE1, 0,
106 &olddirfd, spathname, &newdirfd, TEST_FILE1, 0, 0, 0, 0},
109 &olddirfd, TEST_FILE1, &newdirfd, dpathname, 0,
117 &olddirfd, TEST_FILE1, &cwd_fd, TEST_DIR2 "/" TEST_FILE1, 0,
124 &olddirfd, TEST_FILE1, &cwd_fd, dpathname, 0,
132 &olddirfd, TEST_FILE1, &stdinfd, TEST_DIR2 "/" TEST_FILE1, 0,
139 &olddirfd, TEST_FILE1, &stdinfd, dpathname, 0,
147 &olddirfd, TEST_FILE1, &badfd, TEST_DIR2 "/" TEST_FILE1, 0,
154 &olddirfd, TEST_FILE1, &badfd, dpathname, 0,
[all …]
/third_party/ltp/testcases/kernel/syscalls/renameat/
Drenameat01.c75 static int olddirfd; variable
95 { &olddirfd, TESTFILE, &newdirfd, NEW_TESTFILE, 0 },
96 { &olddirfd, absoldpath, &newdirfd, absnewpath, 0 },
168 olddirfd = SAFE_OPEN(cleanup, TESTDIR, O_DIRECTORY); in setup()
236 if (olddirfd > 0 && close(olddirfd) < 0) in cleanup()
/third_party/ltp/include/lapi/
Drenameat.h15 static inline int renameat(int olddirfd, const char *oldpath, int newdirfd, in renameat() argument
18 return ltp_syscall(__NR_renameat, olddirfd, oldpath, newdirfd, in renameat()
/third_party/NuttX/fs/vfs/
Dfs_link.c156 int linkat(int olddirfd, const char *oldpath, int newdirfd, const char *newpath, int flags) in linkat() argument
158 return do_link(olddirfd, oldpath, newdirfd, newpath, flags); in linkat()
/third_party/ltp/testcases/kernel/syscalls/symlinkat/
Dsymlinkat01.c67 static int olddirfd, newdirfd = -1, cwd_fd = AT_FDCWD, stdinfd = 0, crapfd = variable
224 olddirfd = SAFE_OPEN(cleanup, TEST_DIR1, O_DIRECTORY); in setup()
/third_party/rust/crates/libc/src/
Dwasi.rs619 olddirfd: ::c_int, in linkat()
633 olddirfd: ::c_int, in renameat()
746 olddirfd: c_int, in __wasilibc_nocwd_linkat()
770 olddirfd: c_int, in __wasilibc_nocwd_renameat()
800 olddirfd: c_int, in __wasilibc_link_oldat()
812 olddirfd: c_int, in __wasilibc_rename_oldat()
/third_party/ltp/include/old/
Dsafe_macros.h97 #define SAFE_LINKAT(cleanup_fn, olddirfd, oldpath, newdirfd, newpath, flags) \ argument
98 safe_linkat(__FILE__, __LINE__, cleanup_fn, (olddirfd), (oldpath), \
/third_party/ltp/lib/
Dsafe_macros.c459 void (cleanup_fn)(void), int olddirfd, const char *oldpath, in safe_linkat() argument
464 rval = linkat(olddirfd, oldpath, newdirfd, newpath, flags); in safe_linkat()
468 "linkat(%d,%s,%d,%s,%d) failed", olddirfd, oldpath, in safe_linkat()
473 olddirfd, oldpath, newdirfd, newpath, flags, rval); in safe_linkat()
/third_party/ltp/include/
Dsafe_macros_fn.h102 void (cleanup_fn)(void), int olddirfd, const char *oldpath,
Dtst_safe_macros.h165 #define SAFE_LINKAT(olddirfd, oldpath, newdirfd, newpath, flags) \ argument
166 safe_linkat(__FILE__, __LINE__, NULL, (olddirfd), (oldpath), \
/third_party/rust/crates/libc/src/unix/
Dmod.rs837 olddirfd: ::c_int, in linkat()
844 olddirfd: ::c_int, in renameat()
/third_party/rust/crates/libc/src/unix/linux_like/linux/gnu/
Dmod.rs1253 olddirfd: ::c_int, in renameat2()
/third_party/rust/crates/nix/src/
Dunistd.rs1253 olddirfd: Option<RawFd>,
1271 at_rawfd(olddirfd),
/third_party/rust/crates/rustix/src/backend/libc/fs/
Dsyscalls.rs349 olddirfd: c::c_int, in renameat2()
/third_party/rust/crates/libc/src/fuchsia/
Dmod.rs3556 olddirfd: ::c_int, in linkat()
3570 olddirfd: ::c_int, in renameat()