]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/man2/posix_fadvise.2: Consistency fix (len => size)
authorAlejandro Colomar <alx@kernel.org>
Tue, 25 Mar 2025 00:45:01 +0000 (01:45 +0100)
committerAlejandro Colomar <alx@kernel.org>
Tue, 25 Mar 2025 00:45:51 +0000 (01:45 +0100)
Fixes: 18e7c4597c4e (2024-11-17; "man/: Terminology consistency reforms (n, size, length)")
Closes: <https://bugzilla.kernel.org/show_bug.cgi?id=219921>
Reported-by: Paul Pluzhnikov <ppluzhnikov@google.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man2/posix_fadvise.2

index c7a42baa9564b0823e334d479d288da478fcc928..0c7209a5dc6424bd009f96cc537738b385e3569a 100644 (file)
@@ -38,8 +38,8 @@ file data in a specific pattern in the future, thus allowing the kernel
 to perform appropriate optimizations.
 .P
 The \fIadvice\fP applies to a (not necessarily existent) region starting
-at \fIoffset\fP and extending for \fIlen\fP bytes (or until the end of
-the file if \fIlen\fP is 0) within the file referred to by \fIfd\fP.
+at \fIoffset\fP and extending for \fIsize\fP bytes (or until the end of
+the file if \fIsize\fP is 0) within the file referred to by \fIfd\fP.
 The \fIadvice\fP is not binding;
 it merely constitutes an expectation on behalf of
 the application.
@@ -148,7 +148,7 @@ The underlying system call is called
 (or, on some architectures,
 .BR fadvise64_64 ());
 the difference between the two is that the former system call
-assumes that the type of the \fIlen\fP argument is \fIsize_t\fP,
+assumes that the type of the \fIsize\fP argument is \fIsize_t\fP,
 while the latter expects \fIloff_t\fP there.
 .SS Architecture-specific variants
 Some architectures require