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-LEVEL
MT-Safe
libproc(3LIB), proc(5)
illumos November 27, 2023 illumos
NAME
proc_get_auxv - get process auxiliary vector
LIBRARY
Process Control Library (libproc, -lproc)
SYNOPSIS
#include <libproc.h>
int
proc_get_auxv(pid_t proc, auxv_t *pauxv, int naux);
DESCRIPTION
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.
RETURN VALUES
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.
INTERFACE STABILITY
Uncommitted
MT-LEVEL
MT-Safe
SEE ALSO
libproc(3LIB), proc(5)
illumos November 27, 2023 illumos