aboutsummaryrefslogtreecommitdiffstats
path: root/man2/write.2
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2006-12-04 05:36:13 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2006-12-04 05:36:13 +0000
commit609af441bea99ed57a18115391723e00e082b2cc (patch)
tree7058cba988f8791a7436f995304ea73712ae6dce /man2/write.2
parentff929e3b157f43c8ea54d91ce4ac26e2e60e8024 (diff)
downloadman-pages-609af441bea99ed57a18115391723e00e082b2cc.tar.gz
Clarified discussion of /count == 0/ case.
Diffstat (limited to 'man2/write.2')
-rw-r--r--man2/write.217
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