Home
last modified time | relevance | path

Searched refs:newdirfd (Results 1 – 14 of 14) 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-mx32/
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/ltp/include/old/
Dsafe_macros.h97 #define SAFE_LINKAT(cleanup_fn, olddirfd, oldpath, newdirfd, newpath, flags) \ argument
99 (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/ltp/include/
Dsafe_macros_fn.h103 int newdirfd, const char *newpath, int flags);
Dtst_safe_macros.h134 #define SAFE_LINKAT(olddirfd, oldpath, newdirfd, newpath, flags) \ argument
136 (newdirfd), (newpath), (flags))