diff options
author | Bruno Haible <bruno@clisp.org> | 2011-04-14 23:42:01 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-04-14 23:42:01 +0200 |
commit | 73899ad375e2b795e1caaac9a75b99bc87cd9aea (patch) | |
tree | dd7a5dc42e05fdafd91742cf309e5f60b15f67ac /doc | |
parent | 93dca9da5d488fcf40c38f63d9762a9f54b1a8b0 (diff) | |
download | gnulib-73899ad375e2b795e1caaac9a75b99bc87cd9aea.tar.gz |
Support non-blocking pipe I/O in write() on native Windows.
* lib/write.c (rpl_write): Split a write request that failed merely
because the byte count was larger than the pipe buffer's size.
* doc/posix-functions/write.texi: Mention the problem with large byte
counts.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/posix-functions/write.texi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/posix-functions/write.texi b/doc/posix-functions/write.texi index 7587fbb9d9..604507d30c 100644 --- a/doc/posix-functions/write.texi +++ b/doc/posix-functions/write.texi @@ -13,6 +13,12 @@ When writing to a non-blocking pipe whose buffer is full, this function fails with @code{errno} being set to @code{ENOSPC} instead of @code{EAGAIN} on some platforms: mingw. +@item +When writing to a non-blocking pipe on which no reader is currently waiting +an amount of bytes that exceeds the pipe buffer's size, then -- even if the +pipe's buffer is empty -- this function fails, instead of performing a partial +write into the pipe buffer, on some platforms: +mingw. @end itemize Portability problems fixed by Gnulib module @code{stdio}, together with module @code{sigpipe}: |