/third_party/node/deps/uvwasi/src/ |
D | path_resolver.c | 18 static int uvwasi__is_absolute_path(const char* path, uvwasi_size_t path_len) { in uvwasi__is_absolute_path() argument 20 return path != NULL && path_len > 0 && path[0] == '/'; in uvwasi__is_absolute_path() 36 uvwasi_size_t path_len, in uvwasi__normalize_path() argument 46 if (path_len > normalized_len) in uvwasi__normalize_path() 49 is_absolute = uvwasi__is_absolute_path(path, path_len); in uvwasi__normalize_path() 128 uvwasi_size_t path_len, in uvwasi__is_path_sandboxed() argument 140 if ((path_len == 2 && path[0] == '.' && path[1] == '.') || in uvwasi__is_path_sandboxed() 141 (path_len > 2 && path[0] == '.' && path[1] == '.' && path[2] == '/')) { in uvwasi__is_path_sandboxed() 153 remaining_len = path_len - fd_path_len; in uvwasi__is_path_sandboxed() 176 uvwasi_size_t path_len, in uvwasi__normalize_absolute_path() argument [all …]
|
D | path_resolver.h | 8 uvwasi_size_t path_len, 15 uvwasi_size_t path_len,
|
D | uvwasi.c | 1203 uvwasi_size_t path_len) { in uvwasi_fd_prestat_dir_name() argument 1213 path_len); in uvwasi_fd_prestat_dir_name() 1227 if (size > (size_t) path_len) { in uvwasi_fd_prestat_dir_name() 1644 uvwasi_size_t path_len) { in uvwasi_path_create_directory() argument 1656 path_len); in uvwasi_path_create_directory() 1669 err = uvwasi__resolve_path(uvwasi, wrap, path, path_len, &resolved_path, 0); in uvwasi_path_create_directory() 1693 uvwasi_size_t path_len, in uvwasi_path_filestat_get() argument 1707 path_len, in uvwasi_path_filestat_get() 1724 path_len, in uvwasi_path_filestat_get() 1751 uvwasi_size_t path_len, in uvwasi_path_filestat_set_times() argument [all …]
|
/third_party/ffmpeg/compat/ |
D | w32dlfcn.h | 34 DWORD path_size = 0, path_len; in get_module_filename() local 47 path_len = GetModuleFileNameW(module, path, path_size); in get_module_filename() 48 } while (path_len && path_size <= INT16_MAX && path_size <= path_len); in get_module_filename() 50 if (!path_len) { in get_module_filename()
|
/third_party/ltp/lib/ |
D | tst_device.c | 51 static int set_dev_loop_path(int dev, char *path, size_t path_len) in set_dev_loop_path() argument 57 snprintf(path, path_len, dev_loop_variants[i], dev); in set_dev_loop_path() 66 static int set_dev_path(char *dev, char *path, size_t path_len) in set_dev_path() argument 72 snprintf(path, path_len, dev_variants[i], dev); in set_dev_path() 81 int tst_find_free_loopdev(char *path, size_t path_len) in tst_find_free_loopdev() argument 94 if (path && set_dev_loop_path(rc, path, path_len)) in tst_find_free_loopdev() 138 strncpy(path, buf, path_len); in tst_find_free_loopdev() 139 path[path_len-1] = '\0'; in tst_find_free_loopdev() 468 static int find_stat_file(const char *dev, char *path, size_t path_len) in find_stat_file() argument 472 snprintf(path, path_len, "/sys/block/%s/stat", devname); in find_stat_file() [all …]
|
/third_party/node/deps/uvwasi/include/ |
D | uvwasi.h | 153 uvwasi_size_t path_len); 191 uvwasi_size_t path_len); 196 uvwasi_size_t path_len, 202 uvwasi_size_t path_len, 218 uvwasi_size_t path_len, 227 uvwasi_size_t path_len, 234 uvwasi_size_t path_len); 251 uvwasi_size_t path_len);
|
/third_party/node/src/permission/ |
D | fs_permission.cc | 179 auto path_len = path.length(); in Lookup() local 182 if (parent_node_prefix_len == path_len && current_node->IsEndNode()) { in Lookup() 194 path_len >= (parent_node_prefix_len - 2 /* slash* */)) { in Lookup() 204 int path_len = path.length(); in Insert() local 206 for (int i = 1; i <= path_len; ++i) { in Insert() 208 bool is_last_char = i == path_len; in Insert()
|
/third_party/node/src/ |
D | node_wasi.cc | 717 uint32_t path_len; in FdPrestatDirName() local 723 CHECK_TO_TYPE_OR_RETURN(args, args[2], Uint32, path_len); in FdPrestatDirName() 725 Debug(wasi, "fd_prestat_dir_name(%d, %d, %d)\n", fd, path_ptr, path_len); in FdPrestatDirName() 727 CHECK_BOUNDS_OR_RETURN(args, mem_size, path_ptr, path_len); in FdPrestatDirName() 731 path_len); in FdPrestatDirName() 1021 uint32_t path_len; in PathCreateDirectory() local 1027 CHECK_TO_TYPE_OR_RETURN(args, args[2], Uint32, path_len); in PathCreateDirectory() 1029 Debug(wasi, "path_create_directory(%d, %d, %d)\n", fd, path_ptr, path_len); in PathCreateDirectory() 1031 CHECK_BOUNDS_OR_RETURN(args, mem_size, path_ptr, path_len); in PathCreateDirectory() 1035 path_len); in PathCreateDirectory() [all …]
|
/third_party/libwebsockets/lib/roles/http/ |
D | cookie.c | 407 size_t domain_len, path_len, size, ret = 0; in lws_cookie_attach_cookies() local 437 path_len = strlen(path); in lws_cookie_attach_cookies() 440 dl_path = memchr(path, '?', path_len); in lws_cookie_attach_cookies() 442 path_len = lws_ptr_diff_size_t(dl_path, path); in lws_cookie_attach_cookies() 445 if (path_len != 1 && path[path_len - 1] == '/') in lws_cookie_attach_cookies() 446 path_len--; in lws_cookie_attach_cookies() 448 if (!path_len) in lws_cookie_attach_cookies() 451 lwsl_cookie("%s: path %.*s len %d\n", __func__, (int)path_len, path, (int)path_len); in lws_cookie_attach_cookies() 468 if (domain_len + path_len + 6 > sizeof(cache_name)) in lws_cookie_attach_cookies() 477 memcpy(p1, path, path_len); in lws_cookie_attach_cookies() [all …]
|
/third_party/skia/third_party/externals/harfbuzz/test/fuzzing/ |
D | hb-draw-fuzzer.cc | 12 unsigned path_len; member 35 ++user_data->path_len; in _line_to() 48 ++user_data->path_len; in _quadratic_to() 63 ++user_data->path_len; in _cubic_to() 72 assert (user_data->is_open && user_data->path_len != 0); in _close_path() 73 user_data->path_len = 0; in _close_path()
|
/third_party/curl/lib/ |
D | http1.c | 140 size_t m_len, target_len, hv_len, scheme_len, authority_len, path_len; in start_req() local 187 scheme_len = authority_len = path_len = 0; in start_req() 192 path_len = target_len; in start_req() 202 path_len = target_len; in start_req() 211 path_len = target_len; in start_req() 253 authority, authority_len, path, path_len); in start_req()
|
D | curl_addrinfo.c | 472 size_t path_len; in Curl_unix2addr() local 485 path_len = strlen(path) + 1; in Curl_unix2addr() 486 if(path_len > sizeof(sa_un->sun_path)) { in Curl_unix2addr() 495 ((offsetof(struct sockaddr_un, sun_path) + path_len) & 0x7FFFFFFF); in Curl_unix2addr() 499 memcpy(sa_un->sun_path + 1, path, path_len - 1); in Curl_unix2addr() 501 memcpy(sa_un->sun_path, path, path_len); /* copy NUL byte */ in Curl_unix2addr()
|
/third_party/alsa-lib/src/ |
D | dlmisc.c | 66 static void snd_dlinfo_origin(char *path, size_t path_len) in snd_dlinfo_origin() argument 76 snprintf(path, path_len, "%s/alsa-lib", origin); in snd_dlinfo_origin() 90 int snd_dlpath(char *path, size_t path_len, const char *name) in snd_dlpath() argument 98 snd_dlinfo_origin(path, path_len); in snd_dlpath() 102 snprintf(path, path_len, "%s/%s", in snd_dlpath()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/internal/ |
D | graphcycles_test.cc | 285 int path_len = graph_cycles.FindPath(id[nodes[from]], id[nodes[to]], in TEST() local 291 ASSERT_EQ(path_len != 0, reachable); in TEST() 292 ASSERT_EQ(path_len != 0, gc_reachable); in TEST() 296 ASSERT_LE(path_len, kMaxNodes + 1); in TEST() 297 if (path_len != 0) { in TEST() 299 ASSERT_EQ(id[nodes[to]], path[path_len-1]); in TEST() 300 for (int i = 1; i < path_len; i++) { in TEST()
|
D | graphcycles.cc | 635 int path_len = 0; in FindPath() local 645 path_len--; in FindPath() 649 if (path_len < max_path_len) { in FindPath() 650 path[path_len] = MakeId(n, rep_->nodes_[n]->version); in FindPath() 652 path_len++; in FindPath() 656 return path_len; in FindPath()
|
/third_party/gn/src/gn/ |
D | filesystem_utils.cc | 371 size_t path_len = AbsPathLenWithNoTrailingSlash(path); in MakeAbsolutePathRelativeIfPossible() local 374 if (source_root_len > path_len) in MakeAbsolutePathRelativeIfPossible() 389 if (path_len == source_root_len) { in MakeAbsolutePathRelativeIfPossible() 396 } else if (path[0] == '/' && source_root_len <= path_len - 1 && in MakeAbsolutePathRelativeIfPossible() 402 if (path_len + 1 == source_root_len) { in MakeAbsolutePathRelativeIfPossible() 423 while (first_after_slash < path_len && IsSlash(path[first_after_slash])) in MakeAbsolutePathRelativeIfPossible() 437 if (path_len == source_root_len) { in MakeAbsolutePathRelativeIfPossible() 448 while (first_after_slash < path_len && IsSlash(path[first_after_slash])) in MakeAbsolutePathRelativeIfPossible()
|
/third_party/node/deps/uv/src/win/ |
D | process.c | 1021 DWORD path_len, r; in uv_spawn() local 1023 path_len = GetEnvironmentVariableW(L"PATH", NULL, 0); in uv_spawn() 1024 if (path_len == 0) { in uv_spawn() 1029 alloc_path = (WCHAR*) uv__malloc(path_len * sizeof(WCHAR)); in uv_spawn() 1036 r = GetEnvironmentVariableW(L"PATH", path, path_len); in uv_spawn() 1037 if (r == 0 || r >= path_len) { in uv_spawn()
|
/third_party/libuv/src/win/ |
D | process.c | 1021 DWORD path_len, r; in uv_spawn() local 1023 path_len = GetEnvironmentVariableW(L"PATH", NULL, 0); in uv_spawn() 1024 if (path_len == 0) { in uv_spawn() 1029 alloc_path = (WCHAR*) uv__malloc(path_len * sizeof(WCHAR)); in uv_spawn() 1036 r = GetEnvironmentVariableW(L"PATH", path, path_len); in uv_spawn() 1037 if (r == 0 || r >= path_len) { in uv_spawn()
|
/third_party/skia/modules/skottie/src/text/ |
D | TextAdapter.cpp | 108 const auto path_len = fCurrentMeasure->length(); in getMatrix() local 120 distance = std::fmod(distance, path_len); in getMatrix() 122 distance += path_len; in getMatrix() 124 SkASSERT(0 <= distance && distance <= path_len); in getMatrix() 138 overflow = std::max(0.0f, distance - path_len); in getMatrix()
|
/third_party/python/Python/ |
D | pathconfig.c | 286 size_t path_len = (p - sys_path); in config_init_module_search_paths() local 287 wchar_t *path = PyMem_RawMalloc((path_len + 1) * sizeof(wchar_t)); in config_init_module_search_paths() 291 memcpy(path, sys_path, path_len * sizeof(wchar_t)); in config_init_module_search_paths() 292 path[path_len] = L'\0'; in config_init_module_search_paths()
|
/third_party/libwebsockets/lib/secure-streams/plugins/ssp-h1url/ |
D | h1url.c | 28 ssp_h1url_munge(struct lws_ss_handle *ss, char *path, size_t path_len) in ssp_h1url_munge() argument
|
/third_party/ltp/include/ |
D | tst_device.h | 52 int tst_find_free_loopdev(char *path, size_t path_len);
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/ |
D | wps_upnp.c | 321 size_t host_len, path_len; in subscr_addr_add_url() local 379 path_len = path ? os_strlen(path) : 0; in subscr_addr_add_url() 380 alloc_len = host_len + 1 + 1 + path_len + 1; in subscr_addr_add_url() 403 os_memcpy(mem, path, path_len); in subscr_addr_add_url()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/ |
D | wps_upnp.c | 329 size_t host_len, path_len; in subscr_addr_add_url() local 392 path_len = path ? os_strlen(path) : 0; in subscr_addr_add_url() 393 alloc_len = host_len + 1 + 1 + path_len + 1; in subscr_addr_add_url() 424 os_memcpy(mem, path, path_len); in subscr_addr_add_url()
|
/third_party/gn/src/base/files/ |
D | file_util_win.cc | 276 DWORD path_len = ::GetTempPath(MAX_PATH, ToWCharT(temp_path)); in GetTempDir() local 277 if (path_len >= MAX_PATH || path_len <= 0) in GetTempDir()
|