diff options
| author | Alejandro Colomar <alx@kernel.org> | 2024-11-17 18:47:53 +0100 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2024-11-17 21:51:23 +0100 |
| commit | 18e7c4597c4e72fa5210c7887273e363c456c9ee (patch) | |
| tree | 97cfd22e731a4c859ae71783d70943ff72e6cb60 /man/man2/mprotect.2 | |
| parent | 8fc6fdd8291d906e58a175b5e1b20da680aaeb4a (diff) | |
| download | man-pages-18e7c4597c4e.tar.gz | |
man/: Terminology consistency reforms (n, size, length)
Use 'length' for the lenght of a string.
Use 'n' for the number of elements.
Use 'size' for the number of bytes. (And in wide-character string
functions, 'size' also refers to the number of wide characters.)
The change is quite large, and I might have made some mistakes.
But overall, this should improve consistency in use of these terms.
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man/man2/mprotect.2')
| -rw-r--r-- | man/man2/mprotect.2 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/man/man2/mprotect.2 b/man/man2/mprotect.2 index fdc61d9590..5a216be87d 100644 --- a/man/man2/mprotect.2 +++ b/man/man2/mprotect.2 @@ -20,18 +20,18 @@ Standard C library .nf .B #include <sys/mman.h> .P -.BI "int mprotect(void " addr [. len "], size_t " len ", int " prot ); +.BI "int mprotect(void " addr [. size "], size_t " size ", int " prot ); .P .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include <sys/mman.h> .P -.BI "int pkey_mprotect(void " addr [. len "], size_t " len ", int " prot ", int " pkey ");" +.BI "int pkey_mprotect(void " addr [. size "], size_t " size ", int " prot ", int " pkey ");" .fi .SH DESCRIPTION .BR mprotect () changes the access protections for the calling process's memory pages containing any part of the address range in the -interval [\fIaddr\fP,\ \fIaddr\fP+\fIlen\fP\-1]. +interval [\fIaddr\fP,\ \fIaddr\fP+\fIsize\fP\-1]. .I addr must be aligned to a page boundary. .P @@ -107,7 +107,7 @@ Like changes the protection on the pages specified by .I addr and -.IR len . +.IR size . The .I pkey argument specifies the protection key (see @@ -173,7 +173,7 @@ Internal kernel structures could not be allocated. .B ENOMEM Addresses in the range .RI [ addr , -.IR addr + len \-1] +.IR addr + size \-1] are invalid for the address space of the process, or specify one or more pages that are not mapped. (Before Linux 2.4.19, the error |
