Home
last modified time | relevance | path

Searched refs:new_path (Results 1 – 25 of 49) sorted by relevance

12

/third_party/gn/src/base/files/
Dfile_path.cc300 FilePath new_path(path_); in DirName() local
301 new_path.StripTrailingSeparatorsInternal(); in DirName()
307 StringType::size_type letter = FindDriveLetter(new_path.path_); in DirName()
309 StringType::size_type last_separator = new_path.path_.find_last_of( in DirName()
313 new_path.path_.resize(letter + 1); in DirName()
316 new_path.path_.resize(letter + 2); in DirName()
318 IsSeparator(new_path.path_[letter + 1])) { in DirName()
321 new_path.path_.resize(letter + 3); in DirName()
324 new_path.path_.resize(last_separator); in DirName()
327 new_path.StripTrailingSeparatorsInternal(); in DirName()
[all …]
Dfile_util.cc232 FilePath new_path; in GetUniquePathNumber() local
234 new_path = path.InsertBeforeExtensionASCII(StringPrintf(" (%d)", count)); in GetUniquePathNumber()
235 if (!PathExists(new_path) && in GetUniquePathNumber()
236 (!have_suffix || !PathExists(FilePath(new_path.value() + suffix)))) { in GetUniquePathNumber()
/third_party/gn/misc/vim/autoload/
Dgn.vim7 let l:new_path = substitute(a:name, '\v^//', '', '')
10 let l:new_path = substitute(l:new_path, '\v:.*$', '', '')
16 if maktaba#path#Basename(l:new_path) !~# '\V.'
17 let l:new_path = maktaba#path#Join([l:new_path, 'BUILD.gn'])
21 if isdirectory(l:new_path)
22 let l:new_path = substitute(l:new_path, '\v/?$', '/BUILD.gn', '')
25 return l:new_path
/third_party/ltp/testcases/kernel/fs/mongo/
Dmongo_slinks.c23 char *new_path; in main() local
41 new_path = strtok(NULL, "\t\n "); 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()
52 if (lstat(new_path, &statbuf) == -1) { in main()
59 new_path); in main()
69 num = readlink(new_path, buffer, size); in main()
/third_party/rust/crates/rustix/src/fs/
Dat.rs134 new_path: Q, in linkat()
138 new_path.into_with_c_str(|new_path| { in linkat()
143 new_path, in linkat()
181 new_path: Q, in renameat()
184 new_path.into_with_c_str(|new_path| { in renameat()
189 new_path, in renameat()
209 new_path: Q, in renameat_with()
213 new_path.into_with_c_str(|new_path| { in renameat_with()
218 new_path, in renameat_with()
237 new_path: Q, in symlinkat()
[all …]
/third_party/ltp/testcases/kernel/fs/iso9660/
Disofs.sh37 local i new_path
42 new_path="$cur_path/subdir_$i"
43 mkdir -p "$new_path"
44 ROD_SILENT dd if=/dev/urandom of="$new_path/file" bs=1024 count=100
45 gen_fs_tree "$new_path" $((cur_depth + 1))
/third_party/python/Tools/scripts/
Dupdate_file.py13 def main(old_path, new_path): argument
16 with open(new_path, 'rb') as f:
19 os.replace(new_path, old_path)
21 os.unlink(new_path)
/third_party/vulkan-loader/tests/framework/
Dtest_util.cpp281 path new_path = contents; in operator +() local
282 new_path += in; in operator +()
283 return new_path; in operator +()
286 path new_path = contents; in operator +() local
287 new_path += in; in operator +()
288 return new_path; in operator +()
291 path new_path(contents); in operator +() local
292 new_path += in; in operator +()
293 return new_path; in operator +()
297 path new_path = contents; in operator /() local
[all …]
/third_party/vulkan-loader/tests/framework/shim/
Dshim_common.cpp146 void PlatformShim::redirect_category(fs::path const& new_path, ManifestCategory search_category) {} argument
163 …edirect_path(fs::path const& path, fs::path const& new_path) { redirection_map[path.str()] = new_p… argument
175 void PlatformShim::redirect_category(fs::path const& new_path, ManifestCategory category) { argument
207 redirect_path(fs::path(path) / "vulkan" / category_path_name(category), new_path);
/third_party/cJSON/
DcJSON_Utils.c1175 …unsigned char *new_path = (unsigned char*)cJSON_malloc(strlen((const char*)path) + 20 + sizeof("/"… in create_patches() local
1185 cJSON_free(new_path); in create_patches()
1188 …sprintf((char*)new_path, "%s/%lu", path, (unsigned long)index); /* path of the current array eleme… in create_patches()
1189 create_patches(patches, new_path, from_child, to_child, case_sensitive); in create_patches()
1200 cJSON_free(new_path); in create_patches()
1203 sprintf((char*)new_path, "%lu", (unsigned long)index); in create_patches()
1204 compose_patch(patches, (const unsigned char*)"remove", path, new_path, NULL); in create_patches()
1211 cJSON_free(new_path); in create_patches()
1246 …unsigned char *new_path = (unsigned char*)cJSON_malloc(path_length + from_child_name_length + size… in create_patches() local
1248 sprintf((char*)new_path, "%s/", path); in create_patches()
[all …]
/third_party/python/Modules/
Dgetpath.c292 wchar_t *new_path = PyMem_RawMalloc((len + 1) * sizeof(wchar_t)); in joinpath2() local
293 if (new_path == NULL) { in joinpath2()
297 wcscpy(new_path, path); in joinpath2()
299 wcscat(new_path, separator); in joinpath2()
301 wcscat(new_path, path2); in joinpath2()
302 return new_path; in joinpath2()
1051 wchar_t new_path[MAXPATHLEN + 1]; in resolve_symlinks() local
1052 const size_t new_path_len = Py_ARRAY_LENGTH(new_path); in resolve_symlinks()
1056 int linklen = _Py_wreadlink(*path_p, new_path, new_path_len); in resolve_symlinks()
1062 if (_Py_isabs(new_path)) { in resolve_symlinks()
[all …]
/third_party/python/Lib/zoneinfo/
D_tzpath.py89 new_path = os.path.normpath(path)
90 if len(new_path) != len(path):
95 resolved = os.path.normpath(os.path.join(_base, new_path))
/third_party/python/Lib/test/
Dtest_modulefinder.py394 new_path = os.path.join(TEST_DIR, 'a', 'spam.py')
397 replace_paths=[(old_path, new_path)])
399 expected = "co_filename %r changed to %r" % (old_path, new_path)
/third_party/ltp/testcases/kernel/controllers/cgroup_fj/
Dcgroup_fj_stress.sh121 local new_path="$cur_path/$i"
122 attach_task "$new_path" $((cur_depth+1)) "$ppid"
/third_party/libuv/src/unix/
Dfs.c111 req->new_path = NULL; \
134 req->new_path = new_path; \
139 new_path_len = strlen(new_path) + 1; \
143 req->new_path = req->path + path_len; \
145 memcpy((void*) req->new_path, new_path, new_path_len); \
1324 req->new_path, in uv__fs_copyfile()
1439 uv_fs_unlink(NULL, &fs_req, req->new_path, NULL); in uv__fs_copyfile()
1750 X(LINK, link(req->path, req->new_path)); in uv__fs_work()
1762 X(RENAME, rename(req->path, req->new_path)); in uv__fs_work()
1767 X(SYMLINK, symlink(req->path, req->new_path)); in uv__fs_work()
[all …]
/third_party/PyYAML/lib/yaml/
Dresolver.py53 new_path = []
79 new_path.append((node_check, index_check))
89 cls.yaml_path_resolvers[tuple(new_path), kind] = tag
/third_party/rust/crates/which-rs/src/
Dfinder.rs41 let mut new_path = PathBuf::from(cwd.as_ref()); in to_absolute() localVariable
42 new_path.push(self); in to_absolute()
43 new_path in to_absolute()
/third_party/libwebsockets/lib/roles/http/client/
Dclient-http.c599 char new_path[300]; in lws_client_interpret_server_handshake() local
792 path = new_path + 1; in lws_client_interpret_server_handshake()
794 lws_strncpy(new_path, lws_hdr_simple_ptr(wsi, in lws_client_interpret_server_handshake()
795 _WSI_TOKEN_CLIENT_URI), sizeof(new_path)); in lws_client_interpret_server_handshake()
797 new_path[0] = '/'; in lws_client_interpret_server_handshake()
798 new_path[1] = '\0'; in lws_client_interpret_server_handshake()
800 q = strrchr(new_path, '/'); in lws_client_interpret_server_handshake()
802 lws_strncpy(q + 1, p, sizeof(new_path) - in lws_client_interpret_server_handshake()
803 (unsigned int)(q - new_path) - 1); in lws_client_interpret_server_handshake()
/third_party/littlefs/tests/
Dtest_relocations.toml259 char new_path[256];
261 sprintf(&new_path[2*d], "/%c", alpha[rand() % FILES]);
265 res = lfs_stat(&lfs, new_path, &info);
272 strcpy(&path[128+2*d], &new_path[2*d]);
282 strcpy(path, new_path);
/third_party/rust/crates/nix/test/
Dtest_fcntl.rs148 let new_path = new_dir.path().join("new"); in test_renameat2_exchange() localVariable
150 let mut new_f = File::create(&new_path).unwrap(); in test_renameat2_exchange()
162 let mut new_f = File::open(&new_path).unwrap(); in test_renameat2_exchange()
193 let new_path = new_dir.path().join("new"); in test_renameat2_noreplace() localVariable
194 File::create(new_path).unwrap(); in test_renameat2_noreplace()
/third_party/node/deps/uvwasi/include/
Duvwasi.h203 const char* new_path,
231 const char* new_path,
237 const char* new_path,
/third_party/libuv/src/win/
Dfs.c146 const char* new_path, const int copy_path) { in fs__capture_path() argument
152 assert(new_path == NULL || path != NULL); in fs__capture_path()
173 if (new_path != NULL) { in fs__capture_path()
176 new_path, in fs__capture_path()
216 if (new_path != NULL) { in fs__capture_path()
219 new_path, in fs__capture_path()
2380 const WCHAR* new_path) { in fs__create_junction() argument
2496 if (!CreateDirectoryW(new_path, NULL)) { in fs__create_junction()
2503 handle = CreateFileW(new_path, in fs__create_junction()
2544 RemoveDirectoryW(new_path); in fs__create_junction()
[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
2369 if (ntfs_fuse_is_named_data_stream(new_path)) in ntfs_fuse_link()
2371 path = strdup(new_path); in ntfs_fuse_link()
2588 const char *new_path, in ntfs_fuse_safe_rename() argument
2595 ret = ntfs_fuse_link(new_path, tmp); in ntfs_fuse_safe_rename()
2599 ret = ntfs_fuse_unlink(new_path); in ntfs_fuse_safe_rename()
2602 ret = ntfs_fuse_link(old_path, new_path); in ntfs_fuse_safe_rename()
2608 if (ntfs_fuse_unlink(new_path)) in ntfs_fuse_safe_rename()
2616 if (ntfs_fuse_link(tmp, new_path)) { in ntfs_fuse_safe_rename()
2619 "to '%s'", new_path, tmp); in ntfs_fuse_safe_rename()
[all …]
/third_party/python/Lib/test/test_importlib/import_/
Dtest_path.py99 new_path = sys.path[:]
100 new_path.insert(0, None)
110 path=new_path,
/third_party/python/Lib/
Dos.py412 new_path = join(top, dirname)
417 if followlinks or not islink(new_path):
418 yield from _walk(new_path, topdown, onerror, followlinks)
421 for new_path in walk_dirs:
422 yield from _walk(new_path, topdown, onerror, followlinks)

12