1 PROC_ARG_GRAB(3PROC) Process Control Library Functions PROC_ARG_GRAB(3PROC)
2
3 NAME
4 proc_arg_grab, proc_arg_xrgab - process grabbing utility function
5
6 SYNOPSIS
7 Process Control Library (libproc, -lproc)
8 #include <libproc.h>
9
10 struct ps_prochandle
11 proc_arg_grag(const char *arg, int oflag, int gflag, int *perr);
12
13 struct ps_prochandle
14 proc_arg_xgrab(const char *arg, const char *path, int oflag, int gflag,
15 int *perr, const char **lwps);
16
17 DESCRIPTION
18 The proc_arg_grab() and proc_arg_xgrab() functions are utility functions
19 which process arguments pointing to a currently active process or a core
20 file and returns a process handle to it.
21
22 The string arg contains the name of something to try and open. How it is
23 interpreted depends on the value of oflag. The following values may be
24 passed in as a bitwise-exclusive-OR for oflag:
64 G_NOCORE PR_ARG_CORES was set and no core file could be found
65 corresponding to arg.
66
67 G_NOPROC PR_ARG_PIDS was set and no process could be found
68 corresponding to arg.
69
70 G_NOPROCORCORE Both PR_ARG_CORES and PR_ARG_NOPROC were set and no
71 process or core file could be found corresponding to
72 arg.
73
74 INTERFACE STABILITY
75 Uncommitted
76
77 MT-LEVEL
78 MT-Safe
79
80 SEE ALSO
81 libproc(3LIB), Pgrab(3PROC), Pgrab_core(3PROC), Prelease(3PROC),
82 proc_lwp_range_valid(3PROC), proc(4)
83
84 illumos May 11, 2016 illumos
|
1 PROC_ARG_GRAB(3PROC) Process Control Library Functions PROC_ARG_GRAB(3PROC)
2
3 NAME
4 proc_arg_grab, proc_arg_xgrab - process grabbing utility function
5
6 SYNOPSIS
7 Process Control Library (libproc, -lproc)
8 #include <libproc.h>
9
10 struct ps_prochandle
11 proc_arg_grag(const char *arg, int oflag, int gflag, int *perr);
12
13 struct ps_prochandle
14 proc_arg_xgrab(const char *arg, const char *path, int oflag, int gflag,
15 int *perr, const char **lwps);
16
17 DESCRIPTION
18 The proc_arg_grab() and proc_arg_xgrab() functions are utility functions
19 which process arguments pointing to a currently active process or a core
20 file and returns a process handle to it.
21
22 The string arg contains the name of something to try and open. How it is
23 interpreted depends on the value of oflag. The following values may be
24 passed in as a bitwise-exclusive-OR for oflag:
64 G_NOCORE PR_ARG_CORES was set and no core file could be found
65 corresponding to arg.
66
67 G_NOPROC PR_ARG_PIDS was set and no process could be found
68 corresponding to arg.
69
70 G_NOPROCORCORE Both PR_ARG_CORES and PR_ARG_NOPROC were set and no
71 process or core file could be found corresponding to
72 arg.
73
74 INTERFACE STABILITY
75 Uncommitted
76
77 MT-LEVEL
78 MT-Safe
79
80 SEE ALSO
81 libproc(3LIB), Pgrab(3PROC), Pgrab_core(3PROC), Prelease(3PROC),
82 proc_lwp_range_valid(3PROC), proc(4)
83
84 illumos August 20, 2019 illumos
|