* lib/read.c (read_nothrow): Change return type to 'ssize_t'.
2011-09-24 Bruno Haible <bruno@clisp.org>
+ read: Fix last commit.
+ * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
+
+2011-09-24 Bruno Haible <bruno@clisp.org>
+
dup2: Fix last commit.
* lib/dup2.c: Restore comments. Treat Cygwin like Unix.
(rpl_dup2): Disable fcntl workaround on native Windows.
# undef read
# if HAVE_MSVC_INVALID_PARAMETER_HANDLER
-static inline int
+static inline ssize_t
read_nothrow (int fd, void *buf, size_t count)
{
- int result;
+ ssize_t result;
TRY_MSVC_INVAL
{