Lines Matching refs:pathlen
351 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()
401 return pathlen; in dlmakepath()