Home
last modified time | relevance | path

Searched refs:new_path (Results 1 - 25 of 53) sorted by relevance

123

/third_party/ffmpeg/compat/
H A Dw32dlfcn.h33 wchar_t *path = NULL, *new_path; in get_module_filename() local
38 new_path = av_realloc_array(path, path_size, sizeof *path); in get_module_filename()
39 if (!new_path) { in get_module_filename()
43 path = new_path; in get_module_filename()
73 wchar_t *path = NULL, *new_path; in win32_dlopen() local
82 new_path = wcsrchr(path, '\\'); in win32_dlopen()
83 if (!new_path) in win32_dlopen()
85 pathlen = new_path - path; in win32_dlopen()
87 new_path = av_realloc_array(path, pathsize, sizeof *path); in win32_dlopen()
88 if (!new_path) in win32_dlopen()
[all...]
/third_party/gn/misc/vim/autoload/
H A 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
[all...]
/third_party/gn/src/base/files/
H A Dfile_path.cc301 FilePath new_path(path_); in DirName()
302 new_path.StripTrailingSeparatorsInternal(); in DirName()
308 StringType::size_type letter = FindDriveLetter(new_path.path_); in DirName()
310 StringType::size_type last_separator = new_path.path_.find_last_of( in DirName()
314 new_path.path_.resize(letter + 1); in DirName()
317 new_path.path_.resize(letter + 2); in DirName()
319 IsSeparator(new_path.path_[letter + 1])) { in DirName()
322 new_path.path_.resize(letter + 3); in DirName()
325 new_path.path_.resize(last_separator); in DirName()
328 new_path in DirName()
[all...]
H A 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/ltp/testcases/kernel/fs/mongo/
H A 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/eudev/src/shared/
H A Dlabel.c57 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()
/third_party/ltp/testcases/kernel/fs/iso9660/
H A Disofs.sh35 local i new_path
40 new_path="$cur_path/subdir_$i"
41 mkdir -p "$new_path"
42 ROD_SILENT dd if=/dev/urandom of="$new_path/file" bs=1024 count=100
43 gen_fs_tree "$new_path" $((cur_depth + 1))
/third_party/vulkan-loader/tests/framework/
H A Dtest_util.cpp273 path new_path = contents; in operator +() local
274 new_path += in; in operator +()
275 return new_path; in operator +()
278 path new_path = contents; in operator +() local
279 new_path += in; in operator +()
280 return new_path; in operator +()
283 path new_path(contents); in operator +()
284 new_path += in; in operator +()
285 return new_path; in operator +()
289 path new_path in operator /() local
294 path new_path = contents; operator /() local
[all...]
/third_party/spirv-tools/tools/objdump/
H A Dobjdump.cpp81 std::filesystem::path new_path = outdir / old_path.filename(); in OutputSourceFiles() local
83 if (!overwrite && std::filesystem::exists(new_path)) { in OutputSourceFiles()
90 std::cout << "Exporting " << new_path << std::endl; in OutputSourceFiles()
91 if (!WriteFile<char>(new_path.string().c_str(), "w", code.c_str(), in OutputSourceFiles()
/third_party/cJSON/
H A DcJSON_Utils.c1192 unsigned char *new_path = (unsigned char*)cJSON_malloc(strlen((const char*)path) + 20 + sizeof("/")); /* Allow space for 64bit int. log10(2^64) = 20 */ in create_patches() local
1202 cJSON_free(new_path); in create_patches()
1205 sprintf((char*)new_path, "%s/%lu", path, (unsigned long)index); /* path of the current array element */ in create_patches()
1206 create_patches(patches, new_path, from_child, to_child, case_sensitive); in create_patches()
1217 cJSON_free(new_path); in create_patches()
1220 sprintf((char*)new_path, "%lu", (unsigned long)index); in create_patches()
1221 compose_patch(patches, (const unsigned char*)"remove", path, new_path, NULL); in create_patches()
1228 cJSON_free(new_path); in create_patches()
1263 unsigned char *new_path = (unsigned char*)cJSON_malloc(path_length + from_child_name_length + sizeof("/")); in create_patches() local
1265 sprintf((char*)new_path, " in create_patches()
[all...]
/third_party/python/Lib/zoneinfo/
H A 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/vulkan-loader/tests/framework/shim/
H A Dshim_common.cpp186 void PlatformShim::redirect_path(fs::path const& path, fs::path const& new_path) { redirection_map[path.str()] = new_path; } argument
201 void PlatformShim::redirect_category(fs::path const& new_path, ManifestCategory category) { argument
205 redirect_path(home / ".local/share/vulkan" / category_path_name(category), new_path);
240 redirect_path(fs::path(path) / "vulkan" / category_path_name(category), new_path); local
/third_party/curl/lib/
H A Dcookie.c297 char *new_path = strdup(cookie_path); in sanitize_cookie_path() local
298 if(!new_path) in sanitize_cookie_path()
302 len = strlen(new_path); in sanitize_cookie_path()
303 if(new_path[0] == '\"') { in sanitize_cookie_path()
304 memmove(new_path, new_path + 1, len); in sanitize_cookie_path()
307 if(len && (new_path[len - 1] == '\"')) { in sanitize_cookie_path()
308 new_path[--len] = 0x0; in sanitize_cookie_path()
312 if(new_path[0] != '/') { in sanitize_cookie_path()
314 strstore(&new_path, "/", in sanitize_cookie_path()
[all...]
/third_party/ltp/testcases/kernel/controllers/cgroup_fj/
H A Dcgroup_fj_stress.sh87 local new_path="$cur_path/$i"
88 attach_task "$new_path" $((cur_depth+1)) "$ppid"
/third_party/PyYAML/lib/yaml/
H A Dresolver.py40 # `new_path` is a pattern that is matched against the path from the
53 new_path = []
79 new_path.append((node_check, index_check))
89 cls.yaml_path_resolvers[tuple(new_path), kind] = tag
/third_party/python/Lib/test/
H A Dtest_modulefinder.py395 new_path = os.path.join(self.test_dir, 'a', 'spam.py')
398 replace_paths=[(old_path, new_path)])
400 expected = "co_filename %r changed to %r" % (old_path, new_path)
/third_party/rust/crates/which-rs/src/
H A Dfinder.rs41 let mut new_path = PathBuf::from(cwd.as_ref()); in to_absolute() variables
42 new_path.push(self); in to_absolute()
43 new_path in to_absolute()
/third_party/libuv/src/unix/
H A Dfs.c110 req->new_path = NULL; \
133 req->new_path = new_path; \
138 new_path_len = strlen(new_path) + 1; \
142 req->new_path = req->path + path_len; \
144 memcpy((void*) req->new_path, new_path, new_path_len); \
1181 req->new_path, in uv__fs_copyfile()
1308 uv_fs_unlink(NULL, &fs_req, req->new_path, NULL); in uv__fs_copyfile()
1600 X(LINK, link(req->path, req->new_path)); in uv__fs_work()
1834 uv_fs_link(uv_loop_t* loop, uv_fs_t* req, const char* path, const char* new_path, uv_fs_cb cb) uv_fs_link() argument
2006 uv_fs_rename(uv_loop_t* loop, uv_fs_t* req, const char* path, const char* new_path, uv_fs_cb cb) uv_fs_rename() argument
2053 uv_fs_symlink(uv_loop_t* loop, uv_fs_t* req, const char* path, const char* new_path, int flags, uv_fs_cb cb) uv_fs_symlink() argument
2160 uv_fs_copyfile(uv_loop_t* loop, uv_fs_t* req, const char* path, const char* new_path, int flags, uv_fs_cb cb) uv_fs_copyfile() argument
[all...]
/third_party/node/deps/uv/src/unix/
H A 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); \
1304 req->new_path, in uv__fs_copyfile()
1419 uv_fs_unlink(NULL, &fs_req, req->new_path, NULL); in uv__fs_copyfile()
1730 X(LINK, link(req->path, req->new_path)); in uv__fs_work()
1936 uv_fs_link(uv_loop_t* loop, uv_fs_t* req, const char* path, const char* new_path, uv_fs_cb cb) uv_fs_link() argument
2091 uv_fs_rename(uv_loop_t* loop, uv_fs_t* req, const char* path, const char* new_path, uv_fs_cb cb) uv_fs_rename() argument
2132 uv_fs_symlink(uv_loop_t* loop, uv_fs_t* req, const char* path, const char* new_path, int flags, uv_fs_cb cb) uv_fs_symlink() argument
2228 uv_fs_copyfile(uv_loop_t* loop, uv_fs_t* req, const char* path, const char* new_path, int flags, uv_fs_cb cb) uv_fs_copyfile() argument
[all...]
/third_party/node/deps/uvwasi/include/
H A Duvwasi.h212 const char* new_path,
240 const char* new_path,
246 const char* new_path,
/third_party/libwebsockets/lib/roles/http/client/
H A 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/ntfs-3g/src/
H A Dntfs-3g.c2356 static int ntfs_fuse_link(const char *old_path, const char *new_path) in ntfs_fuse_link() argument
2370 if (ntfs_fuse_is_named_data_stream(new_path)) in ntfs_fuse_link()
2372 path = strdup(new_path); in ntfs_fuse_link()
2589 const char *new_path, in ntfs_fuse_safe_rename()
2596 ret = ntfs_fuse_link(new_path, tmp); in ntfs_fuse_safe_rename()
2600 ret = ntfs_fuse_unlink(new_path); in ntfs_fuse_safe_rename()
2603 ret = ntfs_fuse_link(old_path, new_path); in ntfs_fuse_safe_rename()
2609 if (ntfs_fuse_unlink(new_path)) in ntfs_fuse_safe_rename()
2617 if (ntfs_fuse_link(tmp, new_path)) { in ntfs_fuse_safe_rename()
2620 "to '%s'", new_path, tm in ntfs_fuse_safe_rename()
2588 ntfs_fuse_safe_rename(const char *old_path, const char *new_path, const char *tmp) ntfs_fuse_safe_rename() argument
2636 ntfs_fuse_rename_existing_dest(const char *old_path, const char *new_path) ntfs_fuse_rename_existing_dest() argument
2680 ntfs_fuse_rename(const char *old_path, const char *new_path) ntfs_fuse_rename() argument
[all...]
/third_party/rust/crates/nix/test/
H A Dtest_fcntl.rs148 let new_path = new_dir.path().join("new"); in test_renameat2_exchange()
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()
194 File::create(new_path).unwrap(); in test_renameat2_noreplace()
/third_party/node/deps/v8/src/base/debug/
H A Dstack_trace_win.cc88 std::wstring new_path( in InitializeSymbols()
91 if (!SymSetSearchPathW(GetCurrentProcess(), new_path.c_str())) { in InitializeSymbols()
/third_party/mesa3d/src/util/
H A Ddisk_cache_os.c153 char *new_path; in concatenate_and_mkdir() local
159 new_path = ralloc_asprintf(ctx, "%s/%s", path, name); in concatenate_and_mkdir()
161 if (mkdir_if_needed(new_path) == 0) in concatenate_and_mkdir()
162 return new_path; in concatenate_and_mkdir()

Completed in 27 milliseconds

123