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/posix_fadvise.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/posix_fadvise.2')
| -rw-r--r-- | man/man2/posix_fadvise.2 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/man/man2/posix_fadvise.2 b/man/man2/posix_fadvise.2 index ed40b0c0d3..0be779ab4a 100644 --- a/man/man2/posix_fadvise.2 +++ b/man/man2/posix_fadvise.2 @@ -16,7 +16,7 @@ Standard C library .nf .B #include <fcntl.h> .P -.BI "int posix_fadvise(int " fd ", off_t " offset ", off_t " len \ +.BI "int posix_fadvise(int " fd ", off_t " offset ", off_t " size \ ", int " advice ");" .fi .P @@ -92,7 +92,7 @@ It is preferable to preserve needed data than discard unneeded data. If the application requires that data be considered for discarding, then .I offset and -.I len +.I size must be page-aligned. .IP The implementation @@ -165,7 +165,7 @@ For example, since Linux 2.6.14, ARM has the following system call: .in +4n .EX .BI "long arm_fadvise64_64(int " fd ", int " advice , -.BI " loff_t " offset ", loff_t " len ); +.BI " loff_t " offset ", loff_t " size ); .EE .in .P @@ -195,7 +195,7 @@ depending on the setting of the configuration option. .P The type of the -.I len +.I size argument was changed from .I size_t to @@ -215,7 +215,7 @@ and then applying to the mapping. .SH BUGS Before Linux 2.6.6, if -.I len +.I size was specified as 0, then this was interpreted literally as "zero bytes", rather than as meaning "all bytes through to the end of the file". .SH SEE ALSO |
