PGETAUXVAL(3PROC) Process Control Library Functions PGETAUXVAL(3PROC)

NAME


Pgetauxval - obtain auxiliary vector value

LIBRARY


Process Control Library (libproc, -lproc)

SYNOPSIS


#include <libproc.h>

int
Pgetauxval(struct ps_prochandle *P, int type);

DESCRIPTION


The Pgetauxval() function looks up the entry type in the auxiliary vector
of the process handle P and returns its value. The type argument should be
the entry of the auxiliary vector. The list of such types may be found in
<sys/auxv.h>.

RETURN VALUES


Upon successful completion, the Pgetauxval() function returns the value of
the auxiliary vector entry type. Otherwise, -1 is returned to indicate
that either the auxiliary vector or the type entry could not be found.

INTERFACE STABILITY


Uncommitted

MT-LEVEL
See LOCKING in libproc(3LIB).

SEE ALSO


libproc(3LIB), Pgetauxvec(3PROC), proc(5)

illumos May 11, 2016 illumos