Lines Matching refs:oflag
118 open_error(int oflag)
120 if ((oflag & PR_ARG_ANY) == PR_ARG_PIDS)
123 if ((oflag & PR_ARG_ANY) == PR_ARG_CORES)
130 proc_grab_common(const char *arg, const char *path, int oflag, int gflag,
149 if ((oflag & PR_ARG_PIDS) &&
174 if ((oflag & PR_ARG_CORES) &&
199 if ((oflag & PR_ARG_PIDS) && (fd = open_psinfo(arg, perr)) != -1) {
216 if ((oflag & PR_ARG_CORES) && (fd = open_core(arg, perr)) != -1) {
237 *perr = open_error(oflag);
243 proc_arg_xgrab(const char *arg, const char *path, int oflag, int gflag,
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)