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

proc_get_auxv
get process auxiliary vector

Process Control Library (libproc, -lproc)
#include <libproc.h>

int
proc_get_auxv(pid_t proc, auxv_t *pauxv, int naux);

The proc_get_auxv() function is a convenient way to read the /proc auxv file for the process proc. Up to naux vectors will be read and written into pauxv.

Upon successful completion, the proc_get_auxv() function returns the number of auxiliary vectors read into pauxv. Otherwise, -1 is returned to indicate an error occurred.

Uncommitted

MT-Safe

libproc(3LIB), proc(5)
May 11, 2016 OmniOS