~ubuntu-branches/ubuntu/saucy/manpages/saucy

« back to all changes in this revision

Viewing changes to man2/pread.2

  • Committer: Package Import Robot
  • Author(s): Loïc Minier
  • Date: 2011-10-17 13:06:22 UTC
  • mfrom: (1.1.46 upstream) (2.2.11 sid)
  • Revision ID: package-import@ubuntu.com-20111017130622-rbdw3julnma2baqu
Tags: 3.32-0.2ubuntu1
* Merge from Debian testing/unstable; remaining changes:
  - ptrace.2, prctl.2: document Ubuntu-specific PTRACE_ATTACH,
    PR_SET_PTRACER behavior.
* Keep Debian's glibc-doc version in the Replaces as it's satisfactory for
  upgrades from natty and lucid.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
.\" Formatted or processed versions of this manual, if unaccompanied by
21
21
.\" the source, must acknowledge the copyright and authors of this work.
22
22
.\"
23
 
.TH PREAD 2 2010-09-20 "Linux" "Linux Programmer's Manual"
 
23
.TH PREAD 2 2010-11-21 "Linux" "Linux Programmer's Manual"
24
24
.SH NAME
25
25
pread, pwrite \- read from or write to a file descriptor at a given offset
26
26
.SH SYNOPSIS
42
42
.BR pread (),
43
43
.BR pwrite ():
44
44
.RS 4
45
 
.TP 4
46
 
Since glibc 2.12:
47
 
_XOPEN_SOURCE\ >=\ 500 || _POSIX_C_SOURCE\ >=\ 200809L
48
 
.TP
49
 
Before glibc 2.12:
50
45
_XOPEN_SOURCE\ >=\ 500
 
46
.br
 
47
|| /* Since glibc 2.12: */ _POSIX_C_SOURCE\ >=\ 200809L
51
48
.RE
52
49
.ad
53
50
.PD
115
112
on older kernels without the system calls) was added in glibc 2.1.
116
113
.SH "CONFORMING TO"
117
114
POSIX.1-2001.
 
115
.SH NOTES
 
116
On Linux, the underlying system calls were renamed
 
117
in kernel 2.6:
 
118
.BR pread ()
 
119
became
 
120
.BR pread64 (),
 
121
and
 
122
.BR pwrite ()
 
123
became
 
124
.BR pwrite64 ().
 
125
The system call numbers remained the same.
 
126
The glibc
 
127
.BR pread ()
 
128
and
 
129
.BR pwrite ()
 
130
wrapper functions transparently deal with the change.
118
131
.SH "SEE ALSO"
119
132
.BR lseek (2),
120
133
.BR read (2),
121
 
.BR write (2),
122
 
.BR feature_test_macros (7)
 
134
.BR readv (2),
 
135
.BR write (2)
123
136
.SH COLOPHON
124
 
This page is part of release 3.27 of the Linux
 
137
This page is part of release 3.32 of the Linux
125
138
.I man-pages
126
139
project.
127
140
A description of the project,