diff options
author | Bruno Haible <bruno@clisp.org> | 2011-09-24 04:07:12 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-09-24 04:07:12 +0200 |
commit | 7bad64eadf0456e71707c843b2c83a44951683f2 (patch) | |
tree | 1fc1490edd6ec3836f2eda512859345a7513b650 /doc/posix-functions/read.texi | |
parent | 895d4925b7eb3475050328ef820e8ddfee95e1de (diff) | |
download | gnulib-7bad64eadf0456e71707c843b2c83a44951683f2.tar.gz |
read: Support for MSVC 9.
* lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
is not 1.
* lib/read.c (read_nothrow): New function.
(rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
read_nothrow.
* m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
invalid parameter handler.
(gl_PREREQ_READ): New macro.
* modules/read (Depends-on): Add msvc-inval.
(configure.ac): Invoke gl_PREREQ_READ.
* doc/posix-functions/read.texi: Mention the problem on MSVC.
Diffstat (limited to 'doc/posix-functions/read.texi')
-rw-r--r-- | doc/posix-functions/read.texi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/posix-functions/read.texi b/doc/posix-functions/read.texi index 34a20d735f..ab625f5cd0 100644 --- a/doc/posix-functions/read.texi +++ b/doc/posix-functions/read.texi @@ -9,6 +9,9 @@ Gnulib module: stdio, nonblocking 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 reading from a non-blocking pipe whose buffer is empty, this function fails with @code{errno} being set to @code{EINVAL} instead of @code{EAGAIN} on some platforms: |