| /onnv/onnv-gate/usr/src/cmd/svc/startd/ |
| proc.c | 46 psinfo_t psinfo; local 48 fd = open("/proc/self/psinfo", O_RDONLY); 52 bytes = read(fd, &psinfo, sizeof (psinfo)); 53 if (bytes == sizeof (psinfo)) 54 ctid = psinfo.pr_contract;
|
| /onnv/onnv-gate/usr/src/cmd/ps/ |
| ps.c | 730 "%s/self/psinfo", procdir); 920 int procfd; /* filedescriptor for /proc/nnnnn/psinfo */ 929 (void) strcpy(&pname[pdlen], "psinfo"); 1228 gettty(psinfo_t *psinfo) 1234 if (psinfo->pr_ttydev == PRNODEV) 1237 if ((retval = devlookup(psinfo->pr_ttydev)) != NULL) 1240 retval = _ttyname_dev(psinfo->pr_ttydev, devname, sizeof (devname)); 1242 return (devadd(retval, psinfo->pr_ttydev)); 1249 prfind(int found, psinfo_t *psinfo, char **tpp) 1254 if (psinfo->pr_nlwp == 0) [all...] |
| ucbps.c | 77 psinfo_t *psinfo; member in struct:psent 132 static void przom(psinfo_t *psinfo); 398 int psfd; /* file descriptor for /proc/nnnnn/psinfo */ 405 (void) strcat(psname, "/psinfo"); 502 if ((psent[nent].psinfo = malloc(sizeof (psinfo_t))) 507 *psent[nent].psinfo = info; 535 if (prcom(pp->found, pp->psinfo, pp->psargs)) { 560 preadargs(int pfd, psinfo_t *psinfo, char *psargs) 562 off_t argvoff = (off_t)psinfo->pr_argv; 573 int is32 = (psinfo->pr_dmodel != PR_MODEL_LP64) [all...] |
| /onnv/onnv-gate/usr/src/cmd/ptools/pldd/ |
| pldd.c | 100 psinfo_t psinfo; local 114 (void) memcpy(&psinfo, Ppsinfo(Pr), sizeof (psinfo_t)); 115 proc_unctrl_psinfo(&psinfo); 125 arg, (int)psinfo.pr_pid, psinfo.pr_psargs); 128 (int)psinfo.pr_pid, psinfo.pr_psargs);
|
| /onnv/onnv-gate/usr/src/lib/libproc/common/ |
| proc_arg.c | 47 * Allocate enough space for procfs_path + arg + "/psinfo" 61 (void) strcat(path, "/psinfo"); 64 * Attempt to open the psinfo file, and return the fd if we can 134 psinfo_t psinfo; local 152 if (read(fd, &psinfo, 162 *psp = psinfo; 165 return (Pgrab(psinfo.pr_pid, gflag, 202 if (read(fd, &psinfo, sizeof (psinfo_t)) == sizeof (psinfo_t)) { 205 *psp = psinfo; 208 return (Pgrab(psinfo.pr_pid, gflag, perr)) 261 psinfo_t psinfo; local 276 psinfo_t psinfo; local 435 psinfo_t psinfo; local [all...] |
| Pgcore.c | 218 psp->pr_state = P->psinfo.pr_lwp.pr_state; 219 psp->pr_sname = P->psinfo.pr_lwp.pr_sname; 221 psp->pr_nice = P->psinfo.pr_lwp.pr_nice; 222 psp->pr_flag = P->psinfo.pr_lwp.pr_flag; 223 psp->pr_uid = P->psinfo.pr_uid; 224 psp->pr_gid = P->psinfo.pr_gid; 225 psp->pr_pid = P->psinfo.pr_pid; 226 psp->pr_ppid = P->psinfo.pr_ppid; 227 psp->pr_pgrp = P->psinfo.pr_pgid; 228 psp->pr_sid = P->psinfo.pr_sid [all...] |
| Pexecname.c | 162 (void) strncpy(path, P->psinfo.pr_psargs, PRARGSZ); 180 if (P->psinfo.pr_argv != NULL && 181 Pread(P, &addr, sizeof (addr), P->psinfo.pr_argv) != -1 && 203 (void) strncpy(path, P->psinfo.pr_psargs, PRARGSZ); 210 P->psinfo.pr_fname, strlen(P->psinfo.pr_fname)) != 0) 211 (void) strcpy(path, P->psinfo.pr_fname);
|
| /onnv/onnv-gate/usr/src/cmd/ptools/pwait/ |
| pwait.c | 114 (void) strncat(psinfofile, "/psinfo", 158 psinfo_t psinfo; local 160 if (pread(pfd->fd, &psinfo, 161 sizeof (psinfo), (off_t)0) 162 == sizeof (psinfo)) { 165 arg, psinfo.pr_wstat);
|
| /onnv/onnv-gate/usr/src/cmd/ptools/psig/ |
| psig.c | 182 psinfo_t psinfo; local 199 (void) memcpy(&psinfo, psinfop, sizeof (psinfo_t)); 200 proc_unctrl_psinfo(&psinfo); 202 (void) sprintf(pathname, "/proc/%d/sigact", (int)psinfo.pr_pid); 228 (void) printf("%d:\t%.70s\n", (int)psinfo.pr_pid, psinfo.pr_psargs); 233 if ((uberaddr = uberdata_addr(Pr, psinfo.pr_dmodel)) == 0) { 239 if (psinfo.pr_dmodel != PR_MODEL_NATIVE) { 304 haddr = deinterpose(sig, aharr, &psinfo, sp); 410 deinterpose(int sig, void *aharr, psinfo_t *psinfo, struct sigaction *sp [all...] |
| /onnv/onnv-gate/usr/src/cmd/utmpd/ |
| utmpd.c | 448 psinfo_t psinfo; local 450 if (pread(pfd->fd, &psinfo, sizeof (psinfo), (off_t)0) 451 != sizeof (psinfo)) { 453 (int)pidtable[i].pl_pid, psinfo.pr_wstat)); 454 pidtable[i].pl_status = psinfo.pr_wstat; 869 (void) sprintf(procname, "/proc/%d/psinfo", (int)pid); 1040 psinfo_t psinfo; local 1048 (void) sprintf(psinfoname, "/proc/%d/psinfo", (int)pid); 1051 read(fd, &psinfo, sizeof (psinfo)) != sizeof (psinfo)) [all...] |
| /onnv/onnv-gate/usr/src/cmd/pgrep/ |
| psexp.c | 110 psexp->__f1.id_data && !idtab_search(&psexp->__f1, psinfo->__f2) 113 psexp_match(psexp_t *psexp, psinfo_t *psinfo, int flags) 143 psinfo->pr_psargs : psinfo->pr_fname;
|
| pgrep.c | 177 print_proc(psinfo_t *psinfo) 180 (void) printf("%s%d", g_delim, (int)psinfo->pr_pid); 182 (void) printf("%d", (int)psinfo->pr_pid); 221 print_proc_long(psinfo_t *psinfo) 226 name = mbstrip(psinfo->pr_psargs, PRARGSZ); 228 name = psinfo->pr_fname; 231 (void) printf("%s%5d %s", g_delim, (int)psinfo->pr_pid, name); 233 (void) printf("%5d %s", (int)psinfo->pr_pid, name); 239 kill_proc(psinfo_t *psinfo) 241 if (psinfo->pr_pid > 0 && kill(psinfo->pr_pid, g_signal) == -1 [all...] |
| /onnv/onnv-gate/usr/src/cmd/latencytop/common/ |
| util.c | 140 psinfo_t psinfo; local 142 (void) snprintf(name, PATH_MAX, "/proc/%d/psinfo", (int)pid); 149 ret = read(fd, (char *)&psinfo, sizeof (psinfo_t)); 158 return (lt_strdup(psinfo.pr_fname)); 160 return (lt_strdup(psinfo.pr_psargs));
|
| /onnv/onnv-gate/usr/src/cmd/file/ |
| elf_read.c | 320 char *psinfo, *fname; local 356 if ((psinfo = malloc(dsz)) == NULL) { 362 if (pread64(EI->elffd, psinfo, dsz, offset) != dsz) 366 * in psinfo->pr_fname[], where 'psinfo' 387 fname = psinfo + 88; 389 fname = psinfo + 84; 393 fname = psinfo + 136; 395 fname = psinfo + 120; 400 free(psinfo); [all...] |
| /onnv/onnv-gate/usr/src/uts/common/sys/ |
| prsystm.h | 49 struct psinfo; 71 extern void prgetpsinfo(proc_t *, struct psinfo *);
|
| /onnv/onnv-gate/usr/src/cmd/ptools/preap/ |
| preap.c | 108 psinfo_t psinfo; local 115 * get the specified pid and the psinfo struct 117 if ((pid = proc_arg_psinfo(arg, PR_ARG_PIDS, &psinfo, &gret)) == -1) { 123 if (psinfo.pr_nlwp != 0) { 129 *exit_status = psinfo.pr_wstat; 130 *reap_pid = psinfo.pr_pid; 131 ppid = psinfo.pr_ppid;
|
| /onnv/onnv-gate/usr/src/cmd/ppgsz/ |
| ppgsz.c | 325 psinfo_t psinfo; local 330 /* get the specified pid and the psinfo struct */ 332 pid = proc_arg_psinfo(arg, PR_ARG_PIDS, &psinfo, &gret); 355 proc_unctrl_psinfo(&psinfo); 358 command, (int)pid, psinfo.pr_psargs); 363 rc = setpgsz(NULL, psinfo.pr_dmodel, pgsz); 440 const psinfo_t *psinfo; local 456 if ((psinfo = Ppsinfo(Pr)) == NULL) 462 pgsz = discover_optimal_pagesize(Pr, dmodel, psinfo->pr_pid); 466 (void) snprintf(path, PATH_MAX, "/proc/%d/map", (int)psinfo->pr_pid) [all...] |
| /onnv/onnv-gate/usr/src/cmd/ptools/pargs/ |
| pargs.c | 78 psinfo_t *pd_psinfo; /* target psinfo */ 1330 psinfo_t psinfo; local 1422 bcopy(Ppsinfo(Pr), &psinfo, sizeof (psinfo_t)); local [all...] |
| /onnv/onnv-gate/usr/src/cmd/ptools/pflags/ |
| pflags.c | 132 psinfo_t psinfo; local 148 proc_arg_psinfo(arg, PR_ARG_PIDS, &psinfo, &gcode2) > 0 && 149 psinfo.pr_nlwp == 0) { 150 (void) printf("%d:\t<defunct>\n\n", (int)psinfo.pr_pid); 159 (void) memcpy(&psinfo, Ppsinfo(Pr), sizeof (psinfo_t)); 160 proc_unctrl_psinfo(&psinfo); 162 if (psinfo.pr_nlwp == 0) { 163 (void) printf("%d:\t<defunct>\n\n", (int)psinfo.pr_pid); 177 arg, (int)psinfo.pr_pid, psinfo.pr_psargs) [all...] |
| /onnv/onnv-gate/usr/src/cmd/rcap/common/ |
| rcapd.h | 91 struct psinfo; 108 int lpc_psinfo_fd; /* cached psinfo fd */ 181 extern int get_psinfo(pid_t, struct psinfo *, int, int(*)(void *, int), void *,
|
| /onnv/onnv-gate/usr/src/cmd/ptools/pfiles/ |
| pfiles.c | 127 psinfo_t psinfo; local 133 /* get the specified pid and the psinfo struct */ 135 &psinfo, &gret)) == -1) { 141 proc_unctrl_psinfo(&psinfo); 143 (int)pid, psinfo.pr_psargs); 158 proc_unctrl_psinfo(&psinfo); 160 psinfo.pr_psargs); 475 psinfo_t psinfo; local 480 if (proc_get_psinfo(door_info.di_target, &psinfo) != 0) 481 psinfo.pr_fname[0] = '\0' [all...] |
| /onnv/onnv-gate/usr/src/uts/common/exec/elf/ |
| old_notes.c | 107 prpsinfo_t psinfo; member in union:__anon4656 135 oprgetpsinfo(p, &bigwad->psinfo, NULL); 137 error = elfnote(vp, &offset, NT_PRPSINFO, sizeof (bigwad->psinfo), 138 (caddr_t)&bigwad->psinfo, rlimit, credp);
|
| /onnv/onnv-gate/usr/src/cmd/nohup/ |
| nohup.c | 671 psinfo_t psinfo; local 737 PR_ARG_PIDS, &psinfo, &gcode) == -1) 740 if (psinfo.pr_pgid != pgid) 746 if (psinfo.pr_nlwp == 0) 755 (void) kill(psinfo.pr_pid, SIGCONT); 788 (void) kill(psinfo.pr_pid, SIGCONT);
|
| /onnv/onnv-gate/usr/src/cmd/plimit/ |
| plimit.c | 165 psinfo_t psinfo; local 172 /* get the specified pid and the psinfo struct */ 174 &psinfo, &gret)) == -1) { 184 proc_unctrl_psinfo(&psinfo); 186 (int)pid, psinfo.pr_psargs); 199 proc_unctrl_psinfo(&psinfo); 201 psinfo.pr_psargs);
|
| /onnv/onnv-gate/usr/src/cmd/prstat/ |
| prstat.c | 279 * from psinfo 296 * already gathered from psinfo. 338 * gathered from psinfo. 846 add_proc(psinfo_t *psinfo) 850 pid_t pid = psinfo->pr_pid; 852 lwpid = psinfo->pr_lwp.pr_lwpid; 856 (void) memcpy(&lwp->li_info, psinfo, sizeof (psinfo_t)); 861 add_lwp(psinfo_t *psinfo, lwpsinfo_t *lwpsinfo, int flags) 864 pid_t pid = psinfo->pr_pid; 872 (void) memcpy(&lwp->li_info, psinfo, 892 psinfo_t psinfo; local [all...] |