mirror of https://github.com/mkerrisk/man-pages
Clarified discussion of /count == 0/ case.
This commit is contained in:
parent
ff929e3b15
commit
609af441be
17
man2/write.2
17
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
|
||||
|
|
Loading…
Reference in New Issue