Home
last modified time | relevance | path

Searched refs:pathlen (Results 1 – 25 of 36) sorted by relevance

12

/external/dtc/tests/
Dget_path.c32 static void check_path_buf(void *fdt, const char *path, int pathlen, int buflen) in check_path_buf() argument
47 if (buflen <= pathlen) { in check_path_buf()
69 int pathlen = strlen(path); in check_path() local
71 check_path_buf(fdt, path, pathlen, 1024); in check_path()
72 check_path_buf(fdt, path, pathlen, pathlen+1); in check_path()
73 check_path_buf(fdt, path, pathlen, pathlen); in check_path()
74 check_path_buf(fdt, path, pathlen, 0); in check_path()
75 check_path_buf(fdt, path, pathlen, 2); in check_path()
/external/boringssl/src/crypto/x509v3/
Dv3_pci.c83 ASN1_OBJECT **language, ASN1_INTEGER **pathlen, in process_pci_value() argument
101 if (*pathlen) { in process_pci_value()
107 if (!X509V3_get_value_int(val, pathlen)) { in process_pci_value()
202 ASN1_INTEGER *pathlen = NULL; in r2i_pci() local
228 &language, &pathlen, &policy); in r2i_pci()
234 if (!process_pci_value(cnf, &language, &pathlen, &policy)) { in r2i_pci()
264 pci->pcPathLengthConstraint = pathlen; in r2i_pci()
265 pathlen = NULL; in r2i_pci()
272 if (pathlen) { in r2i_pci()
273 ASN1_INTEGER_free(pathlen); in r2i_pci()
[all …]
Dv3_bcons.c89 ASN1_OPT(BASIC_CONSTRAINTS, pathlen, ASN1_INTEGER)
100 X509V3_add_value_int("pathlen", bcons->pathlen, &extlist);
121 if (!X509V3_get_value_int(val, &bcons->pathlen)) in v2i_BASIC_CONSTRAINTS()
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
Dcommon.h46 int pathlen; \
55 pathlen = strlen(fullpath); \
64 if (fullpath[pathlen - 1] == '/') { \
65 fullpath[pathlen - 1] = '\0'; \
66 pathlen--; \
68 sprintf(fullpath + pathlen, "/%s", direntp->d_name); \
/external/syslinux/extlinux/
Dmountinfo.c138 m->pathlen = (n == 1) ? 0 : n; /* Treat / as empty */ in parse_mountinfo()
226 if (m->pathlen > len) in find_mount()
229 if (m->pathlen < matchlen) in find_mount()
233 !memcmp(m->path, real_path, m->pathlen) && in find_mount()
234 (real_path[m->pathlen] == '/' || real_path[m->pathlen] == '\0')) { in find_mount()
235 matchlen = m->pathlen; in find_mount()
241 if (real_path[best->pathlen] == '\0') in find_mount()
244 *subpath = strdup(real_path + best->pathlen); in find_mount()
Dmountinfo.h28 int pathlen; member
/external/e2fsprogs/lib/ext2fs/
Dnamei.c26 const char *pathname, size_t pathlen, int follow,
84 const char *pathname, int pathlen, in dir_namei() argument
98 pathlen--; in dir_namei()
102 for (len=0; --pathlen >= 0;len++) { in dir_namei()
107 if (pathlen < 0) in dir_namei()
122 const char *pathname, size_t pathlen, int follow, in open_namei() argument
132 root, base, pathlen, pathname, link_count); in open_namei()
134 retval = dir_namei(fs, root, base, pathname, pathlen, in open_namei()
/external/python/cpython2/RISCOS/Modules/
Dgetpath_riscos.c11 int pathlen = strlen(pypath); in calculate_path() local
12 module_search_path = malloc(pathlen + 1); in calculate_path()
14 strncpy(module_search_path, pypath, pathlen + 1); in calculate_path()
/external/libxml2/os400/dlfcn/
Ddlfcn.c351 dlmakepath(char * path, size_t pathlen, const char * tail, size_t taillen) in dlmakepath() argument
357 pathlen = 0; in dlmakepath()
379 pathlen = dlparentpath(path, pathlen); in dlmakepath()
387 if (pathlen + i + 1 >= MAXPATHLEN) { in dlmakepath()
392 path[pathlen++] = '/'; in dlmakepath()
393 memcpy(path + pathlen, tail, i); in dlmakepath()
394 pathlen += i; in dlmakepath()
397 if (!pathlen) in dlmakepath()
398 path[pathlen++] = '/'; in dlmakepath()
400 path[pathlen] = '\0'; in dlmakepath()
[all …]
/external/syslinux/core/fs/xfs/
Dxfs.c257 int pathlen = -1; in xfs_readlink() local
270 pathlen = be64_to_cpu(core->di_size); in xfs_readlink()
271 if (!pathlen) in xfs_readlink()
274 if (pathlen < 0 || pathlen > MAXPATHLEN) { in xfs_readlink()
276 inode->ino, pathlen); in xfs_readlink()
281 memcpy(buf, (char *)&core->di_literal_area[0], pathlen); in xfs_readlink()
292 memcpy(buf, dir_buf, pathlen); in xfs_readlink()
296 return pathlen; in xfs_readlink()
/external/python/cpython2/Lib/
Dntpath.py344 pathlen = len(path)
345 while index < pathlen:
349 pathlen = len(path)
355 index = pathlen - 1
362 pathlen = len(path)
367 index = pathlen - 1
380 pathlen = len(path)
390 index = pathlen - 1
/external/minijail/
Dutil.c273 size_t pathlen; in path_join() local
276 pathlen = strlen(external_path) + strlen(internal_path) + 2; in path_join()
277 path = malloc(pathlen); in path_join()
278 snprintf(path, pathlen, "%s/%s", external_path, internal_path); in path_join()
/external/bison/lib/
Dspawni.c147 size_t pathlen; in __spawni() local
322 pathlen = strlen (path); in __spawni()
323 name = alloca (pathlen + len + 1); in __spawni()
325 name = (char *) memcpy (name + pathlen + 1, file, len); in __spawni()
/external/e2fsprogs/util/
Dsymlinks.c273 static void dirwalk (char *path, int pathlen, dev_t dev) in dirwalk() argument
285 name = path + pathlen; in dirwalk()
304 path[pathlen] = '\0'; in dirwalk()
/external/linux-kselftest/tools/testing/selftests/exec/
Dexecveat.c70 int pathlen = path ? strlen(path) : 0; in check_execveat_invoked_rc() local
72 if (pathlen > 40) in check_execveat_invoked_rc()
74 fd, path, (path + pathlen - 20), flags); in check_execveat_invoked_rc()
/external/libmicrohttpd/src/testspdy/
Dtest_notls.c118 size_t pathlen; member
588 req->path = strcopy(uri->path, uri->pathlen); in request_init()
741 res->pathlen = 1; in parse_uri()
744 res->pathlen = i-offset; in parse_uri()
Dtest_new_connection.c139 size_t pathlen; member
636 req->path = strcopy(uri->path, uri->pathlen); in request_init()
806 res->pathlen = 1; in parse_uri()
809 res->pathlen = i-offset; in parse_uri()
Dtest_request_response.c121 size_t pathlen; member
624 req->path = strcopy(uri->path, uri->pathlen); in request_init()
794 res->pathlen = 1; in parse_uri()
797 res->pathlen = i-offset; in parse_uri()
/external/mesa3d/src/glx/apple/
Dappledri.h111 Bool doubleSwap, char *path, size_t pathlen,
Dappledri.c309 Bool doubleSwap, char *path, size_t pathlen, in XAppleDRICreateSharedBuffer() argument
337 if (rep.stringLength > 0 && rep.stringLength <= pathlen) { in XAppleDRICreateSharedBuffer()
/external/wpa_supplicant_8/hs20/server/ca/
Dopenssl.cnf118 basicConstraints = critical, CA:true, pathlen:0
128 basicConstraints = critical, CA:true, pathlen:0
/external/mksh/src/
Dmisc.c1413 #define pathlen sb.st_size in do_realpath() macro
1414 #define pathcnd (ldestlen < (pathlen + 1)) in do_realpath()
1416 #define pathlen PATH_MAX in do_realpath() macro
1509 if (notoktoadd(pathlen, 1)) { in do_realpath()
1514 ldest = aresize(ldest, pathlen + 1, ATEMP); in do_realpath()
1516 llen = readlink(Xstring(xs, xp), ldest, pathlen); in do_realpath()
1593 #undef pathlen in do_realpath()
/external/kmod/libkmod/
Dlibkmod-module.c113 size_t pathlen; in path_join() local
118 pathlen = strlen(path); in path_join()
119 if (prefixlen + pathlen + 1 >= PATH_MAX) in path_join()
122 memcpy(buf + prefixlen, path, pathlen + 1); in path_join()
1734 int fd, err, pathlen; in kmod_module_get_initstate() local
1743 pathlen = snprintf(path, sizeof(path), in kmod_module_get_initstate()
1752 if (pathlen > (int)sizeof("/initstate") - 1) { in kmod_module_get_initstate()
1754 path[pathlen - (sizeof("/initstate") - 1)] = '\0'; in kmod_module_get_initstate()
Dlibkmod-config.c839 size_t pathlen; in kmod_config_new() local
846 pathlen = strlen(path) + 1; in kmod_config_new()
847 cf = malloc(sizeof(*cf) + pathlen); in kmod_config_new()
852 memcpy(cf->path, path, pathlen); in kmod_config_new()
/external/curl/lib/
Dcookie.c632 size_t pathlen = (size_t)(endslash-path+1); /* include ending slash */ in Curl_cookie_add() local
633 co->path=malloc(pathlen+1); /* one extra for the zero byte */ in Curl_cookie_add()
635 memcpy(co->path, path, pathlen); in Curl_cookie_add()
636 co->path[pathlen]=0; /* zero terminate */ in Curl_cookie_add()

12