Lines Matching defs:s

197 		/* There's no harm in doing this multiple times. */
233 Pzonename(struct ps_prochandle *P, char *s, size_t n)
235 return (P->ops.pop_zonename(P, s, n, P->data));
239 Pzoneroot(struct ps_prochandle *P, char *s, size_t n)
245 (void) strlcpy(s, P->zoneroot, n);
246 return (s);
255 dprintf("Pzoneroot defaulting to '%s'\n", GLOBAL_ZONENAME);
256 (void) strlcpy(s, P->zoneroot, n);
257 return (s);
266 "Pzoneroot zone not found '%s', defaulting to '%s'\n",
268 (void) strlcpy(s, P->zoneroot, n);
269 return (s);
279 "Pzoneroot can't access '%s:%s', defaulting to '%s'\n",
281 (void) strlcpy(s, P->zoneroot, n);
282 return (s);
291 dprintf("Pzoneroot found zone root '%s:%s'\n", zname, zpath);
292 (void) strlcpy(s, P->zoneroot, n);
293 return (s);
299 * is placed in "s", which is limited to "n" characters, and the return
300 * value is the pointer s. If there are no lofs components in the path
301 * the NULL is returned and s is not modified. It's ok for "path" and
302 * "s" to be the same pointer. (ie, the results can be stored directly
308 * then "/candy/bar/" will be written into "s" and "s" will be returned.
311 Plofspath(const char *path, char *s, size_t n)
319 dprintf("Plofspath path '%s'\n", path);
330 * trailing '/'s in the path.
359 * Here's some of the variables we're going to use:
388 * sure there are no consecutive or trailing '/'s
433 * It's possible that lofs source path we just
442 * It's always possible that our lofs source path is
449 (void) strlcpy(s, tmp, n);
450 dprintf("Plofspath path result '%s'\n", s);
451 return (s);
518 Pzonepath(struct ps_prochandle *P, const char *path, char *s, size_t n)
526 dprintf("Pzonepath lookup '%s'\n", path);
534 * If it's a relative path then make it into an absolute path.
548 dprintf("Pzonepath found zone path (1) '%s'\n", zroot);
549 (void) strlcpy(s, zroot, n);
550 return (s);
559 dprintf("Pzonepath found zone path (2) '%s'\n", zroot);
560 (void) strlcpy(s, zroot, n);
561 return (s);
587 * consecutive '/'s) and '.' path components.
633 dprintf("Pzonepath invalid native path '%s'\n",
640 dprintf("Pzonepath found native path '%s'\n", tmp);
642 (void) strlcpy(s, tmp, n);
643 return (s);
675 dprintf("Pzonepath symlink loop '%s'\n", zpath);
694 dprintf("Pzonepath following symlink '%s' -> '%s'\n",
738 dprintf("Pzonepath found zone path (3) '%s'\n", zpath);
740 (void) strlcpy(s, zpath, n);
741 return (s);
745 Pfindobj(struct ps_prochandle *P, const char *path, char *s, size_t n)
749 dprintf("Pfindobj '%s'\n", path);
756 if (Pzonepath(P, path, s, n) != NULL)
757 return (s);
760 if (Plofspath(path, s, n) != NULL)
761 return (s);
764 if ((len = resolvepath(path, s, n)) > 0) {
765 s[len] = '\0';
766 return (s);
773 Pfindmap(struct ps_prochandle *P, map_info_t *mptr, char *s, size_t n)
779 /* If it's already been explicity set return that */
781 (void) strlcpy(s, fptr->file_rname, n);
782 return (s);
785 /* If it's the a.out segment, defer to the magical Pexecname() */
791 (void) strlcpy(s, buf, n);
792 return (s);
798 (void) snprintf(buf, sizeof (buf), "%s/%d/path/%s",
803 (void) strlcpy(s, buf, n);
804 return (s);
817 (void) strlcpy(s, buf, n);
818 return (s);