|
|
00db10 |
Introduce prototype-style function definitions for readv and writev.
|
|
|
00db10 |
Upstream, the old-style function definitions were removed in:
|
|
|
00db10 |
|
|
|
00db10 |
commit 42b7f5d48549b85386a9b28a1a90e66fd81ba273
|
|
|
00db10 |
Author: Joseph Myers <joseph@codesourcery.com>
|
|
|
00db10 |
Date: Mon Oct 20 15:49:08 2014 +0000
|
|
|
00db10 |
|
|
|
00db10 |
Move readv and writev definitions to syscalls.list (bug 14138).
|
|
|
00db10 |
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/readv.c b/sysdeps/unix/sysv/linux/readv.c
|
|
|
00db10 |
index e8acd65ce377963a..e49d54ede39d45af 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/readv.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/readv.c
|
|
|
00db10 |
@@ -39,10 +39,7 @@ static ssize_t __atomic_readv_replacement (int, const struct iovec *,
|
|
|
00db10 |
|
|
|
00db10 |
|
|
|
00db10 |
ssize_t
|
|
|
00db10 |
-__libc_readv (fd, vector, count)
|
|
|
00db10 |
- int fd;
|
|
|
00db10 |
- const struct iovec *vector;
|
|
|
00db10 |
- int count;
|
|
|
00db10 |
+__libc_readv (int fd, const struct iovec *vector, int count)
|
|
|
00db10 |
{
|
|
|
00db10 |
ssize_t result;
|
|
|
00db10 |
|
|
|
00db10 |
diff --git a/sysdeps/unix/sysv/linux/writev.c b/sysdeps/unix/sysv/linux/writev.c
|
|
|
00db10 |
index 8b018ecdf6fbc323..847a1057aa443238 100644
|
|
|
00db10 |
--- a/sysdeps/unix/sysv/linux/writev.c
|
|
|
00db10 |
+++ b/sysdeps/unix/sysv/linux/writev.c
|
|
|
00db10 |
@@ -38,10 +38,7 @@ static ssize_t __atomic_writev_replacement (int, const struct iovec *,
|
|
|
00db10 |
|
|
|
00db10 |
|
|
|
00db10 |
ssize_t
|
|
|
00db10 |
-__libc_writev (fd, vector, count)
|
|
|
00db10 |
- int fd;
|
|
|
00db10 |
- const struct iovec *vector;
|
|
|
00db10 |
- int count;
|
|
|
00db10 |
+__libc_writev (int fd, const struct iovec *vector, int count)
|
|
|
00db10 |
{
|
|
|
00db10 |
ssize_t result;
|
|
|
00db10 |
|