Debian Codegraph @

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

raw
1 .\" Copyright 2023, Josh Triplett <[email protected]>
2 .\" Copyright 2024, Alejandro Colomar <[email protected]>
3 .\"
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .\"
6 .TH PR_GET_AUXV 2const 2024-06-01 "Linux man-pages 6.9.1"
7 .SH NAME
8 PR_GET_AUXV
9 \-
10 get the auxiliary vector
11 .SH LIBRARY
12 Standard C library
13 .RI ( libc ", " \-lc )
14 .SH SYNOPSIS
15 .nf
16 .BR "#include <linux/prctl.h>" " /* Definition of " PR_* " constants */"
17 .B #include <sys/prctl.h>
18 .P
19 .BI "int prctl(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)