write: Support for MSVC 9.
authorBruno Haible <bruno@clisp.org>
Sat, 24 Sep 2011 14:46:51 +0000 (16:46 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 24 Sep 2011 14:46:51 +0000 (16:46 +0200)
commite395879b76b260057f48dd54d879df2fc5b2e74d
treeb49f6eea61bb38f7a1ba67cb9181c7ea534f6083
parent05f426cf8c26120a84647d00710e8417b8bad064
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.
ChangeLog
doc/posix-functions/write.texi
lib/unistd.in.h
lib/write.c
m4/write.m4
modules/write