Home
last modified time | relevance | path

Searched refs:newdirfd (Results 1 – 20 of 20) sorted by relevance

/external/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,
113 &cwd_fd, TEST_DIR1 "/" TEST_FILE1, &newdirfd, TEST_FILE1, 0,
121 &cwd_fd, spathname, &newdirfd, TEST_FILE1, 0, 0, 0, 0},
128 &stdinfd, TEST_DIR1 "/" TEST_FILE1, &newdirfd, TEST_FILE1, 0,
136 &stdinfd, spathname, &newdirfd, TEST_FILE1, 0, 0, 0, 0},
143 &badfd, TEST_DIR1 "/" TEST_FILE1, &newdirfd, TEST_FILE1, 0,
151 &badfd, spathname, &newdirfd, TEST_FILE1, 0, 0, 0, 0},
[all …]
/external/ltp/testcases/kernel/syscalls/renameat2/
Drenameat201.c53 static int newdirfd; variable
59 int *newdirfd; 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
120 newdirfd = SAFE_OPEN(cleanup, TEST_DIR2, O_DIRECTORY); in setup()
128 if (newdirfd > 0 && close(newdirfd) < 0) in cleanup()
[all …]
Drenameat202.c40 static int newdirfd; variable
68 newdirfd, TEST_FILE2, RENAME_EXCHANGE)); in main()
97 newdirfd = SAFE_OPEN(cleanup, TEST_DIR2, O_DIRECTORY); in setup()
108 if (newdirfd > 0 && close(newdirfd) < 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()
/external/ltp/testcases/kernel/syscalls/symlinkat/
Dsymlinkat01.c67 static int olddirfd, newdirfd = -1, cwd_fd = AT_FDCWD, stdinfd = 0, crapfd = variable
80 "../" TEST_DIR1 "/" TEST_FILE1, &newdirfd, TEST_FILE1,
84 "../" TEST_DIR1 "/" TEST_FILE1, &newdirfd, dpathname,
127 int newdirfd, const char *newfilename) in mysymlinkat() argument
129 return ltp_syscall(__NR_symlinkat, oldfilename, newdirfd, newfilename); in mysymlinkat()
166 close(newdirfd); in setup_every_copy()
171 newdirfd = SAFE_OPEN(cleanup, TEST_DIR2, O_DIRECTORY); in setup_every_copy()
/external/ltp/testcases/kernel/syscalls/renameat/
Drenameat01.c77 static int newdirfd; variable
96 { &olddirfd, TESTFILE, &newdirfd, NEW_TESTFILE, 0 },
97 { &olddirfd, absoldpath, &newdirfd, absnewpath, 0 },
170 newdirfd = SAFE_OPEN(cleanup, NEW_TESTDIR, O_DIRECTORY); in setup()
240 if (newdirfd > 0 && close(newdirfd) < 0) in cleanup()
/external/ltp/include/lapi/
Drenameat.h28 int renameat(int olddirfd, const char *oldpath, int newdirfd, in renameat() argument
31 return ltp_syscall(__NR_renameat, olddirfd, oldpath, newdirfd, in renameat()
/external/strace/tests-m32/
Drenameat2.c46 const unsigned long newdirfd = in main() local
50 olddirfd, oldpath, newdirfd, newpath, 1); in main()
/external/strace/tests/
Drenameat2.c46 const unsigned long newdirfd = in main() local
50 olddirfd, oldpath, newdirfd, newpath, 1); in main()
/external/strace/tests-mx32/
Drenameat2.c46 const unsigned long newdirfd = in main() local
50 olddirfd, oldpath, newdirfd, newpath, 1); in main()
/external/rust/crates/libc/src/
Dwasi.rs507 newdirfd: ::c_int, in linkat()
521 newdirfd: ::c_int, in renameat()
526 newdirfd: ::c_int, in symlinkat()
629 newdirfd: c_int, in __wasilibc_nocwd_linkat()
653 newdirfd: c_int, in __wasilibc_nocwd_renameat()
688 newdirfd: c_int, in __wasilibc_link_newat()
699 newdirfd: c_int, in __wasilibc_rename_newat()
/external/llvm-project/clang/test/Analysis/
Dstd-c-library-functions-POSIX.c136 int symlinkat(const char *oldpath, int newdirfd, const char *newpath);
207 int renameat(int olddirfd, const char *oldpath, int newdirfd, const char *newpath);
/external/ltp/include/old/
Dsafe_macros.h97 #define SAFE_LINKAT(cleanup_fn, olddirfd, oldpath, newdirfd, newpath, flags) \ argument
99 (newdirfd), (newpath), (flags))
/external/ltp/include/
Dsafe_macros_fn.h103 int newdirfd, const char *newpath, int flags);
Dtst_safe_macros.h152 #define SAFE_LINKAT(olddirfd, oldpath, newdirfd, newpath, flags) \ argument
154 (newdirfd), (newpath), (flags))
/external/ltp/lib/
Dsafe_macros.c386 int newdirfd, const char *newpath, int flags) in safe_linkat() argument
390 rval = linkat(olddirfd, oldpath, newdirfd, newpath, flags); in safe_linkat()
395 file, lineno, olddirfd, oldpath, newdirfd, in safe_linkat()
/external/rust/crates/libc/src/unix/
Dmod.rs798 newdirfd: ::c_int, in linkat()
805 newdirfd: ::c_int, in renameat()
810 newdirfd: ::c_int, in symlinkat()
/external/rust/crates/nix/src/
Dunistd.rs1157 newdirfd: Option<RawFd>, in linkat()
1175 at_rawfd(newdirfd), in linkat()
/external/rust/crates/libc/src/unix/linux_like/linux/gnu/
Dmod.rs1436 newdirfd: ::c_int, in renameat2()
/external/rust/crates/libc/src/fuchsia/
Dmod.rs3538 newdirfd: ::c_int, in linkat()
3552 newdirfd: ::c_int, in renameat()
3557 newdirfd: ::c_int, in symlinkat()