| 1 |
.\" Copyright, Guillem Jover <[email protected]> |
| 2 |
.\" Copyright 2006-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_GET_UNALIGN 2const 2026-02-08 "Linux man-pages 6.18" |
| 8 |
.SH NAME |
| 9 |
PR_GET_UNALIGN |
| 10 |
\- |
| 11 |
get unaligned access control bits |
| 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 |
.BI "int prctl(PR_GET_UNALIGN, unsigned int *" bits ); |
| 21 |
.fi |
| 22 |
.SH DESCRIPTION |
| 23 |
Return unaligned access control bits, in the location pointed to by |
| 24 |
.IR bits . |
| 25 |
.SH RETURN VALUE |
| 26 |
On success, |
| 27 |
0 is returned. |
| 28 |
On error, \-1 is returned, and |
| 29 |
.I errno |
| 30 |
is set to indicate the error. |
| 31 |
.SH ERRORS |
| 32 |
.TP |
| 33 |
.B EFAULT |
| 34 |
.I bits |
| 35 |
is an invalid address. |
| 36 |
.SH STANDARDS |
| 37 |
Linux. |
| 38 |
.SH HISTORY |
| 39 |
See |
| 40 |
.BR PR_SET_UNALIGN (2const). |
| 41 |
.SH SEE ALSO |
| 42 |
.BR prctl (2), |
| 43 |
.BR PR_SET_UNALIGN (2const) |