/illumos-gate/usr/src/cmd/ptools/preap/ |
H A D | preap.c | 112 int gret; local 117 if ((pid = proc_arg_psinfo(arg, PR_ARG_PIDS, &psinfo, &gret)) == -1) { 119 command, arg, Pgrab_error(gret)); 140 if (proc_usage(pid, &usage, &gret) == 0) { 144 command, (int)pid, Pgrab_error(gret)); 155 if ((Pr = Pgrab(ppid, Fflag | PGRAB_NOSTOP, &gret)) == NULL) { 157 (int)ppid, Pgrab_error(gret));
|
/illumos-gate/usr/src/cmd/ppgsz/ |
H A D | ppgsz.c | 326 int gret; local 332 pid = proc_arg_psinfo(arg, PR_ARG_PIDS, &psinfo, &gret); 336 " %s\n", command, arg, Pgrab_error(gret)); 343 } else if ((Pr = Pgrab(pid, Fflag, &gret)) != NULL) { 353 switch (gret) { 373 command, Pgrab_error(gret), (int)pid);
|
/illumos-gate/usr/src/cmd/ptools/ptime/ |
H A D | ptime.c | 69 int gret; local 72 Fflag | PGRAB_RDONLY, &gret)) == NULL) { 74 command, pidstr, Pgrab_error(gret)); 92 int gret; local 151 if ((Pr = Pcreate(argv[0], &argv[0], &gret, NULL, 0)) == NULL) { 153 command, argv[0], Pcreate_error(gret));
|
/illumos-gate/usr/src/cmd/plimit/ |
H A D | plimit.c | 169 int gret; local 175 &psinfo, &gret)) == -1) { 177 command, arg, Pgrab_error(gret)); 179 } else if ((Pr = Pgrab(pid, Fflag, &gret)) != NULL) { 199 if ((gret == G_SYS || gret == G_SELF) && !set) { 203 if (gret == G_SYS) 210 command, Pgrab_error(gret), (int)pid);
|
/illumos-gate/usr/src/cmd/newtask/ |
H A D | newtask.c | 330 int error = 0, gret; local 357 if ((p = proc_arg_grab(procname, PR_ARG_PIDS, 0, &gret)) == NULL) { 359 procname, Pgrab_error(gret)); 448 if ((p = proc_arg_grab(procname, PR_ARG_PIDS, 0, &gret)) == NULL) { 450 procname, Pgrab_error(gret));
|
/illumos-gate/usr/src/cmd/ptools/pfiles/ |
H A D | pfiles.c | 135 int gret; local 143 &psinfo, &gret)) == -1) { 146 Fflag, &gret, NULL)) == NULL) { 149 command, arg, Pgrab_error(gret)); 154 &gret) < 0) { 157 command, arg, Pgrab_error(gret)); 168 } else if ((Pr = Pgrab(pid, Fflag, &gret)) != NULL) { 184 switch (gret) { 193 command, Pgrab_error(gret), (int)pid);
|
/illumos-gate/usr/src/cmd/prctl/ |
H A D | prctl.c | 161 static pid_t regrab_process(pid_t pid, pr_info_handle_t *p, int, int *gret); 163 pr_info_handle_t *p, int, int *gret); 164 static int grab_process(pr_info_handle_t *p, int *gret); 221 int gret; local 676 gret = 0; 719 search_type, &p, arg_priv, &gret)) < 0) { 760 &p, arg_priv, &gret); 829 &p, arg_priv, &gret); 953 &p, arg_priv, &gret); 1003 gret 1977 regrab_process(pid_t pid, pr_info_handle_t *p, int priv, int *gret) argument 2027 grab_process_by_id(char *idname, rctl_entity_t type, pr_info_handle_t *p, int priv, int *gret) argument 2257 grab_process(pr_info_handle_t *p, int *gret) argument [all...] |
/illumos-gate/usr/src/cmd/ptools/pargs/ |
H A D | pargs.c | 1354 int gret, r; local 1384 &gret) == -1) { 1386 command, arg, Pgrab_error(gret)); 1414 &gret)) == NULL) { 1416 command, arg, Pgrab_error(gret));
|