Home
last modified time | relevance | path

Searched refs:path_length (Results 1 – 25 of 25) 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.cpp72 unsigned int path_length = 0; in GetExecutableDir()
73 _NSGetExecutablePath(NULL, &path_length); in GetExecutableDir()
74 if (path_length == 0) in GetExecutableDir()
77 path->reserve(path_length); in GetExecutableDir()
78 path->resize(path_length - 1); in GetExecutableDir()
79 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/
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()
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()
/external/tensorflow/tensorflow/core/platform/
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()
Dfile_system.cc358 string::difference_type path_length = dst - path.begin(); in CleanPath() local
359 if (path_length != 0) { in CleanPath()
361 if (path_length > 1 && path[path_length - 1] == '/') { in CleanPath()
362 --path_length; in CleanPath()
364 path.resize(path_length); in CleanPath()
Denv.cc344 int path_length = readlink("/proc/self/exe", buf, sizeof(buf) - 1); in GetExecutablePath() local
345 CHECK_NE(-1, path_length); in GetExecutablePath()
/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/python/cryptography/src/cryptography/x509/
Dextensions.py343 def __init__(self, ca, path_length): argument
347 if path_length is not None and not ca:
351 path_length is not None and
352 (not isinstance(path_length, six.integer_types) or path_length < 0)
359 self._path_length = path_length
362 path_length = utils.read_only_property("_path_length") variable in BasicConstraints
372 return self.ca == other.ca and self.path_length == other.path_length
378 return hash((self.ca, self.path_length))
/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/python/cryptography/tests/x509/
Dtest_x509.py1269 x509.BasicConstraints(ca=True, path_length=1),
1509 x509.BasicConstraints(ca=False, path_length=None), True,
1528 assert basic_constraints.value.path_length is None
2129 x509.BasicConstraints(ca=False, path_length=None), True,
2134 x509.BasicConstraints(ca=False, path_length=None), True,
2247 x509.BasicConstraints(ca=False, path_length=None), True,
2266 assert basic_constraints.value.path_length is None
2293 x509.BasicConstraints(ca=False, path_length=None), True,
2312 assert basic_constraints.value.path_length is None
2723 x509.BasicConstraints(ca=True, path_length=None), critical=True
[all …]
Dtest_x509_ext.py61 bc = x509.BasicConstraints(ca=False, path_length=None)
66 bc = x509.BasicConstraints(ca=False, path_length=None)
71 bc = x509.BasicConstraints(ca=False, path_length=None)
110 x509.BasicConstraints(ca=False, path_length=None)
115 x509.BasicConstraints(ca=False, path_length=None)
120 x509.BasicConstraints(ca=True, path_length=None)
1191 x509.BasicConstraints(ca="notbool", path_length=None)
1195 x509.BasicConstraints(ca=False, path_length=0)
1199 x509.BasicConstraints(ca=True, path_length=1.1)
1202 x509.BasicConstraints(ca=True, path_length="notint")
[all …]
/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/flatbuffers/samples/
Dmonster_generated.lobster63 def path_length():
/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/python/cryptography/src/cryptography/hazmat/backends/openssl/
Dencode_asn1.py336 if basic_constraints.ca and basic_constraints.path_length is not None:
338 backend, basic_constraints.path_length
Ddecode_asn1.py338 path_length = _asn1_integer_to_int_or_none(
342 return x509.BasicConstraints(ca, path_length)
/external/python/cryptography/docs/x509/
Dreference.rst443 …9.19, name=basicConstraints)>, critical=True, value=<BasicConstraints(ca=True, path_length=None)>)>
701 ... x509.BasicConstraints(ca=False, path_length=None), critical=True,
1142 ... x509.BasicConstraints(ca=False, path_length=None), critical=True,
1495 …9.19, name=basicConstraints)>, critical=True, value=<BasicConstraints(ca=True, path_length=None)>)>
1512 …9.19, name=basicConstraints)>, critical=True, value=<BasicConstraints(ca=True, path_length=None)>)>
1643 .. class:: BasicConstraints(ca, path_length)
1665 .. attribute:: path_length
1674 subordinate CA's certificate chain. For example, a ``path_length`` of 1
/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);
/external/python/pyopenssl/tests/
Dtest_ssl.py368 x509.BasicConstraints(ca=True, path_length=None), critical=True,
/external/crosvm/usb_util/src/
Dbindings.rs4171 path_length: u8, in libusb_get_port_path()