From a4590809bd150faccc70a840593e64de657a20d1 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 21 Nov 2010 06:39:03 +0100 Subject: [PATCH] pread.2: Add notes on pread64() and pwrite64() See https://bugzilla.kernel.org/show_bug.cgi?id=23072 Reported-by: Eugene Kapun Signed-off-by: Michael Kerrisk --- man2/pread.2 | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/man2/pread.2 b/man2/pread.2 index 1765e6ca2..3f341fbcc 100644 --- a/man2/pread.2 +++ b/man2/pread.2 @@ -20,7 +20,7 @@ .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" -.TH PREAD 2 2010-11-16 "Linux" "Linux Programmer's Manual" +.TH PREAD 2 2010-11-21 "Linux" "Linux Programmer's Manual" .SH NAME pread, pwrite \- read from or write to a file descriptor at a given offset .SH SYNOPSIS @@ -112,6 +112,22 @@ C library support (including emulation using on older kernels without the system calls) was added in glibc 2.1. .SH "CONFORMING TO" POSIX.1-2001. +.SH NOTES +On Linux, the underlying system calls were renamed +in kernel 2.6: +.BR pread () +became +.BR pread64 (), +and +.BR pwrite () +became +.BR pwrite64 (), +The system call numbers remained the same. +The glibc +.BR pread () +and +.BR pwrite () +wrapper functions transparently deal with the change. .SH "SEE ALSO" .BR lseek (2), .BR read (2),