Searched refs:rootlen (Results 1 – 3 of 3) sorted by relevance
| /freebsd-13.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-13.1/usr.sbin/bsnmpd/modules/snmp_lm75/ |
| H A D | snmp_lm75.c | 251 size_t len, nextlen, rootlen; in update_sensors() local 265 rootlen = 2; in update_sensors() 266 if (sysctlnametomib("dev.lm75", root, &rootlen) == -1) in update_sensors() 269 oid = (int *)malloc(sizeof(int) * rootlen); in update_sensors() 274 memcpy(oid, root, rootlen * sizeof(int)); in update_sensors() 275 len = rootlen; in update_sensors() 302 for (i = 0; i < (int)rootlen; i++) in update_sensors()
|
| /freebsd-13.1/lib/libbe/ |
| H A D | be.c | 407 size_t rootlen; in be_destroy_internal() local 518 rootlen = strlen(lbh->root); in be_destroy_internal() 519 if (*origin == '\0' || strlen(origin) <= rootlen + 1) in be_destroy_internal() 527 if (strncmp(origin, lbh->root, rootlen) != 0 || origin[rootlen] != '/') in be_destroy_internal() 530 return (be_destroy_internal(lbh, origin + rootlen + 1, in be_destroy_internal()
|