—
Options · 1
| EFAULT | auxv is an invalid address. |
NAME
PR_GET_AUXV - get the auxiliary vector
LIBRARY
Standard C library (libc, -lc)
SYNOPSIS
bash
#include <linux/prctl.h>\n /* Definition of \nPR_*\n constants */
\n#include <sys/prctl.h>bash
int prctl(PR_GET_AUXV, void \nauxv\n[.\nsize\n], unsigned long \nsize\n, 0L, 0L);DESCRIPTION
Get the auxiliary vector (auxv) into the buffer pointed to by auxv, whose size is given by size.
If the buffer is not long enough for the full auxiliary vector, the copy will be truncated.
RETURN VALUE
On success, this call returns the full size of the auxiliary vector. On error, -1 is returned, and errno is set to indicate the error.
ERRORS
- EFAULT
auxv is an invalid address.
STANDARDS
Linux.
HISTORY
Linux 6.4.
SEE ALSO
prctl(2)