Lines Matching refs:newpath
418 zonecfg_simplify_path(const char *origpath, char *newpath, size_t newpathsz)
423 /* Absolute path required and newpath must be long enough for "/\0" */
429 cur = newpath;
432 eob = newpath + newpathsz;
443 * value less than newpath. The second phase advances the cur
463 if (cur == newpath)
467 } while (cur >= newpath && *cur != '/');
481 * Copy until the end of newpath, the next slash, or the end
503 * NB: The cur++ at the beginning of phase 2 ensures cur > newpath.
506 if (cur > newpath && *cur == '/')