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

« back to all changes in this revision

Viewing changes to man2/pread.2

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2010-11-17 16:35:58 UTC
  • mfrom: (1.1.45 upstream) (2.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20101117163558-9h3ho5jumqm3rdmd
Tags: 3.27-1ubuntu1
* Merge from Debian unstable; remaining changes:
  - ptrace.2, prctl.2: document Ubuntu-specific PTRACE_ATTACH,
    PR_SET_PTRACER behavior.

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 2008-12-03 "Linux" "Linux Programmer's Manual"
 
23
.TH PREAD 2 2010-09-20 "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
27
 
.B #define _XOPEN_SOURCE 500
28
 
.sp
29
27
.B #include <unistd.h>
30
28
.sp
31
29
.BI "ssize_t pread(int " fd ", void *" buf ", size_t " count \
33
31
.sp
34
32
.BI "ssize_t pwrite(int " fd ", const void *" buf ", size_t " count \
35
33
", off_t " offset );
 
34
.sp
 
35
.in -4n
 
36
Feature Test Macro Requirements for glibc (see
 
37
.BR feature_test_macros (7)):
 
38
.in
 
39
.PD 0
 
40
.ad l
 
41
.sp
 
42
.BR pread (),
 
43
.BR pwrite ():
 
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
_XOPEN_SOURCE\ >=\ 500
 
51
.RE
 
52
.ad
 
53
.PD
36
54
.SH DESCRIPTION
37
55
.BR pread ()
38
56
reads up to
103
121
.BR write (2),
104
122
.BR feature_test_macros (7)
105
123
.SH COLOPHON
106
 
This page is part of release 3.26 of the Linux
 
124
This page is part of release 3.27 of the Linux
107
125
.I man-pages
108
126
project.
109
127
A description of the project,