diff options
author | Michael Kerrisk <mtk.manpages@gmail.com> | 2013-02-12 22:25:08 +0100 |
---|---|---|
committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2013-02-12 22:25:08 +0100 |
commit | dc0e450b3ef13d10a476ea3c1be73a09691e9998 (patch) | |
tree | 2042ae85a54671f99e6dfe5bbb48a7755c56a41f | |
parent | 45e97e2ac5b284a4e723ecaa7f9033f18f277bcf (diff) |
read.2: Clarify details for seekable files
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r-- | man2/read.2 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/man2/read.2 b/man2/read.2 index b1e033c4..b406b3f5 100644 --- a/man2/read.2 +++ b/man2/read.2 @@ -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, |