/third_party/glib/gio/ |
D | gunixsocketaddress.c | 78 gsize path_len; /* Not including any terminating zeros */ member 109 address->priv->path_len = strlen (address->priv->path); in G_DEFINE_TYPE_WITH_CODE() 125 address->priv->path_len = len; in G_DEFINE_TYPE_WITH_CODE() 162 array = g_byte_array_sized_new (address->priv->path_len); in g_unix_socket_address_get_property() 163 g_byte_array_append (array, (guint8 *)address->priv->path, address->priv->path_len); in g_unix_socket_address_get_property() 200 return G_STRUCT_OFFSET(struct sockaddr_un, sun_path) + addr->priv->path_len + 1; in g_unix_socket_address_get_native_size() 248 memcpy (sock->sun_path+1, addr->priv->path, addr->priv->path_len); in g_unix_socket_address_to_native() 329 gsize path_len, i; in g_unix_socket_address_connectable_to_string() local 338 path_len = g_unix_socket_address_get_path_len (ua); in g_unix_socket_address_connectable_to_string() 339 out = g_string_sized_new (path_len); in g_unix_socket_address_connectable_to_string() [all …]
|
D | gresource.c | 330 gint path_len = -1; in g_resource_find_overlay() local 444 if (path_len == -1) in g_resource_find_overlay() 445 path_len = strlen (path); in g_resource_find_overlay() 448 if (path_len < src_len) in g_resource_find_overlay() 466 candidate = g_malloc (dst_len + (path_len - src_len) + 1); in g_resource_find_overlay() 468 memcpy (candidate + dst_len, path + src_len, path_len - src_len); in g_resource_find_overlay() 469 candidate[dst_len + (path_len - src_len)] = '\0'; in g_resource_find_overlay() 664 gsize path_len; in do_lookup() local 669 path_len = strlen (path); in do_lookup() 670 if (path_len >= 1 && path[path_len-1] == '/') in do_lookup() [all …]
|
D | gsocketaddress.c | 272 gint path_len = len - G_STRUCT_OFFSET (struct sockaddr_un, sun_path); in g_socket_address_new_from_native() local 274 if (path_len == 0) in g_socket_address_new_from_native() 289 path_len - 1, in g_socket_address_new_from_native() 295 path_len - 1, in g_socket_address_new_from_native()
|
D | gunixsocketaddress.h | 62 gint path_len); 65 gint path_len,
|
/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 | 1133 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/libsoup/libsoup/ |
D | soup-path-map.c | 87 int path_len; in mapping_lookup() local 92 path_len = strcspn (path, "?"); in mapping_lookup() 94 if (mappings[i].len > path_len) in mapping_lookup() 97 if (insert && mappings[i].len < path_len) { in mapping_lookup() 105 if (path_len == mappings[i].len) in mapping_lookup()
|
/third_party/ltp/lib/ |
D | tst_device.c | 58 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/ |
D | uvwasi.h | 144 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/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/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/libwebsockets/lib/roles/http/ |
D | cookie.c | 401 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/node/src/ |
D | node_wasi.cc | 722 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/curl/lib/ |
D | curl_addrinfo.c | 475 size_t path_len; in Curl_unix2addr() local 488 path_len = strlen(path) + 1; in Curl_unix2addr() 489 if(path_len > sizeof(sa_un->sun_path)) { in Curl_unix2addr() 498 ((offsetof(struct sockaddr_un, sun_path) + path_len) & 0x7FFFFFFF); in Curl_unix2addr() 502 memcpy(sa_un->sun_path + 1, path, path_len - 1); in Curl_unix2addr() 504 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/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/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/grpc/src/core/lib/security/security_connector/ |
D | load_system_roots_linux.cc | 82 int path_len = snprintf(path_buffer, MAXPATHLEN, "%s/%s", valid_file_dir, in GetAbsoluteFilePath() local 84 if (path_len == 0) { in GetAbsoluteFilePath()
|
/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/e2fsprogs/misc/ |
D | create_inode.c | 723 size_t path_len; member 729 if (strlen(file) + target->path_len + 1 > target->path_max_len) { in path_append() 737 target->path_len += sprintf(target->path + target->path_len, "/%s", in path_append() 872 cur_dir_path_len = target->path_len; in __populate_fs() 1038 target->path_len = cur_dir_path_len; in __populate_fs() 1039 target->path[target->path_len] = 0; in __populate_fs() 1070 file_info.path_len = 0; in populate_fs2()
|
/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/grpc/src/core/ext/filters/client_channel/ |
D | parse_address.cc | 55 const size_t path_len = strnlen(uri->path, maxlen); in grpc_parse_unix() local 56 if (path_len == maxlen) return false; in grpc_parse_unix()
|