diff options
author | Bruno Haible <bruno@clisp.org> | 2011-09-24 16:46:51 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-09-24 16:46:51 +0200 |
commit | e395879b76b260057f48dd54d879df2fc5b2e74d (patch) | |
tree | b49f6eea61bb38f7a1ba67cb9181c7ea534f6083 /doc/posix-functions/write.texi | |
parent | 05f426cf8c26120a84647d00710e8417b8bad064 (diff) | |
download | gnulib-e395879b76b260057f48dd54d879df2fc5b2e74d.tar.gz |
write: Support for MSVC 9.
* lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
is not 1.
* lib/write.c (write_nothrow): New function.
(rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
not 1. Use write_nothrow.
* m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
invalid parameter handler.
(gl_PREREQ_WRITE): New macro.
* modules/write (Depends-on): Add msvc-inval.
(configure.ac): Invoke gl_PREREQ_WRITE.
* doc/posix-functions/write.texi: Mention the problem on MSVC.
Diffstat (limited to 'doc/posix-functions/write.texi')
-rw-r--r-- | doc/posix-functions/write.texi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/posix-functions/write.texi b/doc/posix-functions/write.texi index 64ab174466..3e8df86ae8 100644 --- a/doc/posix-functions/write.texi +++ b/doc/posix-functions/write.texi @@ -9,6 +9,9 @@ Gnulib module: write, nonblocking, sigpipe Portability problems fixed by Gnulib module @code{stdio}, together with module @code{nonblocking}: @itemize @item +This function crashes when invoked with invalid arguments on some platforms: +MSVC 9. +@item 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: |