Pgetauxvec
—
obtain process auxiliary vector
Process Control Library (libproc, -lproc)
#include
<libproc.h>
const auxv_t *
Pgetauxvec
(
struct
ps_prochandle *P);
The
Pgetauxvec
() function returns a pointer
to a copy of the auxiliary vector for the process handle
P. If the process handle does not represent
an actively running process or the auxiliary vector could not be found, then
it instead returns an empty auxiliary vector. The definitions of the
auxv_t may be found in
<sys/auxv.h>
.
The returned auxiliary vector should not be used across any subsequent calls to
libproc(3LIB).
Upon successful completion, the
Pgetauxvec
()
function always returns a pointer to an auxiliary vector.
Uncommitted
See
LOCKING in
libproc(3LIB).
libproc(3LIB),
Pgetauxval(3PROC),
proc(4)