/third_party/gn/src/base/files/ |
D | file_path.cc | 300 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 …]
|
D | file_util.cc | 232 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/ |
D | gn.vim | 7 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/ |
D | mongo_slinks.c | 23 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/ |
D | at.rs | 134 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/ |
D | isofs.sh | 37 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/ |
D | update_file.py | 13 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/ |
D | test_util.cpp | 281 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/ |
D | shim_common.cpp | 146 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/ |
D | cJSON_Utils.c | 1175 …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/ |
D | getpath.c | 292 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.py | 89 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/ |
D | test_modulefinder.py | 394 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/ |
D | cgroup_fj_stress.sh | 121 local new_path="$cur_path/$i" 122 attach_task "$new_path" $((cur_depth+1)) "$ppid"
|
/third_party/libuv/src/unix/ |
D | fs.c | 111 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/ |
D | resolver.py | 53 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/ |
D | finder.rs | 41 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/ |
D | client-http.c | 599 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/ |
D | test_relocations.toml | 259 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/ |
D | test_fcntl.rs | 148 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/ |
D | uvwasi.h | 203 const char* new_path, 231 const char* new_path, 237 const char* new_path,
|
/third_party/libuv/src/win/ |
D | fs.c | 146 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/ |
D | ntfs-3g.c | 2355 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_/ |
D | test_path.py | 99 new_path = sys.path[:] 100 new_path.insert(0, None) 110 path=new_path,
|
/third_party/python/Lib/ |
D | os.py | 412 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)
|