/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/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/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/eudev/src/shared/ |
D | label.c | 57 int symlink_label(const char *old_path, const char *new_path) { in symlink_label() argument 61 assert(new_path); in symlink_label() 63 r = mac_selinux_create_file_prepare(new_path, S_IFLNK); in symlink_label() 67 if (symlink(old_path, new_path) < 0) in symlink_label() 75 return mac_smack_fix(new_path, false, false); in symlink_label()
|
D | label.h | 28 int symlink_label(const char *old_path, const char *new_path);
|
/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/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/curl/lib/ |
D | cookie.c | 293 char *new_path = strdup(cookie_path); in sanitize_cookie_path() local 294 if(!new_path) in sanitize_cookie_path() 298 len = strlen(new_path); in sanitize_cookie_path() 299 if(new_path[0] == '\"') { in sanitize_cookie_path() 300 memmove((void *)new_path, (const void *)(new_path + 1), len); in sanitize_cookie_path() 303 if(len && (new_path[len - 1] == '\"')) { in sanitize_cookie_path() 304 new_path[len - 1] = 0x0; in sanitize_cookie_path() 309 if(new_path[0] != '/') { in sanitize_cookie_path() 311 strstore(&new_path, "/"); in sanitize_cookie_path() 312 return new_path; in sanitize_cookie_path() [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/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/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/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/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/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); \ 1303 req->new_path, in uv__fs_copyfile() 1418 uv_fs_unlink(NULL, &fs_req, req->new_path, NULL); in uv__fs_copyfile() 1729 X(LINK, link(req->path, req->new_path)); in uv__fs_work() 1741 X(RENAME, rename(req->path, req->new_path)); in uv__fs_work() 1746 X(SYMLINK, symlink(req->path, req->new_path)); in uv__fs_work() [all …]
|
/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/node/deps/uvwasi/include/ |
D | uvwasi.h | 203 const char* new_path, 231 const char* new_path, 237 const char* new_path,
|
/third_party/libinput/tools/ |
D | shared.c | 519 char new_path[PATH_MAX]; in setup_path() local 523 snprintf(new_path, in setup_path() 524 sizeof(new_path), in setup_path() 528 setenv("PATH", new_path, 1); in setup_path()
|
/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/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/ |
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)
|
D | ntpath.py | 623 new_path = _readlink_deep(path) 624 if new_path != path: 625 return join(new_path, tail) if tail else new_path
|