Home | History | Annotate | Download | only in sysinst

Lines Matching refs:resolved

312  * components.  Returns (resolved) on success, or (NULL) on failure,
313 * in which case the path which caused trouble is left in (resolved).
316 target_realpath(const char *path, char *resolved)
328 (void)strlcpy(resolved, ".", MAXPATHLEN);
333 * Find the dirname and basename from the path to be resolved.
341 snprintf(resolved, MAXPATHLEN, "%s/%s", target_prefix(), path);
343 if (strlcpy(resolved, path, MAXPATHLEN) >= MAXPATHLEN) {
348 q = strrchr(resolved, '/');
351 if (q == resolved)
356 } while (q > resolved && *q == '/');
358 q = resolved;
363 p = resolved;
377 snprintf(resolved, MAXPATHLEN, "%s%s",
380 strlcpy(resolved, wbuf, MAXPATHLEN);
403 if (getcwd(resolved, MAXPATHLEN) == 0)
410 if (resolved[0] == '/' && resolved[1] == '\0')
416 if (strlen(resolved) + strlen(wbuf) + (rootd ? 0 : 1) + 1 >
422 if (strlcat(resolved, "/", MAXPATHLEN) >= MAXPATHLEN) {
426 if (strlcat(resolved, wbuf, MAXPATHLEN) >= MAXPATHLEN) {
440 return (resolved);