Lines Matching defs:perr
43 open_psinfo(const char *arg, int *perr)
73 *perr = G_PERM;
79 open_core(const char *arg, int *perr)
104 *perr = G_ISAINVAL;
107 *perr = G_PERM;
131 int *perr, const char **lwps, psinfo_t *psp)
139 *perr = 0;
150 (fd = open_psinfo(arg, perr)) != -1) {
157 *perr = G_BADLWPS;
165 perr));
175 (fd = open_core(arg, perr)) != -1) {
179 *perr = G_BADLWPS;
184 dirname(core) : path, perr)) != NULL) {
199 if ((oflag & PR_ARG_PIDS) && (fd = open_psinfo(arg, perr)) != -1) {
206 return (Pgrab(psinfo.pr_pid, gflag, perr));
216 if ((oflag & PR_ARG_CORES) && (fd = open_core(arg, perr)) != -1) {
219 perr)) != NULL) {
236 if (*perr == 0)
237 *perr = open_error(oflag);
244 int *perr, const char **lwps)
246 return (proc_grab_common(arg, path, oflag, gflag, perr, lwps, NULL));
250 proc_arg_grab(const char *arg, int oflag, int gflag, int *perr)
252 return (proc_grab_common(arg, NULL, oflag, gflag, perr, NULL, NULL));
256 proc_arg_psinfo(const char *arg, int oflag, psinfo_t *psp, int *perr)
263 if (proc_grab_common(arg, NULL, oflag, 0, perr, NULL, psp) == NULL)
270 proc_arg_xpsinfo(const char *arg, int oflag, psinfo_t *psp, int *perr,
278 if (proc_grab_common(arg, NULL, oflag, 0, perr, lwps, psp) == NULL)