diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2006-12-04 05:36:13 +0000 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2006-12-04 05:36:13 +0000 |
| commit | 609af441bea99ed57a18115391723e00e082b2cc (patch) | |
| tree | 7058cba988f8791a7436f995304ea73712ae6dce /man2/write.2 | |
| parent | ff929e3b157f43c8ea54d91ce4ac26e2e60e8024 (diff) | |
| download | man-pages-609af441bea99ed57a18115391723e00e082b2cc.tar.gz | |
Clarified discussion of /count == 0/ case.
Diffstat (limited to 'man2/write.2')
| -rw-r--r-- | man2/write.2 | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/man2/write.2 b/man2/write.2 index 46f3c25214..01675c91dc 100644 --- a/man2/write.2 +++ b/man2/write.2 @@ -51,9 +51,20 @@ systems are POSIX conforming. .SH "RETURN VALUE" On success, the number of bytes written are returned (zero indicates nothing was written). On error, \-1 is returned, and \fIerrno\fP is set -appropriately. If \fIcount\fP is zero and the file descriptor refers to -a regular file, 0 will be returned without causing any other effect. -For a special file, the results are not portable. +appropriately. + +If \fIcount\fP is zero and +.I fd +refers to a regular file, then +.B write () +may return a failure status if one of the errors below is detected. +If no errors are detected, +0 will be returned without causing any other effect. +If +\fIcount\fP is zero and +.I fd +refers to a file other than a regular file, +the results are not specified. .SH ERRORS .TP .B EAGAIN |
