diff options
author | Roland McGrath <roland@hack.frob.com> | 2012-04-12 21:02:00 +0200 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2012-04-12 21:02:00 +0200 |
commit | ec98af7d1b9a82ddac216beaa3dbe45168e83002 (patch) | |
tree | eb77f0278bdd506bb2b0e9a236600023e980a059 /libio | |
parent | 247c3ede396bf000b6e095e5d2b361aa329fc180 (diff) | |
download | glibc-ec98af7d1b9a82ddac216beaa3dbe45168e83002.zip glibc-ec98af7d1b9a82ddac216beaa3dbe45168e83002.tar.gz glibc-ec98af7d1b9a82ddac216beaa3dbe45168e83002.tar.bz2 |
Update comment for _io_write_fn
[BZ #2074]
* libio/libio.h (__io_write_fn): Update comment.
Diffstat (limited to 'libio')
-rw-r--r-- | libio/libio.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libio/libio.h b/libio/libio.h index 702a666..bbfdd9d 100644 --- a/libio/libio.h +++ b/libio/libio.h @@ -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); |