write.2: Alert the reader that there is a limit on 'count'

See https://bugzilla.kernel.org/show_bug.cgi?id=86061

Reported-by: Kai NODA <nodakai@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-01-26 12:08:38 +13:00
parent 6435869d7e
commit dfbb4842f9
1 changed files with 7 additions and 0 deletions

View File

@ -86,6 +86,13 @@ that can be proved to occur after a
.BR write ()
has returned will return the new data.
Note that not all filesystems are POSIX conforming.
According to POSIX.1, if
.I count
is greater than
.BR SSIZE_MAX ,
the result is implementation-defined;
see NOTES for the upper limit on Linux.
.SH RETURN VALUE
On success, the number of bytes written is returned (zero indicates
nothing was written).