summaryrefslogtreecommitdiffstats
path: root/man2/read.2
diff options
context:
space:
mode:
Diffstat (limited to 'man2/read.2')
-rw-r--r--man2/read.240
1 files changed, 20 insertions, 20 deletions
diff --git a/man2/read.2 b/man2/read.2
index 2b92597c8..b835d25d4 100644
--- a/man2/read.2
+++ b/man2/read.2
@@ -88,7 +88,7 @@ refers to a file other than a socket and has been marked nonblocking
.RB ( O_NONBLOCK ),
and the read would block.
See
-.BR open (2)
+.MR open 2
for further details on the
.B O_NONBLOCK
flag.
@@ -114,7 +114,7 @@ is outside your accessible address space.
.TP
.B EINTR
The call was interrupted by a signal before any data was read; see
-.BR signal (7).
+.MR signal 7 .
.TP
.B EINVAL
.I fd
@@ -130,11 +130,11 @@ or the file offset is not suitably aligned.
.B EINVAL
.I fd
was created via a call to
-.BR timerfd_create (2)
+.MR timerfd_create 2
and the wrong size buffer was given to
.BR read ();
see
-.BR timerfd_create (2)
+.MR timerfd_create 2
for further information.
.TP
.B EIO
@@ -154,7 +154,7 @@ out on the file descriptor and this lock has been lost.
See the
.I "Lost locks"
section of
-.BR fcntl (2)
+.MR fcntl 2
for further details.
.TP
.B EISDIR
@@ -204,17 +204,17 @@ operate on regular files or symbolic links: ...
Among the APIs subsequently listed are
.BR read ()
and
-.BR readv (2).
+.MR readv 2 .
And among the effects that should be atomic across threads (and processes)
are updates of the file offset.
However, before Linux 3.14,
this was not the case: if two processes that share
an open file description (see
-.BR open (2))
+.MR open 2 )
perform a
.BR read ()
(or
-.BR readv (2))
+.MR readv 2 )
at the same time, then the I/O operations were not atomic
with respect updating the file offset,
with the result that the reads in the two processes
@@ -231,15 +231,15 @@ This problem was fixed in Linux 3.14.
.\"
.\" vfs: atomic f_pos accesses as per POSIX
.SH SEE ALSO
-.BR close (2),
-.BR fcntl (2),
-.BR ioctl (2),
-.BR lseek (2),
-.BR open (2),
-.BR pread (2),
-.BR readdir (2),
-.BR readlink (2),
-.BR readv (2),
-.BR select (2),
-.BR write (2),
-.BR fread (3)
+.MR close 2 ,
+.MR fcntl 2 ,
+.MR ioctl 2 ,
+.MR lseek 2 ,
+.MR open 2 ,
+.MR pread 2 ,
+.MR readdir 2 ,
+.MR readlink 2 ,
+.MR readv 2 ,
+.MR select 2 ,
+.MR write 2 ,
+.MR fread 3