Searched refs:rootlen (Results 1 – 3 of 3) sorted by relevance
| /freebsd-12.1/contrib/apr/file_io/unix/ |
| H A D | filepath.c | 88 apr_size_t rootlen; /* is the length of the src rootpath */ in apr_filepath_merge() local 149 rootlen = strlen(rootpath); in apr_filepath_merge() 150 maxlen = rootlen + strlen(addpath) + 4; /* 4 for slashes at start, after in apr_filepath_merge() 177 keptlen = rootlen; in apr_filepath_merge() 178 memcpy(path, rootpath, rootlen); in apr_filepath_merge() 278 if ((flags & APR_FILEPATH_NOTABOVEROOT) && keptlen < rootlen) { in apr_filepath_merge() 279 if (strncmp(rootpath, path, rootlen)) { in apr_filepath_merge() 282 if (rootpath[rootlen - 1] != '/' in apr_filepath_merge() 283 && path[rootlen] && path[rootlen] != '/') { in apr_filepath_merge()
|
| /freebsd-12.1/usr.sbin/bsnmpd/modules/snmp_lm75/ |
| H A D | snmp_lm75.c | 252 size_t len, nextlen, rootlen; in update_sensors() local 266 rootlen = 2; in update_sensors() 267 if (sysctlnametomib("dev.lm75", root, &rootlen) == -1) in update_sensors() 270 oid = (int *)malloc(sizeof(int) * rootlen); in update_sensors() 275 memcpy(oid, root, rootlen * sizeof(int)); in update_sensors() 276 len = rootlen; in update_sensors() 303 for (i = 0; i < (int)rootlen; i++) in update_sensors()
|
| /freebsd-12.1/lib/libbe/ |
| H A D | be.c | 246 size_t rootlen; in be_destroy() local 310 rootlen = strlen(lbh->root); in be_destroy() 311 if (*origin == '\0' || strlen(origin) <= rootlen + 1) in be_destroy() 319 if (strncmp(origin, lbh->root, rootlen) != 0 || origin[rootlen] != '/') in be_destroy() 322 return (be_destroy(lbh, origin + rootlen + 1, in be_destroy()
|