From 7f8a28efb5c9bf19d3a31a7f356cc171f333ceef Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 23 Apr 2009 22:52:24 +0000 Subject: * sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust. * sysdeps/unix/sysv/linux/pwritev.c: Likewise. 2009-04-23 Jakub Jelinek * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy data from vector to temporary buffer and call PWRITEV after it instead of vice versa. * sysdeps/posix/preadv.c: Fix up comment. * misc/preadv.c: Likewise. * misc/preadv64.c: Likewise. * misc/pwritev.c: Likewise. * misc/pwritev64.c: Likewise. * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise. 2009-04-23 Ulrich Drepper --- misc/preadv.c | 2 +- misc/preadv64.c | 2 +- misc/pwritev.c | 2 +- misc/pwritev64.c | 2 +- misc/sys/uio.h | 8 ++++---- 5 files changed, 8 insertions(+), 8 deletions(-) (limited to 'misc') diff --git a/misc/preadv.c b/misc/preadv.c index 3e2cc68..facd8ca 100644 --- a/misc/preadv.c +++ b/misc/preadv.c @@ -24,7 +24,7 @@ without change the file pointer, and put the result in the buffers described by VECTOR, which is a vector of COUNT 'struct iovec's. The buffers are filled in the order specified. Operates just like - 'read' (see ) except that data are put in VECTOR instead + 'pread' (see ) except that data are put in VECTOR instead of a contiguous buffer. */ ssize_t preadv (fd, vector, count, offset) diff --git a/misc/preadv64.c b/misc/preadv64.c index ea675bb..4b4e571 100644 --- a/misc/preadv64.c +++ b/misc/preadv64.c @@ -24,7 +24,7 @@ without change the file pointer, and put the result in the buffers described by VECTOR, which is a vector of COUNT 'struct iovec's. The buffers are filled in the order specified. Operates just like - 'read' (see ) except that data are put in VECTOR instead + 'pread' (see ) except that data are put in VECTOR instead of a contiguous buffer. */ ssize_t preadv64 (fd, vector, count, offset) diff --git a/misc/pwritev.c b/misc/pwritev.c index d45ed23..2ee4770 100644 --- a/misc/pwritev.c +++ b/misc/pwritev.c @@ -23,7 +23,7 @@ /* Write data pointed by the buffers described by VECTOR, which is a vector of COUNT 'struct iovec's, to file descriptor FD at the given position OFFSET without change the file pointer. The data is - written in the order specified. Operates just like 'write' (see + written in the order specified. Operates just like 'pwrite' (see ) except that the data are taken from VECTOR instead of a contiguous buffer. */ ssize_t diff --git a/misc/pwritev64.c b/misc/pwritev64.c index fe95857..6cff749 100644 --- a/misc/pwritev64.c +++ b/misc/pwritev64.c @@ -23,7 +23,7 @@ /* Write data pointed by the buffers described by VECTOR, which is a vector of COUNT 'struct iovec's, to file descriptor FD at the given position OFFSET without change the file pointer. The data is - written in the order specified. Operates just like 'write' (see + written in the order specified. Operates just like 'pwrite' (see ) except that the data are taken from VECTOR instead of a contiguous buffer. */ ssize_t diff --git a/misc/sys/uio.h b/misc/sys/uio.h index a3c7829..05d956b 100644 --- a/misc/sys/uio.h +++ b/misc/sys/uio.h @@ -58,7 +58,7 @@ extern ssize_t writev (int __fd, __const struct iovec *__iovec, int __count) without change the file pointer, and put the result in the buffers described by IOVEC, which is a vector of COUNT 'struct iovec's. The buffers are filled in the order specified. Operates just like - 'read' (see ) except that data are put in IOVEC instead + 'pread' (see ) except that data are put in IOVEC instead of a contiguous buffer. This function is a cancellation point and therefore not marked with @@ -69,7 +69,7 @@ extern ssize_t preadv (int __fd, __const struct iovec *__iovec, int __count, /* Write data pointed by the buffers described by IOVEC, which is a vector of COUNT 'struct iovec's, to file descriptor FD at the given position OFFSET without change the file pointer. The data is - written in the order specified. Operates just like 'write' (see + written in the order specified. Operates just like 'pwrite' (see ) except that the data are taken from IOVEC instead of a contiguous buffer. @@ -96,7 +96,7 @@ extern ssize_t __REDIRECT (pwritev, (int __fd, __const struct iovec *__iovec, without change the file pointer, and put the result in the buffers described by IOVEC, which is a vector of COUNT 'struct iovec's. The buffers are filled in the order specified. Operates just like - 'read' (see ) except that data are put in IOVEC instead + 'pread' (see ) except that data are put in IOVEC instead of a contiguous buffer. This function is a cancellation point and therefore not marked with @@ -107,7 +107,7 @@ extern ssize_t preadv64 (int __fd, __const struct iovec *__iovec, int __count, /* Write data pointed by the buffers described by IOVEC, which is a vector of COUNT 'struct iovec's, to file descriptor FD at the given position OFFSET without change the file pointer. The data is - written in the order specified. Operates just like 'write' (see + written in the order specified. Operates just like 'pwrite' (see ) except that the data are taken from IOVEC instead of a contiguous buffer. -- cgit v1.1