aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2013-06-21 12:30:25 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2013-06-21 12:30:25 +0200
commit2857d3ff8a3390a9f8f474e09740c9dcae9bdd1b (patch)
tree6f3fe60ffa7c2abbf0b95fa1cfdd904ae764a448
parent04aa92829d7cc0b9db1284bd0c0a0c07c9e004ea (diff)
downloadman-pages-2857d3ff8a3390a9f8f474e09740c9dcae9bdd1b.tar.gz
pread.2: pread() and pwrite() are especially useful in multithreaded applications
Reported-by: Марк Коренберг <socketpair@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/pread.210
1 files changed, 9 insertions, 1 deletions
diff --git a/man2/pread.2 b/man2/pread.2
index 1d648b15ef..1972fe8501 100644
--- a/man2/pread.2
+++ b/man2/pread.2
@@ -22,7 +22,7 @@
.\" the source, must acknowledge the copyright and authors of this work.
.\" %%%LICENSE_END
.\"
-.TH PREAD 2 2013-04-01 "Linux" "Linux Programmer's Manual"
+.TH PREAD 2 2013-06-21 "Linux" "Linux Programmer's Manual"
.SH NAME
pread, pwrite \- read from or write to a file descriptor at a given offset
.SH SYNOPSIS
@@ -115,6 +115,14 @@ on older kernels without the system calls) was added in glibc 2.1.
.SH CONFORMING TO
POSIX.1-2001.
.SH NOTES
+The
+.BR pread ()
+and
+.BR pwrite ()
+system calls are especially useful in multithreaded applications.
+They allow multiple threads to perform I/O on the same file descriptor
+without being affected by changes to the file offset by other threads.
+
On Linux, the underlying system calls were renamed
in kernel 2.6:
.BR pread ()