Home
last modified time | relevance | path

Searched refs:path_length (Results 1 – 15 of 15) sorted by relevance

/external/google-breakpad/src/common/linux/
Dsafe_readlink_unittest.cc50 size_t path_length = strlen(buffer); in TEST() local
51 EXPECT_LT(0U, path_length); in TEST()
52 EXPECT_GT(sizeof(buffer), path_length); in TEST()
56 EXPECT_TRUE(SafeReadLink("/proc/self/exe", buffer2, path_length + 1)); in TEST()
57 EXPECT_EQ(path_length, strlen(buffer2)); in TEST()
61 EXPECT_FALSE(SafeReadLink("/proc/self/exe", buffer, path_length)); in TEST()
81 size_t path_length = strlen(buffer); in TEST() local
87 EXPECT_EQ(path_length, strlen(buffer2)); in TEST()
/external/pdfium/testing/utils/
Dpath_service.cpp37 unsigned int path_length = 0; in GetExecutableDir()
38 _NSGetExecutablePath(NULL, &path_length); in GetExecutableDir()
39 if (path_length == 0) in GetExecutableDir()
42 path->reserve(path_length); in GetExecutableDir()
43 path->resize(path_length - 1); in GetExecutableDir()
44 if (_NSGetExecutablePath(&((*path)[0]), &path_length)) in GetExecutableDir()
/external/parameter-framework/asio-1.10.6/include/asio/local/detail/impl/
Dendpoint.ipp95 void endpoint::init(const char* path_name, std::size_t path_length)
97 if (path_length > sizeof(data_.local.sun_path) - 1)
107 memcpy(data_.local.sun_path, path_name, path_length);
108 path_length_ = path_length;
112 if (path_length > 0 && data_.local.sun_path[0] == 0)
113 data_.local.sun_path[path_length] = 0;
/external/ltp/testcases/kernel/syscalls/nftw/
Dlib64.c62 size_t path_length, name_length; in get_long_name_buffer() local
65 if ((path_length = pathconf(tmp_path, _PC_PATH_MAX)) == -1) { in get_long_name_buffer()
79 if ((strlen(tmp_path) + name_length + extra) > path_length) { in get_long_name_buffer()
82 name_length, path_length); in get_long_name_buffer()
87 if ((buffer = malloc(path_length + extra)) == NULL) { in get_long_name_buffer()
88 tst_resm(TFAIL, "malloc(%zi) failed: %s", path_length + extra, in get_long_name_buffer()
Dlib.c62 size_t path_length, name_length; in get_long_name_buffer() local
65 if ((path_length = pathconf(tmp_path, _PC_PATH_MAX)) == -1) { in get_long_name_buffer()
79 if ((strlen(tmp_path) + name_length + extra) > path_length) { in get_long_name_buffer()
82 name_length, path_length); in get_long_name_buffer()
87 if ((buffer = malloc(path_length + extra)) == NULL) { in get_long_name_buffer()
88 tst_resm(TFAIL, "malloc(%zi) failed: %s", path_length + extra, in get_long_name_buffer()
/external/tensorflow/tensorflow/core/lib/io/
Dpath.cc193 string::difference_type path_length = dst - path.begin(); in CleanPath() local
194 if (path_length != 0) { in CleanPath()
196 if (path_length > 1 && path[path_length - 1] == '/') { in CleanPath()
197 --path_length; in CleanPath()
199 path.resize(path_length); in CleanPath()
/external/webrtc/webrtc/base/
Dhttpcommon-inl.h70 size_t path_length = (query - val); in do_set_full_path() local
71 if (0 == path_length) { in do_set_full_path()
76 path_.assign(val, path_length); in do_set_full_path()
78 query_.assign(query, len - path_length); in do_set_full_path()
/external/grpc-grpc/src/core/ext/filters/http/server/
Dhttp_server_filter.cc214 size_t path_length = GRPC_SLICE_LENGTH(path_slice); in hs_filter_incoming_metadata() local
217 for (offset = 0; offset < path_length && *path_ptr != k_query_separator; in hs_filter_incoming_metadata()
220 if (offset < path_length) { in hs_filter_incoming_metadata()
222 grpc_slice_sub(path_slice, offset + 1, path_length); in hs_filter_incoming_metadata()
/external/webrtc/webrtc/modules/desktop_capture/mac/
Dfull_screen_chrome_window_detector.cc183 int path_length = proc_pidpath(pid, buffer, sizeof(buffer)); in IsChromeWindow() local
184 if (path_length <= 0) in IsChromeWindow()
/external/parameter-framework/asio-1.10.6/include/asio/local/detail/
Dendpoint.hpp114 ASIO_DECL void init(const char* path, std::size_t path_length);
/external/brotli/
DCMakeLists.txt303 string(LENGTH "${path}" path_length)
318 if(path_length EQUAL value_length AND path STREQUAL value)
321 elseif(path_length GREATER value_length)
/external/tensorflow/tensorflow/core/platform/
Denv.cc321 int path_length = readlink("/proc/self/exe", buf, sizeof(buf) - 1); in GetExecutablePath() local
322 CHECK_NE(-1, path_length); in GetExecutablePath()
/external/u-boot/fs/yaffs2/
Dyaffsfs.c441 int path_length; in yaffsfs_alt_dir_path() local
449 path_length = yaffs_strnlen(path, (YAFFS_MAX_NAME_LENGTH + 1) * 3 + 1); in yaffsfs_alt_dir_path()
457 if (path_length > 0 && yaffsfs_IsPathDivider(path[path_length - 1])) { in yaffsfs_alt_dir_path()
458 alt_path = kmalloc(path_length + 1, 0); in yaffsfs_alt_dir_path()
462 for (i = path_length - 1; in yaffsfs_alt_dir_path()
/external/libusb/libusb/
Dlibusb.h1364 … libusb_get_port_path(libusb_context *ctx, libusb_device *dev, uint8_t* path, uint8_t path_length);
/external/libusb/include/libusb/
Dlibusb.h1364 … libusb_get_port_path(libusb_context *ctx, libusb_device *dev, uint8_t* path, uint8_t path_length);