read.2: Clarify details for seekable files

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2013-02-12 22:25:08 +01:00
parent 45e97e2ac5
commit dc0e450b3e
1 changed files with 9 additions and 1 deletions

View File

@ -49,7 +49,15 @@ bytes from file descriptor
.I fd
into the buffer starting at
.IR buf .
.PP
On files that support seeking,
the read operation commences at the current file offset,
and the file offset is incremented by the number of bytes read.
If the current file offset is at or past the end of file,
no bytes are read, and
.BR read ()
returns zero.
If
.I count
is zero,