Update comment for _io_write_fn
authorRoland McGrath <roland@hack.frob.com>
Thu, 12 Apr 2012 19:02:00 +0000 (21:02 +0200)
committerAndreas Jaeger <aj@suse.de>
Thu, 12 Apr 2012 19:02:00 +0000 (21:02 +0200)
[BZ #2074]
* libio/libio.h (__io_write_fn): Update comment.

ChangeLog
libio/libio.h

index 3ccd2f7..c29f9a7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-04-12  Roland McGrath  <roland@hack.frob.com>
+
+       [BZ #2074]
+       * libio/libio.h (__io_write_fn): Update comment.
+
 2012-04-12  Petr Baudis  <pasky@ucw.cz>
 
        [BZ #2074]
index 702a666..bbfdd9d 100644 (file)
@@ -346,11 +346,11 @@ extern _IO_FILE *_IO_stderr attribute_hidden;
 typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
 
 /* Write N bytes pointed to by BUF to COOKIE.  Write all N bytes
-   unless there is an error.  Return number of bytes written, or -1 if
-   there is an error without writing anything.  If the file has been
-   opened for append (__mode.__append set), then set the file pointer
-   to the end of the file and then do the write; if not, just write at
-   the current file pointer.  */
+   unless there is an error.  Return number of bytes written.  If
+   there is an error, return 0 and do not write anything.  If the file
+   has been opened for append (__mode.__append set), then set the file
+   pointer to the end of the file and then do the write; if not, just
+   write at the current file pointer.  */
 typedef __ssize_t __io_write_fn (void *__cookie, const char *__buf,
                                 size_t __n);