pread.2: Add notes on pread64() and pwrite64()

See https://bugzilla.kernel.org/show_bug.cgi?id=23072

Reported-by: Eugene Kapun <abacabadabacaba@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2010-11-21 06:39:03 +01:00
parent 0290f43731
commit a4590809bd
1 changed files with 17 additions and 1 deletions

View File

@ -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),