Home
last modified time | relevance | path

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

123

/external/dtc/libfdt/
Dfdt_overlay.c63 int path_len = 0, ret; in overlay_get_target() local
73 path = fdt_getprop(fdto, fragment, "target-path", &path_len); in overlay_get_target()
77 ret = path_len; in overlay_get_target()
88 if (ret < 0 && path_len == -FDT_ERR_NOTFOUND) in overlay_get_target()
369 const char *path, uint32_t path_len, in overlay_fixup_one_phandle() argument
395 fixup_off = fdt_path_offset_namelen(fdto, path, path_len); in overlay_fixup_one_phandle()
446 uint32_t path_len, name_len; in overlay_fixup_phandle() local
464 path_len = sep - path; in overlay_fixup_phandle()
465 if (path_len == (fixup_len - 1)) in overlay_fixup_phandle()
468 fixup_len -= path_len + 1; in overlay_fixup_phandle()
[all …]
/external/strace/tests-mx32/
Dinode_of_sockfd.c49 const ssize_t path_len = readlink(linkpath, path, sizeof(path) - 1); in inode_of_sockfd() local
50 if (path_len < 0) in inode_of_sockfd()
52 path[path_len] = '\0'; in inode_of_sockfd()
57 && path[path_len - 1] == ']'); in inode_of_sockfd()
/external/strace/tests/
Dinode_of_sockfd.c49 const ssize_t path_len = readlink(linkpath, path, sizeof(path) - 1); in inode_of_sockfd() local
50 if (path_len < 0) in inode_of_sockfd()
52 path[path_len] = '\0'; in inode_of_sockfd()
57 && path[path_len - 1] == ']'); in inode_of_sockfd()
/external/strace/tests-m32/
Dinode_of_sockfd.c49 const ssize_t path_len = readlink(linkpath, path, sizeof(path) - 1); in inode_of_sockfd() local
50 if (path_len < 0) in inode_of_sockfd()
52 path[path_len] = '\0'; in inode_of_sockfd()
57 && path[path_len - 1] == ']'); in inode_of_sockfd()
/external/ltp/lib/
Dtst_device.c57 static int set_dev_path(int dev, char *path, size_t path_len) in set_dev_path() argument
63 snprintf(path, path_len, dev_variants[i], dev); in set_dev_path()
72 int tst_find_free_loopdev(char *path, size_t path_len) in tst_find_free_loopdev() argument
86 set_dev_path(rc, path, path_len); in tst_find_free_loopdev()
129 strncpy(path, buf, path_len); in tst_find_free_loopdev()
130 path[path_len-1] = '\0'; in tst_find_free_loopdev()
389 int find_stat_file(const char *dev, char *path, size_t path_len) in find_stat_file() argument
393 snprintf(path, path_len, "/sys/block/%s/stat", devname); in find_stat_file()
402 snprintf(path, path_len, "/sys/block/%s/%s/stat", ent->d_name, devname); in find_stat_file()
/external/strace/
Dsocketutils.c295 size_t path_len = 0; in unix_parse_response() local
310 if (!path_len) { in unix_parse_response()
311 path_len = RTA_PAYLOAD(attr); in unix_parse_response()
312 if (path_len > UNIX_PATH_MAX) in unix_parse_response()
313 path_len = UNIX_PATH_MAX; in unix_parse_response()
314 memcpy(path, RTA_DATA(attr), path_len); in unix_parse_response()
315 path[path_len] = '\0'; in unix_parse_response()
329 if (!peer && !path_len) in unix_parse_response()
339 if (path_len) { in unix_parse_response()
340 char *outstr = alloca(4 * path_len + 4); in unix_parse_response()
[all …]
/external/rootdev/
Drootdev.c143 size_t path_len = 0; in match_sysfs_device() local
161 path_len = snprintf(working_path, working_path_size, "%s/%s/dev", in match_sysfs_device()
164 if (path_len != candidate_len + basedir_len + 5) in match_sysfs_device()
347 int path_len; in rootdev_get_path() local
355 path_len = snprintf(path, size, "%s/%s", dev_path, device); in rootdev_get_path()
356 if (path_len != strlen(dev_path) + 1 + strlen(device)) in rootdev_get_path()
/external/libchrome/base/
Dos_compat_android.cc122 const int path_len = strlen(path); in mkdtemp() local
127 if (!base::StringPiece(path, path_len).ends_with(kSuffix)) { in mkdtemp()
162 path[path_len - kSuffixLen + pos] = rand_char; in mkdtemp()
/external/curl/lib/
Dcurl_addrinfo.c475 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()
/external/drm_hwcomposer/drm/
DResourceManager.cpp38 int path_len = property_get("vendor.hwc.drm.device", path_pattern, in Init() local
41 if (path_pattern[path_len - 1] != '%') { in Init()
44 path_pattern[path_len - 1] = '\0'; in Init()
/external/openscreen/third_party/abseil/src/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()
/external/libtextclassifier/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()
/external/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.cc634 int path_len = 0; in FindPath() local
644 path_len--; in FindPath()
648 if (path_len < max_path_len) { in FindPath()
649 path[path_len] = MakeId(n, rep_->nodes_[n]->version); in FindPath()
651 path_len++; in FindPath()
655 return path_len; in FindPath()
/external/webrtc/third_party/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.cc634 int path_len = 0; in FindPath() local
644 path_len--; in FindPath()
648 if (path_len < max_path_len) { in FindPath()
649 path[path_len] = MakeId(n, rep_->nodes_[n]->version); in FindPath()
651 path_len++; in FindPath()
655 return path_len; in FindPath()
/external/rust/crates/grpcio-sys/grpc/third_party/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()
/external/angle/third_party/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()
/external/tensorflow/tensorflow/compiler/xla/service/graphcycles/
Dgraphcycles_test.cc304 int path_len = graph_cycles.FindPath(nodes[from], nodes[to], in TEST() local
311 ASSERT_EQ(path_len != 0, reachable); in TEST()
312 ASSERT_EQ(path_len != 0, gc_reachable); in TEST()
316 ASSERT_LE(path_len, kMaxNodes + 1); in TEST()
317 if (path_len != 0) { in TEST()
319 ASSERT_EQ(nodes[to], path[path_len - 1]); in TEST()
320 for (int i = 1; i < path_len; i++) { in TEST()
Dgraphcycles.cc303 int path_len = 0; in FindPath() local
314 path_len--; in FindPath()
318 if (path_len < max_path_len) { in FindPath()
319 path[path_len] = n; in FindPath()
321 path_len++; in FindPath()
325 return path_len; in FindPath()
/external/webrtc/modules/desktop_capture/win/
Dfull_screen_win_application_handler.cc179 DWORD path_len = MAX_PATH; in GetPathByWindowId() local
182 if (::QueryFullProcessImageNameW(process, 0, path, &path_len)) in GetPathByWindowId()
183 result = std::wstring(path, path_len); in GetPathByWindowId()
/external/grpc-grpc/src/core/lib/security/security_connector/
Dload_system_roots_linux.cc76 int path_len = snprintf(path_buffer, MAXPATHLEN, "%s/%s", valid_file_dir, in GetAbsoluteFilePath() local
78 if (path_len == 0) { in GetAbsoluteFilePath()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/security_connector/
Dload_system_roots_linux.cc82 int path_len = snprintf(path_buffer, MAXPATHLEN, "%s/%s", valid_file_dir, in GetAbsoluteFilePath() local
84 if (path_len == 0) { in GetAbsoluteFilePath()
/external/ltp/include/
Dtst_device.h54 int tst_find_free_loopdev(const char *path, size_t path_len);

123