Lines Matching defs:tmp

241 	char zname[ZONENAME_MAX], zpath[PATH_MAX], tmp[PATH_MAX];
273 if ((rv = resolvepath(zpath, tmp, sizeof (tmp) - 1)) < 0) {
284 tmp[rv] = '\0';
285 (void) strlcpy(zpath, tmp, sizeof (zpath));
313 char tmp[PATH_MAX + 1];
326 (void) strlcpy(tmp, path, sizeof (tmp) - 1);
332 if ((rv = resolvepath(tmp, tmp, sizeof (tmp) - 1)) >= 0)
333 tmp[rv] = '\0';
361 * tmp - A pointer to our working copy of the path. Sometimes
374 * (This is why we declared tmp with a size of PATH_MAX + 1).
376 p = &tmp[strlen(tmp)];
379 if ((special = lookup_lofs_mount_point(tmp)) != NULL) {
402 (void) strlcpy(tmp, tmp2, sizeof (tmp) - 1);
403 p = &tmp[strlen(tmp)];
410 if ((p2 = strrchr(tmp, '/')) == NULL) {
416 * We know that tmp was an absolute path, so if we
417 * made it here we know that (p == tmp) and that
421 assert(p == tmp);
427 if (strcmp(tmp, path) == 0) {
437 (void) strlcpy(tmp2, tmp, sizeof (tmp2));
438 if ((rv = resolvepath(tmp, tmp, sizeof (tmp) - 1)) >= 0)
439 tmp[rv] = '\0';
446 (void) Plofspath(tmp, tmp, PATH_MAX);
449 (void) strlcpy(s, tmp, n);
520 char zroot[PATH_MAX], zpath[PATH_MAX], tmp[PATH_MAX], link[PATH_MAX];
536 tmp[0] = '\0';
538 (void) strlcat(tmp, "/", sizeof (tmp));
539 (void) strlcat(tmp, path, sizeof (tmp));
546 if (strcmp(tmp, zroot) == 0) {
553 if ((strncmp(tmp, zroot, i) == 0) && (tmp[i] == '/'))
554 (void) memmove(tmp, tmp + i, strlen(tmp + i) + 1);
557 if (strlen(tmp) == 0) {
573 while ((p = strrchr(tmp, '/')) != NULL) {
584 while (pn_pop(&pn_stack, tmp) != NULL) {
589 if ((strlen(tmp) == 0) || (strcmp(tmp, ".") == 0))
596 if (strcmp(tmp, "..") == 0) {
602 /* The path we want to verify now is zpath + / + tmp. */
604 (void) strlcat(zpath, tmp, sizeof (zpath));
625 while (pn_pop(&pn_stack, tmp) != NULL) {
627 (void) strlcat(zpath, tmp, sizeof (zpath));
631 rv = resolvepath(zpath, tmp, sizeof (tmp) - 1);
637 tmp[rv] = '\0';
640 dprintf("Pzonepath found native path '%s'\n", tmp);
641 (void) Plofspath(tmp, tmp, sizeof (tmp));
642 (void) strlcpy(s, tmp, n);
651 (void) strlcpy(tmp, zroot, sizeof (tmp));
652 (void) strlcat(tmp, zpath, sizeof (tmp));
653 if (lstat64(tmp, &sb) != 0) {
689 if (readlink(tmp, link, sizeof (link)) == -1) {
733 (void) strlcpy(tmp, zroot, sizeof (tmp));
734 (void) strlcat(tmp, zpath, sizeof (tmp));
735 (void) strlcpy(zpath, tmp, sizeof (zpath));