/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 58 const char *oldpath; member in struct:test_case 137 TEST(renameat2(*(test->olddirfd), test->oldpath,
|
/external/strace/tests/ |
renameat2.c | 42 static const char oldpath[] = "renameat2_oldpath"; local 50 olddirfd, oldpath, newdirfd, newpath, 1); 53 (int) olddirfd, oldpath, newpath, rc, errno2name());
|
symlinkat.c | 13 static const char oldpath[] = "symlink_old"; local 16 long rc = syscall(__NR_symlinkat, oldpath, fd, newpath); 18 oldpath, (int) fd, newpath, rc, errno2name());
|
/external/strace/tests-m32/ |
renameat2.c | 42 static const char oldpath[] = "renameat2_oldpath"; local 50 olddirfd, oldpath, newdirfd, newpath, 1); 53 (int) olddirfd, oldpath, newpath, rc, errno2name());
|
symlinkat.c | 13 static const char oldpath[] = "symlink_old"; local 16 long rc = syscall(__NR_symlinkat, oldpath, fd, newpath); 18 oldpath, (int) fd, newpath, rc, errno2name());
|
/external/strace/tests-mx32/ |
renameat2.c | 42 static const char oldpath[] = "renameat2_oldpath"; local 50 olddirfd, oldpath, newdirfd, newpath, 1); 53 (int) olddirfd, oldpath, newpath, rc, errno2name());
|
symlinkat.c | 13 static const char oldpath[] = "symlink_old"; local 16 long rc = syscall(__NR_symlinkat, oldpath, fd, newpath); 18 oldpath, (int) fd, newpath, rc, errno2name());
|
/external/ltp/testcases/kernel/syscalls/link/ |
link08.c | 23 * if oldpath is a directory. 25 * if oldpath and newpath are not on the same mounted file system( Linux 49 char *oldpath; member in struct:tcase 63 TEST(link(tc->oldpath, tc->newpath));
|
/external/ltp/include/old/ |
safe_macros.h | 94 #define SAFE_LINK(cleanup_fn, oldpath, newpath) \ 95 safe_link(__FILE__, __LINE__, cleanup_fn, (oldpath), (newpath)) 97 #define SAFE_LINKAT(cleanup_fn, olddirfd, oldpath, newdirfd, newpath, flags) \ 98 safe_linkat(__FILE__, __LINE__, cleanup_fn, (olddirfd), (oldpath), \ 104 #define SAFE_SYMLINK(cleanup_fn, oldpath, newpath) \ 105 safe_symlink(__FILE__, __LINE__, cleanup_fn, (oldpath), (newpath)) 147 #define SAFE_RENAME(cleanup_fn, oldpath, newpath) \ 148 safe_rename(__FILE__, __LINE__, (cleanup_fn), (oldpath), (newpath))
|
/external/ltp/include/ |
safe_macros_fn.h | 98 void (cleanup_fn)(void), const char *oldpath, 102 void (cleanup_fn)(void), int olddirfd, const char *oldpath, 110 void (cleanup_fn)(void), const char *oldpath, 155 const char *oldpath, const char *newpath);
|
tst_safe_macros.h | 148 #define SAFE_LINK(oldpath, newpath) \ 149 safe_link(__FILE__, __LINE__, NULL, (oldpath), (newpath)) 151 #define SAFE_LINKAT(olddirfd, oldpath, newdirfd, newpath, flags) \ 152 safe_linkat(__FILE__, __LINE__, NULL, (olddirfd), (oldpath), \ 158 #define SAFE_SYMLINK(oldpath, newpath) \ 159 safe_symlink(__FILE__, __LINE__, NULL, (oldpath), (newpath)) 200 #define SAFE_RENAME(oldpath, newpath) \ 201 safe_rename(__FILE__, __LINE__, NULL, (oldpath), (newpath))
|
/external/ltp/testcases/kernel/syscalls/renameat/ |
renameat01.c | 24 * 2) renameat(2) returns -1 and sets errno to ENOTDIR if oldpath 29 * symbolic links were encountered in resolving oldpath or 33 * 5) renameat(2) returns -1 and sets errno to EMLINK if oldpath 90 const char *oldpath; member in struct:test_case_t 204 TEST(renameat(*(tc->oldfdptr), tc->oldpath, 228 *(tc->oldfdptr), tc->oldpath) < 0) { 231 *(tc->oldfdptr), tc->oldpath);
|
/external/openssh/ |
sftp-server.c | 1175 char *oldpath, *newpath; local 1179 if ((r = sshbuf_get_cstring(iqueue, &oldpath, NULL)) != 0 || 1184 logit("rename old \"%s\" new \"%s\"", oldpath, newpath); 1186 if (lstat(oldpath, &sb) == -1) 1190 if (link(oldpath, newpath) == -1) { 1206 if (rename(oldpath, newpath) == -1) 1215 } else if (unlink(oldpath) == -1) { 1222 if (rename(oldpath, newpath) == -1) 1228 free(oldpath); 1260 char *oldpath, *newpath local 1280 char *oldpath, *newpath; local 1338 char *oldpath, *newpath; local [all...] |
sftp-client.c | 873 do_rename(struct sftp_conn *conn, const char *oldpath, const char *newpath, 896 if ((r = sshbuf_put_cstring(msg, oldpath)) != 0 || 902 "SSH2_FXP_RENAME", oldpath, newpath); 907 error("Couldn't rename file \"%s\" to \"%s\": %s", oldpath, 914 do_hardlink(struct sftp_conn *conn, const char *oldpath, const char *newpath) 933 (r = sshbuf_put_cstring(msg, oldpath)) != 0 || 938 oldpath, newpath); 943 error("Couldn't link file \"%s\" to \"%s\": %s", oldpath, 950 do_symlink(struct sftp_conn *conn, const char *oldpath, const char *newpath) 968 (r = sshbuf_put_cstring(msg, oldpath)) != 0 | [all...] |
/external/u-boot/fs/yaffs2/ |
yaffsfs.h | 102 int yaffs_rename(const YCHAR *oldPath, const YCHAR *newPath) ; 170 int yaffs_symlink(const YCHAR *oldpath, const YCHAR *newpath); 173 int yaffs_link(const YCHAR *oldpath, const YCHAR *newpath);
|
/external/ltp/lib/ |
safe_macros.c | 368 void (cleanup_fn)(void), const char *oldpath, 373 rval = link(oldpath, newpath); 378 file, lineno, oldpath, newpath); 385 void (cleanup_fn)(void), int olddirfd, const char *oldpath, 390 rval = linkat(olddirfd, oldpath, newdirfd, newpath, flags); 395 file, lineno, olddirfd, oldpath, newdirfd, 427 void (cleanup_fn)(void), const char *oldpath, 432 rval = symlink(oldpath, newpath); 437 file, lineno, oldpath, newpath); 687 const char *oldpath, const char *newpath [all...] |
/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_posix.h | 51 uptr internal_rename(const char *oldpath, const char *newpath);
|
sanitizer_posix.cc | 245 bool RenameFile(const char *oldpath, const char *newpath, error_t *error_p) { 246 uptr res = internal_rename(oldpath, newpath);
|
sanitizer_mac.cc | 214 uptr internal_rename(const char *oldpath, const char *newpath) { 215 return rename(oldpath, newpath);
|
/external/e2fsprogs/misc/ |
fsck.c | 1264 char *oldpath = getenv("PATH"); local 1289 if (oldpath) { 1291 strlen (oldpath) + 1); 1298 strcat (fsck_path, oldpath);
|
/external/kmod/testsuite/ |
testsuite.c | 1054 char *oldpath, *newpath; local 1060 oldpath = getenv("PATH"); 1061 if (oldpath == NULL) 1064 if (asprintf(&newpath, "%s:%s", extra, oldpath) < 0) {
|
/external/autotest/client/bin/ |
utils.py | 617 def prepend_path(newpath, oldpath): 618 """prepend newpath to oldpath""" 619 if (oldpath): 620 return newpath + ':' + oldpath 625 def append_path(oldpath, newpath): 626 """append newpath to oldpath""" 627 if (oldpath): 628 return oldpath + ':' + newpath [all...] |
/external/tensorflow/tensorflow/python/lib/io/ |
file_io.py | 468 def copy(oldpath, newpath, overwrite=False): 469 """Copies data from oldpath to newpath. 472 oldpath: string, name of the file who's contents need to be copied 480 copy_v2(oldpath, newpath, overwrite)
|