/third_party/rust/crates/rustix/src/fs/ |
D | at.rs | 132 old_path: P, in linkat() 137 old_path.into_with_c_str(|old_path| { in linkat() 141 old_path, in linkat() 179 old_path: P, in renameat() 183 old_path.into_with_c_str(|old_path| { in renameat() 187 old_path, in renameat() 207 old_path: P, in renameat_with() 212 old_path.into_with_c_str(|old_path| { in renameat_with() 216 old_path, in renameat_with() 235 old_path: P, in symlinkat() [all …]
|
/third_party/ltp/testcases/kernel/fs/mongo/ |
D | mongo_slinks.c | 22 char *old_path; in main() local 40 old_path = strtok(line_buffer, "\t "); in main() 43 if (!old_path || !new_path) /* empty lines at the end of file */ in main() 47 if (symlink(old_path, new_path) != 0) { in main()
|
/third_party/python/Tools/scripts/ |
D | update_file.py | 13 def main(old_path, new_path): argument 14 with open(old_path, 'rb') as f: 19 os.replace(new_path, old_path)
|
/third_party/elfutils/tests/ |
D | test-wrapper.sh | 41 old_path="${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" 51 LD_LIBRARY_PATH="$built_library_path$old_path" 56 LD_LIBRARY_PATH="${libdir}:${libdir}/elfutils$old_path"
|
/third_party/rust/crates/nix/test/ |
D | test_fcntl.rs | 66 let old_path = old_dir.path().join("old"); in test_renameat() localVariable 67 File::create(old_path).unwrap(); in test_renameat() 96 let old_path = old_dir.path().join("old"); in test_renameat2_behaves_like_renameat_with_no_flags() localVariable 97 File::create(old_path).unwrap(); in test_renameat2_behaves_like_renameat_with_no_flags() 140 let old_path = old_dir.path().join("old"); in test_renameat2_exchange() localVariable 142 let mut old_f = File::create(&old_path).unwrap(); in test_renameat2_exchange() 166 let mut old_f = File::open(&old_path).unwrap(); in test_renameat2_exchange() 188 let old_path = old_dir.path().join("old"); in test_renameat2_noreplace() localVariable 189 File::create(old_path).unwrap(); in test_renameat2_noreplace()
|
/third_party/python/Lib/test/ |
D | test_modulefinder.py | 393 old_path = os.path.join(TEST_DIR, 'a', 'module.py') 397 replace_paths=[(old_path, new_path)]) 399 expected = "co_filename %r changed to %r" % (old_path, new_path)
|
D | test_pkgutil.py | 456 self.old_path = sys.path[:] 459 sys.path[:] = self.old_path
|
D | test_pathlib.py | 2402 old_path = os.getcwd() 2418 os.chdir(old_path)
|
/third_party/python/Lib/test/test_zoneinfo/ |
D | _support.py | 90 old_path = self.module.TZPATH 100 self.module.reset_tzpath(old_path)
|
/third_party/node/deps/uvwasi/include/ |
D | uvwasi.h | 200 const char* old_path, 228 const char* old_path, 234 const char* old_path,
|
/third_party/python/Lib/ |
D | ntpath.py | 571 old_path = path 579 if not islink(old_path): 580 path = old_path 582 path = normpath(join(dirname(old_path), path))
|
/third_party/node/deps/uvwasi/src/ |
D | uvwasi.c | 1753 const char* old_path, in uvwasi_path_link() argument 1772 old_path, in uvwasi_path_link() 1778 if (uvwasi == NULL || old_path == NULL || new_path == NULL) in uvwasi_path_link() 1821 old_path, in uvwasi_path_link() 2125 const char* old_path, in uvwasi_path_rename() argument 2142 old_path, in uvwasi_path_rename() 2148 if (uvwasi == NULL || old_path == NULL || new_path == NULL) in uvwasi_path_rename() 2191 old_path, in uvwasi_path_rename() 2227 const char* old_path, in uvwasi_path_symlink() argument 2241 old_path, in uvwasi_path_symlink() [all …]
|
/third_party/ntfs-3g/src/ |
D | ntfs-3g.c | 2355 static int ntfs_fuse_link(const char *old_path, const char *new_path) in ntfs_fuse_link() argument 2367 if (ntfs_fuse_is_named_data_stream(old_path)) in ntfs_fuse_link() 2375 ni = ntfs_pathname_to_inode(ctx->vol, NULL, old_path); in ntfs_fuse_link() 2400 samedir = !strncmp(old_path, path, strlen(path)) in ntfs_fuse_link() 2401 && (old_path[strlen(path)] == '/'); in ntfs_fuse_link() 2404 && ((!samedir && !ntfs_allowed_dir_access(&security,old_path, in ntfs_fuse_link() 2587 static int ntfs_fuse_safe_rename(const char *old_path, in ntfs_fuse_safe_rename() argument 2602 ret = ntfs_fuse_link(old_path, new_path); in ntfs_fuse_safe_rename() 2606 ret = ntfs_fuse_unlink(old_path); in ntfs_fuse_safe_rename() 2635 static int ntfs_fuse_rename_existing_dest(const char *old_path, const char *new_path) in ntfs_fuse_rename_existing_dest() argument [all …]
|
/third_party/rust/crates/rustix/src/backend/libc/fs/ |
D | syscalls.rs | 300 old_path: &CStr, in linkat() 308 c_str(old_path), in linkat() 324 old_path: &CStr, in renameat() 331 c_str(old_path), in renameat() 341 old_path: &CStr, in renameat2() 360 c_str(old_path), in renameat2() 377 old_path: &CStr, in renameat2() 383 renameat(old_dirfd, old_path, new_dirfd, new_path) in renameat2() 388 old_path: &CStr, in symlinkat() 394 c_str(old_path), in symlinkat()
|
/third_party/rust/crates/nix/src/ |
D | fcntl.rs | 222 old_path: &P1, 226 let res = old_path.with_nix_path(|old_cstr| { 259 old_path: &P1, 264 let res = old_path.with_nix_path(|old_cstr| {
|
/third_party/python/Lib/distutils/ |
D | _msvccompiler.py | 504 old_path = os.getenv('path') 509 os.environ['path'] = old_path
|
/third_party/python/Lib/distutils/tests/ |
D | test_sdist.py | 63 self.old_path = os.getcwd() 74 os.chdir(self.old_path)
|
/third_party/ltp/lib/ |
D | tst_test.c | 1271 char *old_path = getenv("PATH"); in add_paths() local 1277 if (old_path) in add_paths() 1278 SAFE_ASPRINTF(&new_path, "%s::%s", old_path, start_dir); in add_paths()
|
/third_party/node/src/ |
D | node_file.cc | 1209 BufferValue old_path(isolate, args[0]); in Rename() local 1210 CHECK_NOT_NULL(*old_path); in Rename() 1218 *old_path, *new_path); in Rename() 1224 *old_path, *new_path); in Rename()
|
/third_party/python/Lib/test/test_import/ |
D | __init__.py | 1113 self.old_path = sys.path[:] 1117 sys.path[:] = self.old_path
|
/third_party/python/Doc/faq/ |
D | library.rst | 474 To rename a file, use ``os.rename(old_path, new_path)``.
|