Lines Matching refs:zpath

241 	char zname[ZONENAME_MAX], zpath[PATH_MAX], tmp[PATH_MAX];  in Pzoneroot()  local
260 if (i_zone_get_zonepath(zname, zpath, sizeof (zpath)) != Z_OK) { in Pzoneroot()
271 (void) strlcat(zpath, "/root", sizeof (zpath)); in Pzoneroot()
273 if ((rv = resolvepath(zpath, tmp, sizeof (tmp) - 1)) < 0) { in Pzoneroot()
280 zname, zpath, GLOBAL_ZONENAME); in Pzoneroot()
285 (void) strlcpy(zpath, tmp, sizeof (zpath)); in Pzoneroot()
287 if ((P->zoneroot = strdup(zpath)) == NULL) { in Pzoneroot()
291 dprintf("Pzoneroot found zone root '%s:%s'\n", zname, zpath); in Pzoneroot()
520 char zroot[PATH_MAX], zpath[PATH_MAX], tmp[PATH_MAX], link[PATH_MAX]; in Pzonepath() local
582 *zpath = '\0'; in Pzonepath()
597 if ((p = strrchr(zpath, '/')) != NULL) in Pzonepath()
603 (void) strlcat(zpath, "/", sizeof (zpath)); in Pzonepath()
604 (void) strlcat(zpath, tmp, sizeof (zpath)); in Pzonepath()
616 if ((strncmp(zpath, "/native", sizeof ("/native")) == 0) || in Pzonepath()
617 (strncmp(zpath, "/.SUNWnative", in Pzonepath()
624 *zpath = '\0'; in Pzonepath()
626 (void) strlcat(zpath, "/", sizeof (zpath)); in Pzonepath()
627 (void) strlcat(zpath, tmp, sizeof (zpath)); in Pzonepath()
631 rv = resolvepath(zpath, tmp, sizeof (tmp) - 1); in Pzonepath()
634 zpath); in Pzonepath()
652 (void) strlcat(tmp, zpath, sizeof (tmp)); in Pzonepath()
671 if (strcmp(zpath, pn->pn_path) != 0) in Pzonepath()
675 dprintf("Pzonepath symlink loop '%s'\n", zpath); in Pzonepath()
681 if (pn_push(&pn_links, zpath) == NULL) { in Pzonepath()
695 zpath, link); in Pzonepath()
712 *zpath = '\0'; in Pzonepath()
725 p = strrchr(zpath, '/'); in Pzonepath()
734 (void) strlcat(tmp, zpath, sizeof (tmp)); in Pzonepath()
735 (void) strlcpy(zpath, tmp, sizeof (zpath)); in Pzonepath()
737 (void) Plofspath(zpath, zpath, sizeof (zpath)); in Pzonepath()
738 dprintf("Pzonepath found zone path (3) '%s'\n", zpath); in Pzonepath()
740 (void) strlcpy(s, zpath, n); in Pzonepath()