diff --git a/man2/write.2 b/man2/write.2 index 46f3c2521..01675c91d 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