Home
last modified time | relevance | path

Searched refs:old_path (Results 1 – 21 of 21) sorted by relevance

/third_party/rust/crates/rustix/src/fs/
Dat.rs132 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/
Dmongo_slinks.c22 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/
Dupdate_file.py13 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/
Dtest-wrapper.sh41 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/
Dtest_fcntl.rs66 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/
Dtest_modulefinder.py393 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)
Dtest_pkgutil.py456 self.old_path = sys.path[:]
459 sys.path[:] = self.old_path
Dtest_pathlib.py2402 old_path = os.getcwd()
2418 os.chdir(old_path)
/third_party/python/Lib/test/test_zoneinfo/
D_support.py90 old_path = self.module.TZPATH
100 self.module.reset_tzpath(old_path)
/third_party/node/deps/uvwasi/include/
Duvwasi.h200 const char* old_path,
228 const char* old_path,
234 const char* old_path,
/third_party/python/Lib/
Dntpath.py571 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/
Duvwasi.c1753 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/
Dntfs-3g.c2355 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/
Dsyscalls.rs300 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/
Dfcntl.rs222 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.py504 old_path = os.getenv('path')
509 os.environ['path'] = old_path
/third_party/python/Lib/distutils/tests/
Dtest_sdist.py63 self.old_path = os.getcwd()
74 os.chdir(self.old_path)
/third_party/ltp/lib/
Dtst_test.c1271 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/
Dnode_file.cc1209 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__.py1113 self.old_path = sys.path[:]
1117 sys.path[:] = self.old_path
/third_party/python/Doc/faq/
Dlibrary.rst474 To rename a file, use ``os.rename(old_path, new_path)``.