Home
last modified time | relevance | path

Searched refs:gret (Results 1 – 8 of 8) sorted by relevance

/illumos-gate/usr/src/cmd/ptools/preap/
H A Dpreap.c110 int gret; in reap() local
115 if ((pid = proc_arg_psinfo(arg, PR_ARG_PIDS, &psinfo, &gret)) == -1) { in reap()
117 command, arg, Pgrab_error(gret)); in reap()
138 if (proc_usage(pid, &usage, &gret) == 0) { in reap()
142 command, (int)pid, Pgrab_error(gret)); in reap()
153 if ((Pr = Pgrab(ppid, Fflag | PGRAB_NOSTOP, &gret)) == NULL) { in reap()
155 (int)ppid, Pgrab_error(gret)); in reap()
/illumos-gate/usr/src/cmd/ptools/ptime/
H A Dptime.c69 int gret; in ptime_pid() local
72 Fflag | PGRAB_RDONLY, &gret)) == NULL) { in ptime_pid()
74 command, pidstr, Pgrab_error(gret)); in ptime_pid()
92 int gret; in main() local
151 if ((Pr = Pcreate(argv[0], &argv[0], &gret, NULL, 0)) == NULL) { in main()
153 command, argv[0], Pcreate_error(gret)); in main()
/illumos-gate/usr/src/cmd/prctl/
H A Dprctl.c161 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; in main() local
676 gret = 0; in main()
719 search_type, &p, arg_priv, &gret)) < 0) { in main()
760 &p, arg_priv, &gret); in main()
829 &p, arg_priv, &gret); in main()
953 &p, arg_priv, &gret); in main()
1003 gret = G_SYS; in main()
[all …]
/illumos-gate/usr/src/cmd/plimit/
H A Dplimit.c169 int gret; in main() local
175 &psinfo, &gret)) == -1) { in main()
177 command, arg, Pgrab_error(gret)); in main()
179 } else if ((Pr = Pgrab(pid, Fflag, &gret)) != NULL) { in main()
199 if ((gret == G_SYS || gret == G_SELF) && !set) { in main()
203 if (gret == G_SYS) in main()
210 command, Pgrab_error(gret), (int)pid); in main()
/illumos-gate/usr/src/cmd/ptools/pfiles/
H A Dpfiles.c128 int gret; in main() local
136 &psinfo, &gret)) == -1) { in main()
139 Fflag, &gret, NULL)) == NULL) { in main()
142 command, arg, Pgrab_error(gret)); in main()
147 &gret) < 0) { in main()
150 command, arg, Pgrab_error(gret)); in main()
161 } else if ((Pr = Pgrab(pid, Fflag, &gret)) != NULL) { in main()
177 switch (gret) { in main()
186 command, Pgrab_error(gret), (int)pid); in main()
/illumos-gate/usr/src/cmd/ppgsz/
H A Dppgsz.c324 int gret; in main() local
330 pid = proc_arg_psinfo(arg, PR_ARG_PIDS, &psinfo, &gret); in main()
334 " %s\n", command, arg, Pgrab_error(gret)); in main()
341 } else if ((Pr = Pgrab(pid, Fflag, &gret)) != NULL) { in main()
351 switch (gret) { in main()
371 command, Pgrab_error(gret), (int)pid); in main()
/illumos-gate/usr/src/cmd/newtask/
H A Dnewtask.c330 int error = 0, gret; in update_running_proc() local
357 if ((p = proc_arg_grab(procname, PR_ARG_PIDS, 0, &gret)) == NULL) { in update_running_proc()
359 procname, Pgrab_error(gret)); in update_running_proc()
448 if ((p = proc_arg_grab(procname, PR_ARG_PIDS, 0, &gret)) == NULL) { in update_running_proc()
450 procname, Pgrab_error(gret)); in update_running_proc()
/illumos-gate/usr/src/cmd/ptools/pargs/
H A Dpargs.c1407 int gret, r; in main() local
1437 &gret) == -1) { in main()
1439 command, arg, Pgrab_error(gret)); in main()
1467 &gret)) == NULL) { in main()
1469 command, arg, Pgrab_error(gret)); in main()