Debian Codegraph @

upstream/debian-unstable/man2/PR_GET_AUXV.2const

raw
1 .\" Copyright, the authors of the Linux man-pages project
2 .\"
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
4 .\"
5 .TH PR_GET_AUXV 2const 2025-06-28 "Linux man-pages 6.18"
6 .SH NAME
7 PR_GET_AUXV
8 \-
9 get the auxiliary vector
10 .SH LIBRARY
11 Standard C library
12 .RI ( libc ,\~ \-lc )
13 .SH SYNOPSIS
14 .nf
15 .BR "#include <linux/prctl.h>" " /* Definition of " PR_* " constants */"
16 .B #include <sys/prctl.h>
17 .P
18 .BR "int prctl(" "size_t size;"
19 .BI " PR_GET_AUXV, void " auxv [ size "], unsigned long " size ", 0L, 0L);"
20 .fi
21 .SH DESCRIPTION
22 Get the auxiliary vector (auxv) into the buffer pointed to by
23 .IR auxv ,
24 whose size is given by
25 .IR size .
26 .P
27 If the buffer is not long enough for the full auxiliary vector,
28 the copy will be truncated.
29 .SH RETURN VALUE
30 On success,
31 this call returns
32 the full size of the auxiliary vector.
33 On error, \-1 is returned, and
34 .I errno
35 is set to indicate the error.
36 .SH ERRORS
37 .TP
38 .B EFAULT
39 .I auxv
40 is an invalid address.
41 .SH STANDARDS
42 Linux.
43 .SH HISTORY
44 Linux 6.4.
45 .SH SEE ALSO
46 .BR prctl (2)