about summary refs log tree commit diff
path: root/io
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-09-06 19:20:20 +0000
committerRoland McGrath <roland@gnu.org>2002-09-06 19:20:20 +0000
commit131c6eb7daca02f20884c59e254d0963d07a9d5a (patch)
tree858faca702c8dcc76588de7dbe5dd5fede137b78 /io
parent2e56ce9ba79344f636e6e205f51270e46950b5ce (diff)
downloadglibc-131c6eb7daca02f20884c59e254d0963d07a9d5a.tar.gz
glibc-131c6eb7daca02f20884c59e254d0963d07a9d5a.tar.xz
glibc-131c6eb7daca02f20884c59e254d0963d07a9d5a.zip
2002-09-04 Bruno Haible <bruno@clisp.org>
	* sysdeps/generic/bits/ustat.h: Comment fix.
	* io/sys/sendfile.h: Comment fix.
	* sysdeps/posix/pread.c: Comment fix.
	* sysdeps/posix/pread64.c: Comment fix.
	* sysdeps/posix/pwrite.c: Comment fix.
	* sysdeps/posix/pwrite64.c: Comment fix.
Diffstat (limited to 'io')
-rw-r--r--io/sys/sendfile.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/io/sys/sendfile.h b/io/sys/sendfile.h
index 0627c40464..797822b9fe 100644
--- a/io/sys/sendfile.h
+++ b/io/sys/sendfile.h
@@ -25,8 +25,11 @@
 
 __BEGIN_DECLS
 
-/* Send COUNT bytes from file associated with IN_FD starting at OFFSET to
-   descriptor OUT_FD.  */
+/* Send up to COUNT bytes from file associated with IN_FD starting at
+   *OFFSET to descriptor OUT_FD.  Set *OFFSET to the IN_FD's file position
+   following the read bytes.  If OFFSET is a null pointer, use the normal
+   file position instead.  Return the number of written bytes, or -1 in
+   case of error.  */
 #ifndef __USE_FILE_OFFSET64
 extern ssize_t sendfile (int __out_fd, int __in_fd, off_t *__offset,
 			 size_t __count) __THROW;