Home
last modified time | relevance | path

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

/titanic_50/usr/src/cmd/ptools/preap/
H A Dpreap.c112 int gret; in reap() local
117 if ((pid = proc_arg_psinfo(arg, PR_ARG_PIDS, &psinfo, &gret)) == -1) { in reap()
119 command, arg, Pgrab_error(gret)); in reap()
140 if (proc_usage(pid, &usage, &gret) == 0) { in reap()
144 command, (int)pid, Pgrab_error(gret)); in reap()
155 if ((Pr = Pgrab(ppid, Fflag | PGRAB_NOSTOP, &gret)) == NULL) { in reap()
157 (int)ppid, Pgrab_error(gret)); in reap()
/titanic_50/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()
/titanic_50/usr/src/cmd/plimit/
H A Dplimit.c168 int gret; in main() local
174 &psinfo, &gret)) == -1) { in main()
176 command, arg, Pgrab_error(gret)); in main()
178 } else if ((Pr = Pgrab(pid, Fflag, &gret)) != NULL) { in main()
198 if ((gret == G_SYS || gret == G_SELF) && !set) { in main()
202 if (gret == G_SYS) in main()
209 command, Pgrab_error(gret), (int)pid); in main()
/titanic_50/usr/src/cmd/prctl/
H A Dprctl.c160 static pid_t regrab_process(pid_t pid, pr_info_handle_t *p, int, int *gret);
162 pr_info_handle_t *p, int, int *gret);
163 static int grab_process(pr_info_handle_t *p, int *gret);
220 int gret; in main() local
675 gret = 0; in main()
718 search_type, &p, arg_priv, &gret)) < 0) { in main()
759 &p, arg_priv, &gret); in main()
828 &p, arg_priv, &gret); in main()
952 &p, arg_priv, &gret); in main()
1002 gret = G_SYS; in main()
[all …]
/titanic_50/usr/src/cmd/ppgsz/
H A Dppgsz.c326 int gret; in main() local
332 pid = proc_arg_psinfo(arg, PR_ARG_PIDS, &psinfo, &gret); in main()
336 " %s\n", command, arg, Pgrab_error(gret)); in main()
343 } else if ((Pr = Pgrab(pid, Fflag, &gret)) != NULL) { in main()
353 switch (gret) { in main()
373 command, Pgrab_error(gret), (int)pid); in main()
/titanic_50/usr/src/cmd/ptools/pfiles/
H A Dpfiles.c135 int gret; in main() local
143 &psinfo, &gret)) == -1) { in main()
146 Fflag, &gret, NULL)) == NULL) { in main()
149 command, arg, Pgrab_error(gret)); in main()
154 &gret) < 0) { in main()
157 command, arg, Pgrab_error(gret)); in main()
168 } else if ((Pr = Pgrab(pid, Fflag, &gret)) != NULL) { in main()
184 switch (gret) { in main()
193 command, Pgrab_error(gret), (int)pid); in main()
/titanic_50/usr/src/cmd/newtask/
H A Dnewtask.c329 int error = 0, gret; in update_running_proc() local
356 if ((p = proc_arg_grab(procname, PR_ARG_PIDS, 0, &gret)) == NULL) { in update_running_proc()
358 procname, Pgrab_error(gret)); in update_running_proc()
447 if ((p = proc_arg_grab(procname, PR_ARG_PIDS, 0, &gret)) == NULL) { in update_running_proc()
449 procname, Pgrab_error(gret)); in update_running_proc()
/titanic_50/usr/src/cmd/ptools/pargs/
H A Dpargs.c1361 int gret, r; in main() local
1391 &gret) == -1) { in main()
1393 command, arg, Pgrab_error(gret)); in main()
1421 &gret)) == NULL) { in main()
1423 command, arg, Pgrab_error(gret)); in main()