Lines Matching defs:P
215 Pbrandname(struct ps_prochandle *P, char *buf, size_t buflen)
219 if ((addr = Pgetauxval(P, AT_SUN_BRANDNAME)) == -1)
222 if (Pread_string(P, buf, buflen, addr) == -1)
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)
244 if (P->zoneroot != NULL) {
245 (void) strlcpy(s, P->zoneroot, n);
249 if ((Pzonename(P, zname, sizeof (zname)) == NULL) ||
251 if ((P->zoneroot = strdup("")) == NULL) {
256 (void) strlcpy(s, P->zoneroot, n);
261 if ((P->zoneroot = strdup("")) == NULL) {
268 (void) strlcpy(s, P->zoneroot, n);
274 if ((P->zoneroot = strdup("")) == NULL) {
281 (void) strlcpy(s, P->zoneroot, n);
287 if ((P->zoneroot = strdup(zpath)) == NULL) {
292 (void) strlcpy(s, P->zoneroot, n);
518 Pzonepath(struct ps_prochandle *P, const char *path, char *s, size_t n)
529 if (Pzoneroot(P, zroot, sizeof (zroot)) == NULL)
745 Pfindobj(struct ps_prochandle *P, const char *path, char *s, size_t n)
756 if (Pzonepath(P, path, s, n) != NULL)
773 Pfindmap(struct ps_prochandle *P, map_info_t *mptr, char *s, size_t n)
786 if ((P->map_exec == mptr) ||
790 if (Pexecname(P, buf, sizeof (buf)) != NULL) {
797 if ((Pstate(P) != PS_DEAD) && (mptr->map_pmap.pr_mapname[0] != '\0')) {
799 procfs_path, (int)P->pid, mptr->map_pmap.pr_mapname);
815 if (Pfindobj(P, buf, buf, sizeof (buf)) == NULL)