From 131c6eb7daca02f20884c59e254d0963d07a9d5a Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 6 Sep 2002 19:20:20 +0000 Subject: 2002-09-04 Bruno Haible * 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. --- io/sys/sendfile.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'io/sys/sendfile.h') 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; -- cgit 1.4.1