summaryrefslogtreecommitdiffstats
path: root/man2/readv.2
diff options
context:
space:
mode:
Diffstat (limited to 'man2/readv.2')
-rw-r--r--man2/readv.240
1 files changed, 20 insertions, 20 deletions
diff --git a/man2/readv.2 b/man2/readv.2
index d39f2b9b9..0d7927874 100644
--- a/man2/readv.2
+++ b/man2/readv.2
@@ -36,7 +36,7 @@ Standard C library
.P
.RS -4
Feature Test Macro Requirements for glibc (see
-.BR feature_test_macros (7)):
+.MR feature_test_macros 7 ):
.RE
.P
.BR preadv (),
@@ -74,18 +74,18 @@ points to an array of
.I iovec
structures,
described in
-.BR iovec (3type).
+.MR iovec 3type .
.P
The
.BR readv ()
system call works just like
-.BR read (2)
+.MR read 2
except that multiple buffers are filled.
.P
The
.BR writev ()
system call works just like
-.BR write (2)
+.MR write 2
except that multiple buffers are written out.
.P
Buffers are processed in array order.
@@ -122,14 +122,14 @@ is guaranteed to read a contiguous block of data from the file,
regardless of read operations performed in other threads or processes
that have file descriptors referring to the same open file description
(see
-.BR open (2)).
+.MR open 2 ).
.SS preadv() and pwritev()
The
.BR preadv ()
system call combines the functionality of
.BR readv ()
and
-.BR pread (2).
+.MR pread 2 .
It performs the same task as
.BR readv (),
but adds a fourth argument,
@@ -142,7 +142,7 @@ The
system call combines the functionality of
.BR writev ()
and
-.BR pwrite (2).
+.MR pwrite 2 .
It performs the same task as
.BR writev (),
but adds a fourth argument,
@@ -179,7 +179,7 @@ argument contains a bitwise OR of zero or more of the following flags:
.\" commit e864f39569f4092c2b2bc72c773b6e486c7e3bd9
Provide a per-write equivalent of the
.B O_DSYNC
-.BR open (2)
+.MR open 2
flag.
This flag is meaningful only for
.BR pwritev2 (),
@@ -197,7 +197,7 @@ flag.)
.\" commit e864f39569f4092c2b2bc72c773b6e486c7e3bd9
Provide a per-write equivalent of the
.B O_SYNC
-.BR open (2)
+.MR open 2
flag.
This flag is meaningful only for
.BR pwritev2 (),
@@ -225,7 +225,7 @@ Currently, this flag is meaningful only for
.\" commit e1fc742e14e01d84d9693c4aca4ab23da65811fb
Provide a per-write equivalent of the
.B O_APPEND
-.BR open (2)
+.MR open 2
flag.
This flag is meaningful only for
.BR pwritev2 (),
@@ -252,16 +252,16 @@ return the number of bytes written.
.P
Note that it is not an error for a successful call to transfer fewer bytes
than requested (see
-.BR read (2)
+.MR read 2
and
-.BR write (2)).
+.MR write 2 ).
.P
On error, \-1 is returned, and \fIerrno\fP is set to indicate the error.
.SH ERRORS
The errors are as given for
-.BR read (2)
+.MR read 2
and
-.BR write (2).
+.MR write 2 .
Furthermore,
.BR preadv (),
.BR preadv2 (),
@@ -269,7 +269,7 @@ Furthermore,
and
.BR pwritev2 ()
can also fail for the same reasons as
-.BR lseek (2).
+.MR lseek 2 .
Additionally, the following errors are defined:
.TP
.B EINVAL
@@ -355,7 +355,7 @@ the wrapper function allocated a temporary buffer large enough
for all of the items specified by
.IR iov ,
passed that buffer in a call to
-.BR read (2),
+.MR read 2 ,
copied data from the buffer to the locations specified by the
.I iov_base
fields of the elements of
@@ -364,7 +364,7 @@ and then freed the buffer.
The wrapper function for
.BR writev ()
performed the analogous task using a temporary buffer and a call to
-.BR write (2).
+.MR write 2 .
.P
The need for this extra effort in the glibc wrapper functions
went away with Linux 2.2 and later.
@@ -422,6 +422,6 @@ nwritten = writev(STDOUT_FILENO, iov, 2);
.EE
.in
.SH SEE ALSO
-.BR pread (2),
-.BR read (2),
-.BR write (2)
+.MR pread 2 ,
+.MR read 2 ,
+.MR write 2