/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/eudev/src/shared/ |
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()
|
D | label.h | 28 int symlink_label(const char *old_path, const char *new_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/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 | 455 self.old_path = sys.path[:] 458 sys.path[:] = self.old_path
|
D | test_pathlib.py | 2273 old_path = os.getcwd() 2289 os.chdir(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/boost/tools/litre/ |
D | cplusplus.py | 688 old_path = os.getenv('PYTHONPATH') 689 if old_path == None: 691 old_path = '' 693 pythonpath = old_path + ':%s' % ':'.join(module_path) 712 os.putenv('PYTHONPATH', old_path)
|
/third_party/python/Lib/ |
D | ntpath.py | 558 old_path = path 566 if not islink(old_path): 567 path = old_path 569 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/python/Lib/distutils/tests/ |
D | test_sdist.py | 62 self.old_path = os.getcwd() 73 os.chdir(self.old_path)
|
/third_party/python/Lib/distutils/ |
D | _msvccompiler.py | 504 old_path = os.getenv('path') 509 os.environ['path'] = old_path
|
/third_party/uboot/u-boot-2020.01/tools/binman/ |
D | entry.py | 113 old_path = sys.path 121 sys.path = old_path
|
/third_party/ltp/lib/ |
D | tst_test.c | 1094 char *old_path = getenv("PATH"); in add_paths() local 1100 if (old_path) in add_paths() 1101 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 | 1111 self.old_path = sys.path[:] 1115 sys.path[:] = self.old_path
|
/third_party/python/Doc/faq/ |
D | library.rst | 477 To rename a file, use ``os.rename(old_path, new_path)``.
|