Home
last modified time | relevance | path

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

/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/eudev/src/shared/
Dlabel.c57 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()
Dlabel.h28 int symlink_label(const char *old_path, const char *new_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/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.py455 self.old_path = sys.path[:]
458 sys.path[:] = self.old_path
Dtest_pathlib.py2273 old_path = os.getcwd()
2289 os.chdir(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/boost/tools/litre/
Dcplusplus.py688 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/
Dntpath.py558 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/
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/python/Lib/distutils/tests/
Dtest_sdist.py62 self.old_path = os.getcwd()
73 os.chdir(self.old_path)
/third_party/python/Lib/distutils/
D_msvccompiler.py504 old_path = os.getenv('path')
509 os.environ['path'] = old_path
/third_party/uboot/u-boot-2020.01/tools/binman/
Dentry.py113 old_path = sys.path
121 sys.path = old_path
/third_party/ltp/lib/
Dtst_test.c1094 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/
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__.py1111 self.old_path = sys.path[:]
1115 sys.path[:] = self.old_path
/third_party/python/Doc/faq/
Dlibrary.rst477 To rename a file, use ``os.rename(old_path, new_path)``.