Home
last modified time | relevance | path

Searched refs:path_len (Results 1 – 25 of 38) sorted by relevance

12

/third_party/node/deps/uvwasi/src/
Dpath_resolver.c18 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 …]
Dpath_resolver.h8 uvwasi_size_t path_len,
15 uvwasi_size_t path_len,
Duvwasi.c1133 uvwasi_size_t path_len) { in uvwasi_fd_prestat_dir_name() argument
1143 path_len); in uvwasi_fd_prestat_dir_name()
1157 if (size > (size_t) path_len) { in uvwasi_fd_prestat_dir_name()
1568 uvwasi_size_t path_len) { in uvwasi_path_create_directory() argument
1580 path_len); in uvwasi_path_create_directory()
1593 err = uvwasi__resolve_path(uvwasi, wrap, path, path_len, &resolved_path, 0); in uvwasi_path_create_directory()
1617 uvwasi_size_t path_len, in uvwasi_path_filestat_get() argument
1631 path_len, in uvwasi_path_filestat_get()
1648 path_len, in uvwasi_path_filestat_get()
1675 uvwasi_size_t path_len, in uvwasi_path_filestat_set_times() argument
[all …]
/third_party/ltp/lib/
Dtst_device.c58 static int set_dev_path(int dev, char *path, size_t path_len) in set_dev_path() argument
64 snprintf(path, path_len, dev_variants[i], dev); in set_dev_path()
73 int tst_find_free_loopdev(char *path, size_t path_len) in tst_find_free_loopdev() argument
87 set_dev_path(rc, path, path_len); in tst_find_free_loopdev()
130 strncpy(path, buf, path_len); in tst_find_free_loopdev()
131 path[path_len-1] = '\0'; in tst_find_free_loopdev()
459 int find_stat_file(const char *dev, char *path, size_t path_len) in find_stat_file() argument
463 snprintf(path, path_len, "/sys/block/%s/stat", devname); in find_stat_file()
472 snprintf(path, path_len, "/sys/block/%s/%s/stat", ent->d_name, devname); in find_stat_file()
/third_party/node/deps/uvwasi/include/
Duvwasi.h144 uvwasi_size_t path_len);
182 uvwasi_size_t path_len);
187 uvwasi_size_t path_len,
193 uvwasi_size_t path_len,
209 uvwasi_size_t path_len,
218 uvwasi_size_t path_len,
225 uvwasi_size_t path_len);
242 uvwasi_size_t path_len);
/third_party/node/src/
Dnode_wasi.cc722 uint32_t path_len; in FdPrestatDirName() local
728 CHECK_TO_TYPE_OR_RETURN(args, args[2], Uint32, path_len); in FdPrestatDirName()
730 Debug(wasi, "fd_prestat_dir_name(%d, %d, %d)\n", fd, path_ptr, path_len); in FdPrestatDirName()
732 CHECK_BOUNDS_OR_RETURN(args, mem_size, path_ptr, path_len); in FdPrestatDirName()
736 path_len); in FdPrestatDirName()
1026 uint32_t path_len; in PathCreateDirectory() local
1032 CHECK_TO_TYPE_OR_RETURN(args, args[2], Uint32, path_len); in PathCreateDirectory()
1034 Debug(wasi, "path_create_directory(%d, %d, %d)\n", fd, path_ptr, path_len); in PathCreateDirectory()
1036 CHECK_BOUNDS_OR_RETURN(args, mem_size, path_ptr, path_len); in PathCreateDirectory()
1040 path_len); in PathCreateDirectory()
[all …]
/third_party/libwebsockets/lib/roles/http/
Dcookie.c401 size_t domain_len, path_len, size, ret = 0; in lws_cookie_attach_cookies() local
431 path_len = strlen(path); in lws_cookie_attach_cookies()
434 dl_path = memchr(path, '?', path_len); in lws_cookie_attach_cookies()
436 path_len = lws_ptr_diff_size_t(dl_path, path); in lws_cookie_attach_cookies()
439 if (path_len != 1 && path[path_len - 1] == '/') in lws_cookie_attach_cookies()
440 path_len--; in lws_cookie_attach_cookies()
442 if (!path_len) in lws_cookie_attach_cookies()
445 lwsl_cookie("%s: path %.*s len %d\n", __func__, (int)path_len, path, (int)path_len); in lws_cookie_attach_cookies()
462 if (domain_len + path_len + 6 > sizeof(cache_name)) in lws_cookie_attach_cookies()
471 memcpy(p1, path, path_len); in lws_cookie_attach_cookies()
[all …]
/third_party/skia/third_party/externals/harfbuzz/test/fuzzing/
Dhb-draw-fuzzer.cc12 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/harfbuzz/test/fuzzing/
Dhb-draw-fuzzer.cc12 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/alsa-lib/src/
Ddlmisc.c66 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/
Dgraphcycles_test.cc285 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()
Dgraphcycles.cc635 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/
Dfilesystem_utils.cc371 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/libuv/src/win/
Dprocess.c1021 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/
DTextAdapter.cpp108 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/
Dpathconfig.c286 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/
Dh1url.c28 ssp_h1url_munge(struct lws_ss_handle *ss, char *path, size_t path_len) in ssp_h1url_munge() argument
/third_party/ltp/include/
Dtst_device.h51 int tst_find_free_loopdev(const char *path, size_t path_len);
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/
Dwps_upnp.c329 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/wpa_supplicant/wpa_supplicant-2.9/src/wps/
Dwps_upnp.c321 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/gn/src/base/files/
Dfile_util_win.cc276 DWORD path_len = ::GetTempPath(MAX_PATH, ToWCharT(temp_path)); in GetTempDir() local
277 if (path_len >= MAX_PATH || path_len <= 0) in GetTempDir()
/third_party/libinput/tools/
Dshared.h126 bool find_touchpad_device(char *path, size_t path_len);
/third_party/alsa-lib/include/
Dglobal.h100 int snd_dlpath(char *path, size_t path_len, const char *name);
/third_party/mesa3d/src/compiler/nir/
Dnir_opt_load_store_vectorize.c396 unsigned path_len = 0; in create_entry_key_from_deref() local
397 while (path->path[path_len]) in create_entry_key_from_deref()
398 path_len++; in create_entry_key_from_deref()
404 if (path_len > 32) { in create_entry_key_from_deref()
405 offset_defs = malloc(path_len * sizeof(nir_ssa_scalar)); in create_entry_key_from_deref()
406 offset_defs_mul = malloc(path_len * sizeof(uint64_t)); in create_entry_key_from_deref()
415 for (unsigned i = 0; i < path_len; i++) { in create_entry_key_from_deref()
/third_party/libwebsockets/include/libwebsockets/
Dlws-secure-streams-policy.h72 size_t path_len);

12