| 1 |
.\" Copyright 2012, Cyrill Gorcunov <[email protected]> |
| 2 |
.\" Copyright 2012-2015, Michael Kerrisk <[email protected]> |
| 3 |
.\" Copyright, the authors of the Linux man-pages project |
| 4 |
.\" |
| 5 |
.\" SPDX-License-Identifier: Linux-man-pages-copyleft |
| 6 |
.\" |
| 7 |
.TH PR_SET_MM_AUXV 2const 2026-02-08 "Linux man-pages 6.18" |
| 8 |
.SH NAME |
| 9 |
PR_SET_MM_AUXV |
| 10 |
\- |
| 11 |
set a new auxiliary vector |
| 12 |
.SH LIBRARY |
| 13 |
Standard C library |
| 14 |
.RI ( libc ,\~ \-lc ) |
| 15 |
.SH SYNOPSIS |
| 16 |
.nf |
| 17 |
.BR "#include <linux/prctl.h>" " /* Definition of " PR_* " constants */" |
| 18 |
.B #include <sys/prctl.h> |
| 19 |
.P |
| 20 |
.B int prctl(PR_SET_MM, PR_SET_MM_AUXV, |
| 21 |
.BI " unsigned long " addr ", unsigned long " size ", 0L);" |
| 22 |
.fi |
| 23 |
.SH DESCRIPTION |
| 24 |
Set a new auxiliary vector. |
| 25 |
.P |
| 26 |
.I addr |
| 27 |
should provide the address of the vector. |
| 28 |
.I size |
| 29 |
is the size of the vector. |
| 30 |
.SH RETURN VALUE |
| 31 |
On success, |
| 32 |
0 is returned. |
| 33 |
On error, \-1 is returned, and |
| 34 |
.I errno |
| 35 |
is set to indicate the error. |
| 36 |
.SH ERRORS |
| 37 |
.TP |
| 38 |
.B EINVAL |
| 39 |
.I addr |
| 40 |
is greater than |
| 41 |
.B TASK_SIZE |
| 42 |
(the limit on the size of the user address space for this architecture). |
| 43 |
.SH STANDARDS |
| 44 |
Linux. |
| 45 |
.SH HISTORY |
| 46 |
Linux 3.5. |
| 47 |
.\" commit fe8c7f5cbf91124987106faa3bdf0c8b955c4cf7 |
| 48 |
.SH SEE ALSO |
| 49 |
.BR prctl (2), |
| 50 |
.BR PR_SET_MM (2const) |