Clarified discussion of /count == 0/ case.

This commit is contained in:
Michael Kerrisk 2006-12-04 05:36:13 +00:00
parent ff929e3b15
commit 609af441be
1 changed files with 14 additions and 3 deletions

View File

@ -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