/external/ltp/include/lapi/ |
renameat.h | 28 int renameat(int olddirfd, const char *oldpath, int newdirfd, 31 return ltp_syscall(__NR_renameat, olddirfd, oldpath, newdirfd,
|
/external/ltp/testcases/kernel/syscalls/renameat2/ |
renameat2.h | 27 int renameat2(int olddirfd, const char *oldpath, int newdirfd, 30 return ltp_syscall(__NR_renameat2, olddirfd, oldpath, newdirfd,
|
renameat201.c | 27 * both olddirfd and newdirfd are valid and oldpath exists and 52 static int olddirfd; variable 57 int *olddirfd; member in struct:test_case 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) [all...] |
renameat202.c | 39 static int olddirfd; variable 67 TEST(renameat2(olddirfd, TEST_FILE, 96 olddirfd = SAFE_OPEN(cleanup, TEST_DIR, O_DIRECTORY); 105 if (olddirfd > 0 && close(olddirfd) < 0) 106 tst_resm(TWARN | TERRNO, "close olddirfd failed");
|
/external/strace/tests/ |
renameat2.c | 44 const unsigned long olddirfd = local 50 olddirfd, oldpath, newdirfd, newpath, 1); 53 (int) olddirfd, oldpath, newpath, rc, errno2name());
|
/external/strace/tests-m32/ |
renameat2.c | 44 const unsigned long olddirfd = local 50 olddirfd, oldpath, newdirfd, newpath, 1); 53 (int) olddirfd, oldpath, newpath, rc, errno2name());
|
/external/strace/tests-mx32/ |
renameat2.c | 44 const unsigned long olddirfd = local 50 olddirfd, oldpath, newdirfd, newpath, 1); 53 (int) olddirfd, oldpath, newpath, rc, errno2name());
|
/external/ltp/testcases/kernel/syscalls/linkat/ |
linkat01.c | 87 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...] |
/external/ltp/testcases/kernel/syscalls/renameat/ |
renameat01.c | 22 * 1) renameat(2) returns -1 and sets errno to EBADF if olddirfd 25 * is relative and olddirfd is a file descriptor referring to 76 static int olddirfd; variable 96 { &olddirfd, TESTFILE, &newdirfd, NEW_TESTFILE, 0 }, 97 { &olddirfd, absoldpath, &newdirfd, absnewpath, 0 }, 169 olddirfd = SAFE_OPEN(cleanup, TESTDIR, O_DIRECTORY); 237 if (olddirfd > 0 && close(olddirfd) < 0) 238 tst_resm(TWARN | TERRNO, "close olddirfd failed");
|
/external/ltp/testcases/kernel/syscalls/symlinkat/ |
symlinkat01.c | 67 static int olddirfd, newdirfd = -1, cwd_fd = AT_FDCWD, stdinfd = 0, crapfd = variable 224 olddirfd = SAFE_OPEN(cleanup, TEST_DIR1, O_DIRECTORY);
|
/external/ltp/include/old/ |
safe_macros.h | 97 #define SAFE_LINKAT(cleanup_fn, olddirfd, oldpath, newdirfd, newpath, flags) \ 98 safe_linkat(__FILE__, __LINE__, cleanup_fn, (olddirfd), (oldpath), \
|
/external/ltp/include/ |
safe_macros_fn.h | 102 void (cleanup_fn)(void), int olddirfd, const char *oldpath,
|
tst_safe_macros.h | 151 #define SAFE_LINKAT(olddirfd, oldpath, newdirfd, newpath, flags) \ 152 safe_linkat(__FILE__, __LINE__, NULL, (olddirfd), (oldpath), \
|
/external/ltp/lib/ |
safe_macros.c | 385 void (cleanup_fn)(void), int olddirfd, const char *oldpath, 390 rval = linkat(olddirfd, oldpath, newdirfd, newpath, flags); 395 file, lineno, olddirfd, oldpath, newdirfd,
|
/external/syzkaller/vendor/golang.org/x/sys/unix/ |
zsyscall_linux_386.go | 42 func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { 53 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) 1046 func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { 1057 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) [all...] |
zsyscall_linux_arm64.go | 42 func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { 53 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) 1046 func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { 1057 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) [all...] |
zsyscall_linux_s390x.go | 42 func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { 53 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) 1046 func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { 1057 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) [all...] |
zsyscall_linux_amd64.go | 42 func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { 53 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) 1046 func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { 1057 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) [all...] |
zsyscall_linux_arm.go | 42 func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { 53 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) 1046 func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { 1057 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) [all...] |
zsyscall_linux_mips.go | 42 func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { 53 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) 1046 func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { 1057 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) [all...] |
zsyscall_linux_mips64.go | 42 func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { 53 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) 1046 func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { 1057 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) [all...] |
zsyscall_linux_mips64le.go | 42 func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { 53 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) 1046 func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { 1057 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) [all...] |
zsyscall_linux_mipsle.go | 42 func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { 53 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) 1046 func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { 1057 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) [all...] |
zsyscall_linux_ppc64.go | 42 func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { 53 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) 1046 func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { 1057 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) [all...] |
zsyscall_linux_ppc64le.go | 42 func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { 53 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) 1046 func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { 1057 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) [all...] |