/third_party/ltp/testcases/kernel/fs/mongo/ |
H A 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/eudev/src/shared/ |
H A D | label.c | 57 int symlink_label(const char *old_path, const char *new_path) { in symlink_label() argument 60 assert(old_path); in symlink_label() 67 if (symlink(old_path, new_path) < 0) in symlink_label()
|
/third_party/rust/crates/nix/test/ |
H A D | test_fcntl.rs | 66 let old_path = old_dir.path().join("old"); in test_renameat() 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() 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() 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() 189 File::create(old_path).unwrap(); in test_renameat2_noreplace()
|
/third_party/python/Lib/test/test_zoneinfo/ |
H A D | _support.py | 90 old_path = self.module.TZPATH 100 self.module.reset_tzpath(old_path)
|
/third_party/python/Lib/test/ |
H A D | test_modulefinder.py | 394 old_path = os.path.join(self.test_dir, 'a', 'module.py') 398 replace_paths=[(old_path, new_path)]) 400 expected = "co_filename %r changed to %r" % (old_path, new_path)
|
H A D | test_pkgutil.py | 496 self.old_path = sys.path[:] 499 sys.path[:] = self.old_path
|
H A D | test_pathlib.py | 2482 old_path = os.getcwd() 2498 os.chdir(old_path)
|
/third_party/spirv-tools/tools/objdump/ |
H A D | objdump.cpp | 80 std::filesystem::path old_path(filepath); in OutputSourceFiles() 81 std::filesystem::path new_path = outdir / old_path.filename(); in OutputSourceFiles()
|
/third_party/node/deps/uvwasi/include/ |
H A D | uvwasi.h | 209 const char* old_path, 237 const char* old_path, 243 const char* old_path,
|
/third_party/python/Lib/ |
H A D | ntpath.py | 604 old_path = path 612 if not islink(old_path): 613 path = old_path 615 path = normpath(join(dirname(old_path), path))
|
/third_party/rust/crates/nix/src/ |
H A D | fcntl.rs | 222 old_path: &P1, in renameat() 226 let res = old_path.with_nix_path(|old_cstr| { in renameat() 259 old_path: &P1, in renameat2() 264 let res = old_path.with_nix_path(|old_cstr| { in renameat2()
|
/third_party/ntfs-3g/src/ |
H A D | ntfs-3g.c | 2356 static int ntfs_fuse_link(const char *old_path, const char *new_path) in ntfs_fuse_link() argument 2368 if (ntfs_fuse_is_named_data_stream(old_path)) in ntfs_fuse_link() 2376 ni = ntfs_pathname_to_inode(ctx->vol, NULL, old_path); in ntfs_fuse_link() 2401 samedir = !strncmp(old_path, path, strlen(path)) in ntfs_fuse_link() 2402 && (old_path[strlen(path)] == '/'); in ntfs_fuse_link() 2405 && ((!samedir && !ntfs_allowed_dir_access(&security,old_path, in ntfs_fuse_link() 2588 static int ntfs_fuse_safe_rename(const char *old_path, in ntfs_fuse_safe_rename() argument 2603 ret = ntfs_fuse_link(old_path, new_path); in ntfs_fuse_safe_rename() 2607 ret = ntfs_fuse_unlink(old_path); in ntfs_fuse_safe_rename() 2636 static int ntfs_fuse_rename_existing_dest(const char *old_path, cons argument 2680 ntfs_fuse_rename(const char *old_path, const char *new_path) ntfs_fuse_rename() argument [all...] |
/third_party/node/deps/uvwasi/src/ |
H A D | uvwasi.c | 1829 const char* old_path, in uvwasi_path_link() 1843 "old_path='%s', old_path_len=%d, new_fd=%d, new_path='%s', " in uvwasi_path_link() 1848 old_path, in uvwasi_path_link() 1854 if (uvwasi == NULL || old_path == NULL || new_path == NULL) in uvwasi_path_link() 1897 old_path, in uvwasi_path_link() 2202 const char* old_path, in uvwasi_path_rename() 2215 UVWASI_DEBUG("uvwasi_path_rename(uvwasi=%p, old_fd=%d, old_path='%s', " in uvwasi_path_rename() 2219 old_path, in uvwasi_path_rename() 2225 if (uvwasi == NULL || old_path == NULL || new_path == NULL) in uvwasi_path_rename() 2268 old_path, in uvwasi_path_rename() 1826 uvwasi_path_link(uvwasi_t* uvwasi, uvwasi_fd_t old_fd, uvwasi_lookupflags_t old_flags, const char* old_path, uvwasi_size_t old_path_len, uvwasi_fd_t new_fd, const char* new_path, uvwasi_size_t new_path_len) uvwasi_path_link() argument 2200 uvwasi_path_rename(uvwasi_t* uvwasi, uvwasi_fd_t old_fd, const char* old_path, uvwasi_size_t old_path_len, uvwasi_fd_t new_fd, const char* new_path, uvwasi_size_t new_path_len) uvwasi_path_rename() argument 2303 uvwasi_path_symlink(uvwasi_t* uvwasi, const char* old_path, uvwasi_size_t old_path_len, uvwasi_fd_t fd, const char* new_path, uvwasi_size_t new_path_len) uvwasi_path_symlink() argument [all...] |
/third_party/rust/crates/rustix/src/backend/libc/fs/ |
H A D | syscalls.rs | 300 old_path: &CStr, 308 c_str(old_path), 324 old_path: &CStr, 331 c_str(old_path), 341 old_path: &CStr, 360 c_str(old_path), in renameat2() 377 old_path: &CStr, 383 renameat(old_dirfd, old_path, new_dirfd, new_path) 388 old_path: &CStr, 394 c_str(old_path), [all...] |
/third_party/python/Lib/distutils/ |
H A D | _msvccompiler.py | 504 old_path = os.getenv('path') 509 os.environ['path'] = old_path
|
/third_party/python/Lib/distutils/tests/ |
H A D | test_sdist.py | 63 self.old_path = os.getcwd() 74 os.chdir(self.old_path)
|
/third_party/ltp/lib/ |
H A D | tst_test.c | 1437 char *old_path = getenv("PATH"); in add_paths() local 1443 if (old_path) in add_paths() 1444 SAFE_ASPRINTF(&new_path, "%s::%s", old_path, start_dir); in add_paths()
|
/third_party/libuv/test/ |
H A D | test-spawn.c | 1376 WCHAR* old_path = NULL; in TEST_IMPL() local 1380 old_path = malloc(old_path_len * sizeof(WCHAR)); in TEST_IMPL() 1381 GetEnvironmentVariableW(L"PATH", old_path, old_path_len); in TEST_IMPL() 1395 SetEnvironmentVariableW(L"PATH", old_path); in TEST_IMPL()
|
/third_party/node/src/ |
H A D | node_file.cc | 1376 BufferValue old_path(isolate, args[0]); in Rename() 1377 CHECK_NOT_NULL(*old_path); in Rename() 1385 "old_path", in Rename() 1386 TRACE_STR_COPY(*old_path), in Rename() 1391 *old_path, *new_path); in Rename() 1397 *old_path, *new_path); in Rename()
|
/third_party/python/Lib/test/test_import/ |
H A D | __init__.py | 1134 self.old_path = sys.path[:] 1138 sys.path[:] = self.old_path
|
/third_party/node/test/fixtures/postject-copy/node_modules/postject/dist/ |
H A D | api.js | [all...] |
/third_party/nghttp2/src/ |
H A D | shrpx_http3_upstream.cc | 507 const ngtcp2_path *old_path, in path_validation() 506 path_validation(ngtcp2_conn *conn, uint32_t flags, const ngtcp2_path *path, const ngtcp2_path *old_path, ngtcp2_path_validation_result res, void *user_data) path_validation() argument
|