PR_GET_AUXV(2const) PR_GET_AUXV(2const)

PR_GET_AUXV - get the auxiliary vector

Standard C library (libc, -lc)

#include <linux/prctl.h>  /* Definition of PR_* constants */
#include <sys/prctl.h>
int prctl(PR_GET_AUXV, void auxv[.size], unsigned long size, 0L, 0L);

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.

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.

auxv is an invalid address.

Linux.

Linux 6.4.

prctl(2)

2024-06-01 Linux man-pages 6.9.1