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