Blame SOURCES/glibc-rh1505492-prototypes-10.patch

c6d234
commit 14bb4e57c094849228ad8524693ab9432c38396c
c6d234
Author: Adhemerval Zanella <azanella@linux.vnet.ibm.com>
c6d234
Date:   Tue Jan 6 08:22:41 2015 -0800
c6d234
c6d234
    Function declaration cleanup
c6d234
    
c6d234
    This patch changes the some function declaration from K&R style to
c6d234
    default ANSI C.
c6d234
    
c6d234
            * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
c6d234
            * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
c6d234
            * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
c6d234
            * nptl/pthread_exit.c (__pthread_exit): Likewise.
c6d234
            * nptl/pthread_join.c (pthread_join): Likewise.
c6d234
            * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
c6d234
            * sysdeps/posix/waitid.c (__waitid): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
c6d234
            Likewise.
c6d234
            * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
c6d234
            (__libc_pread64): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
c6d234
            (__libc_pwrite): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
c6d234
            (__libc_pwrite64): Likewsie.
c6d234
            * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
c6d234
            Likewise.
c6d234
            * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
c6d234
            (__libc_pread64): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
c6d234
            Likewise.
c6d234
            * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
c6d234
            (__libc_pwrite64): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
c6d234
            Likewise.
c6d234
c6d234
Conflicts:
c6d234
	sysdeps/unix/sysv/linux/pthread_kill.c
c6d234
c6d234
Change applied to nptl/sysdeps/unix/sysv/linux/pthread_kill.c instead.
c6d234
c6d234
diff --git a/nptl/pthread_cancel.c b/nptl/pthread_cancel.c
c6d234
index cf6e48b4144f504f..75b3821862bdc8b0 100644
c6d234
--- a/nptl/pthread_cancel.c
c6d234
+++ b/nptl/pthread_cancel.c
c6d234
@@ -25,8 +25,7 @@
c6d234
 
c6d234
 
c6d234
 int
c6d234
-pthread_cancel (th)
c6d234
-     pthread_t th;
c6d234
+pthread_cancel (pthread_t th)
c6d234
 {
c6d234
   volatile struct pthread *pd = (volatile struct pthread *) th;
c6d234
 
c6d234
diff --git a/nptl/pthread_cond_timedwait.c b/nptl/pthread_cond_timedwait.c
c6d234
index ef33b966b82b702f..c1468169fec665b9 100644
c6d234
--- a/nptl/pthread_cond_timedwait.c
c6d234
+++ b/nptl/pthread_cond_timedwait.c
c6d234
@@ -48,10 +48,8 @@ struct _condvar_cleanup_buffer
c6d234
 };
c6d234
 
c6d234
 int
c6d234
-__pthread_cond_timedwait (cond, mutex, abstime)
c6d234
-     pthread_cond_t *cond;
c6d234
-     pthread_mutex_t *mutex;
c6d234
-     const struct timespec *abstime;
c6d234
+__pthread_cond_timedwait (pthread_cond_t *cond, pthread_mutex_t *mutex,
c6d234
+			  const struct timespec *abstime)
c6d234
 {
c6d234
   struct _pthread_cleanup_buffer buffer;
c6d234
   struct _condvar_cleanup_buffer cbuffer;
c6d234
diff --git a/nptl/pthread_cond_wait.c b/nptl/pthread_cond_wait.c
c6d234
index 35505d9a191879e4..3bcfb6c0ee476e70 100644
c6d234
--- a/nptl/pthread_cond_wait.c
c6d234
+++ b/nptl/pthread_cond_wait.c
c6d234
@@ -91,9 +91,7 @@ __condvar_cleanup (void *arg)
c6d234
 
c6d234
 
c6d234
 int
c6d234
-__pthread_cond_wait (cond, mutex)
c6d234
-     pthread_cond_t *cond;
c6d234
-     pthread_mutex_t *mutex;
c6d234
+__pthread_cond_wait (pthread_cond_t *cond, pthread_mutex_t *mutex)
c6d234
 {
c6d234
   struct _pthread_cleanup_buffer buffer;
c6d234
   struct _condvar_cleanup_buffer cbuffer;
c6d234
diff --git a/nptl/pthread_exit.c b/nptl/pthread_exit.c
c6d234
index 2d1037b5c4f2b386..7fa58cf50daba368 100644
c6d234
--- a/nptl/pthread_exit.c
c6d234
+++ b/nptl/pthread_exit.c
c6d234
@@ -21,8 +21,7 @@
c6d234
 
c6d234
 
c6d234
 void
c6d234
-__pthread_exit (value)
c6d234
-     void *value;
c6d234
+__pthread_exit (void *value)
c6d234
 {
c6d234
   THREAD_SETMEM (THREAD_SELF, result, value);
c6d234
 
c6d234
diff --git a/nptl/pthread_join.c b/nptl/pthread_join.c
c6d234
index bf1a01dbc93235de..431cd3a40b4c2c7e 100644
c6d234
--- a/nptl/pthread_join.c
c6d234
+++ b/nptl/pthread_join.c
c6d234
@@ -37,9 +37,7 @@ cleanup (void *arg)
c6d234
 
c6d234
 
c6d234
 int
c6d234
-pthread_join (threadid, thread_return)
c6d234
-     pthread_t threadid;
c6d234
-     void **thread_return;
c6d234
+pthread_join (pthread_t threadid, void **thread_return)
c6d234
 {
c6d234
   struct pthread *pd = (struct pthread *) threadid;
c6d234
 
c6d234
diff --git a/nptl/pthread_timedjoin.c b/nptl/pthread_timedjoin.c
c6d234
index 754f5d2538eb37b0..2dae7338afb1c88d 100644
c6d234
--- a/nptl/pthread_timedjoin.c
c6d234
+++ b/nptl/pthread_timedjoin.c
c6d234
@@ -30,10 +30,8 @@ cleanup (void *arg)
c6d234
 
c6d234
 
c6d234
 int
c6d234
-pthread_timedjoin_np (threadid, thread_return, abstime)
c6d234
-     pthread_t threadid;
c6d234
-     void **thread_return;
c6d234
-     const struct timespec *abstime;
c6d234
+pthread_timedjoin_np (pthread_t threadid, void **thread_return,
c6d234
+		      const struct timespec *abstime)
c6d234
 {
c6d234
   struct pthread *self;
c6d234
   struct pthread *pd = (struct pthread *) threadid;
c6d234
diff --git a/nptl/sysdeps/unix/sysv/linux/pthread_kill.c b/nptl/sysdeps/unix/sysv/linux/pthread_kill.c
c6d234
index 6804bf283f6635d8..20a9635b635bde9b 100644
c6d234
--- a/nptl/sysdeps/unix/sysv/linux/pthread_kill.c
c6d234
+++ b/nptl/sysdeps/unix/sysv/linux/pthread_kill.c
c6d234
@@ -25,9 +25,7 @@
c6d234
 
c6d234
 
c6d234
 int
c6d234
-__pthread_kill (threadid, signo)
c6d234
-     pthread_t threadid;
c6d234
-     int signo;
c6d234
+__pthread_kill (pthread_t threadid, int signo)
c6d234
 {
c6d234
   struct pthread *pd = (struct pthread *) threadid;
c6d234
 
c6d234
diff --git a/sysdeps/posix/waitid.c b/sysdeps/posix/waitid.c
c6d234
index 69e71aca3189e37b..06542f775e1e2bee 100644
c6d234
--- a/sysdeps/posix/waitid.c
c6d234
+++ b/sysdeps/posix/waitid.c
c6d234
@@ -149,11 +149,7 @@ OUR_WAITID (idtype_t idtype, id_t id, siginfo_t *infop, int options)
c6d234
 
c6d234
 
c6d234
 int
c6d234
-__waitid (idtype, id, infop, options)
c6d234
-     idtype_t idtype;
c6d234
-     id_t id;
c6d234
-     siginfo_t *infop;
c6d234
-     int options;
c6d234
+__waitid (idtype_t idtype, id_t id, siginfo_t *infop, int options)
c6d234
 {
c6d234
   if (SINGLE_THREAD_P)
c6d234
     return do_waitid (idtype, id, infop, options);
c6d234
diff --git a/sysdeps/unix/sysv/linux/arm/pread.c b/sysdeps/unix/sysv/linux/arm/pread.c
c6d234
index ed7be7394307892c..545cb5e2637cbe28 100644
c6d234
--- a/sysdeps/unix/sysv/linux/arm/pread.c
c6d234
+++ b/sysdeps/unix/sysv/linux/arm/pread.c
c6d234
@@ -25,11 +25,7 @@
c6d234
 #include <sys/syscall.h>
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_pread (fd, buf, count, offset)
c6d234
-     int fd;
c6d234
-     void *buf;
c6d234
-     size_t count;
c6d234
-     off_t offset;
c6d234
+__libc_pread (int fd, void *buf, size_t count, off_t offset)
c6d234
 {
c6d234
   ssize_t result;
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/arm/pread64.c b/sysdeps/unix/sysv/linux/arm/pread64.c
c6d234
index a3e8dfccb7446d76..41424d218d4a0cdc 100644
c6d234
--- a/sysdeps/unix/sysv/linux/arm/pread64.c
c6d234
+++ b/sysdeps/unix/sysv/linux/arm/pread64.c
c6d234
@@ -25,11 +25,7 @@
c6d234
 #include <sys/syscall.h>
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_pread64 (fd, buf, count, offset)
c6d234
-     int fd;
c6d234
-     void *buf;
c6d234
-     size_t count;
c6d234
-     off64_t offset;
c6d234
+__libc_pread64 (int fd, void *buf, size_t count, off64_t offset)
c6d234
 {
c6d234
   ssize_t result;
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/arm/pwrite.c b/sysdeps/unix/sysv/linux/arm/pwrite.c
c6d234
index a102f307926c2873..1ce8beaf9ebf2924 100644
c6d234
--- a/sysdeps/unix/sysv/linux/arm/pwrite.c
c6d234
+++ b/sysdeps/unix/sysv/linux/arm/pwrite.c
c6d234
@@ -25,11 +25,7 @@
c6d234
 #include <sys/syscall.h>
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_pwrite (fd, buf, count, offset)
c6d234
-     int fd;
c6d234
-     const void *buf;
c6d234
-     size_t count;
c6d234
-     off_t offset;
c6d234
+__libc_pwrite (int fd, const void *buf, size_t count, off_t offset)
c6d234
 {
c6d234
   ssize_t result;
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/arm/pwrite64.c b/sysdeps/unix/sysv/linux/arm/pwrite64.c
c6d234
index 19b15f6bd7cb2e0d..c5dbc71102b5a660 100644
c6d234
--- a/sysdeps/unix/sysv/linux/arm/pwrite64.c
c6d234
+++ b/sysdeps/unix/sysv/linux/arm/pwrite64.c
c6d234
@@ -25,11 +25,7 @@
c6d234
 #include <sys/syscall.h>
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_pwrite64 (fd, buf, count, offset)
c6d234
-     int fd;
c6d234
-     const void *buf;
c6d234
-     size_t count;
c6d234
-     off64_t offset;
c6d234
+__libc_pwrite64 (int fd, const void *buf, size_t count, off64_t offset)
c6d234
 {
c6d234
   ssize_t result;
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c b/sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c
c6d234
index 5145755e807ad59b..a5d7979302c0a765 100644
c6d234
--- a/sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c
c6d234
+++ b/sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c
c6d234
@@ -37,11 +37,7 @@ do_pread (int fd, void *buf, size_t count, off_t offset)
c6d234
 }
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_pread (fd, buf, count, offset)
c6d234
-     int fd;
c6d234
-     void *buf;
c6d234
-     size_t count;
c6d234
-     off_t offset;
c6d234
+__libc_pread (int fd, void *buf, size_t count, off_t offset)
c6d234
 {
c6d234
   if (SINGLE_THREAD_P)
c6d234
     return do_pread (fd, buf, count, offset);
c6d234
diff --git a/sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c b/sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
c6d234
index fd3aa1f2804337fd..eb04712a86dcb4ed 100644
c6d234
--- a/sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
c6d234
+++ b/sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
c6d234
@@ -37,11 +37,7 @@ do_pread64 (int fd, void *buf, size_t count, off64_t offset)
c6d234
 
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_pread64 (fd, buf, count, offset)
c6d234
-     int fd;
c6d234
-     void *buf;
c6d234
-     size_t count;
c6d234
-     off64_t offset;
c6d234
+__libc_pread64 (int fd, void *buf, size_t count, off64_t offset)
c6d234
 {
c6d234
   if (SINGLE_THREAD_P)
c6d234
     return do_pread64 (fd, buf, count, offset);
c6d234
diff --git a/sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c b/sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
c6d234
index 0f226ff79abe2477..6b21bdcd81fe239d 100644
c6d234
--- a/sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
c6d234
+++ b/sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
c6d234
@@ -38,11 +38,7 @@ do_pwrite (int fd, const void *buf, size_t count, off_t offset)
c6d234
 
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_pwrite (fd, buf, count, offset)
c6d234
-     int fd;
c6d234
-     const void *buf;
c6d234
-     size_t count;
c6d234
-     off_t offset;
c6d234
+__libc_pwrite (int fd, const void *buf, size_t count, off_t offset)
c6d234
 {
c6d234
   if (SINGLE_THREAD_P)
c6d234
     return do_pwrite (fd, buf, count, offset);
c6d234
diff --git a/sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c b/sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
c6d234
index 1afc13d24579a9f8..26ce2d5da471c019 100644
c6d234
--- a/sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
c6d234
+++ b/sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
c6d234
@@ -37,11 +37,7 @@ do_pwrite64 (int fd, const void *buf, size_t count, off64_t offset)
c6d234
 
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_pwrite64 (fd, buf, count, offset)
c6d234
-     int fd;
c6d234
-     const void *buf;
c6d234
-     size_t count;
c6d234
-     off64_t offset;
c6d234
+__libc_pwrite64 (int fd, const void *buf, size_t count, off64_t offset)
c6d234
 {
c6d234
   if (SINGLE_THREAD_P)
c6d234
     return do_pwrite64 (fd, buf, count, offset);
c6d234
diff --git a/sysdeps/unix/sysv/linux/mips/pread.c b/sysdeps/unix/sysv/linux/mips/pread.c
c6d234
index f24e500c10efae99..fd739d1d176c13f2 100644
c6d234
--- a/sysdeps/unix/sysv/linux/mips/pread.c
c6d234
+++ b/sysdeps/unix/sysv/linux/mips/pread.c
c6d234
@@ -38,11 +38,7 @@
c6d234
 
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_pread (fd, buf, count, offset)
c6d234
-     int fd;
c6d234
-     void *buf;
c6d234
-     size_t count;
c6d234
-     off_t offset;
c6d234
+__libc_pread (int fd, void *buf, size_t count, off_t offset):
c6d234
 {
c6d234
   ssize_t result;
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/mips/pread64.c b/sysdeps/unix/sysv/linux/mips/pread64.c
c6d234
index d5172a039d7fd269..77340c5ad9469ce9 100644
c6d234
--- a/sysdeps/unix/sysv/linux/mips/pread64.c
c6d234
+++ b/sysdeps/unix/sysv/linux/mips/pread64.c
c6d234
@@ -37,11 +37,7 @@
c6d234
 
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_pread64 (fd, buf, count, offset)
c6d234
-     int fd;
c6d234
-     void *buf;
c6d234
-     size_t count;
c6d234
-     off64_t offset;
c6d234
+__libc_pread64 (int fd, void *buf, size_t count, off64_t offset)
c6d234
 {
c6d234
   ssize_t result;
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/mips/pwrite.c b/sysdeps/unix/sysv/linux/mips/pwrite.c
c6d234
index caa69cbb4f7e3e77..fe278a31f4f26132 100644
c6d234
--- a/sysdeps/unix/sysv/linux/mips/pwrite.c
c6d234
+++ b/sysdeps/unix/sysv/linux/mips/pwrite.c
c6d234
@@ -38,11 +38,7 @@
c6d234
 
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_pwrite (fd, buf, count, offset)
c6d234
-     int fd;
c6d234
-     const void *buf;
c6d234
-     size_t count;
c6d234
-     off_t offset;
c6d234
+__libc_pwrite (int fd, const void *buf, size_t count, off_t offset)
c6d234
 {
c6d234
   ssize_t result;
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/mips/pwrite64.c b/sysdeps/unix/sysv/linux/mips/pwrite64.c
c6d234
index d8ae27a9abf5c606..4bc03e76d1869e66 100644
c6d234
--- a/sysdeps/unix/sysv/linux/mips/pwrite64.c
c6d234
+++ b/sysdeps/unix/sysv/linux/mips/pwrite64.c
c6d234
@@ -37,11 +37,7 @@
c6d234
 
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_pwrite64 (fd, buf, count, offset)
c6d234
-     int fd;
c6d234
-     const void *buf;
c6d234
-     size_t count;
c6d234
-     off64_t offset;
c6d234
+__libc_pwrite64 (int fd, const void *buf, size_t count, off64_t offset)
c6d234
 {
c6d234
   ssize_t result;
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/msgrcv.c b/sysdeps/unix/sysv/linux/msgrcv.c
c6d234
index a3085abda24d4512..f5575ebebee3eed8 100644
c6d234
--- a/sysdeps/unix/sysv/linux/msgrcv.c
c6d234
+++ b/sysdeps/unix/sysv/linux/msgrcv.c
c6d234
@@ -33,12 +33,8 @@ struct ipc_kludge
c6d234
 
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_msgrcv (msqid, msgp, msgsz, msgtyp, msgflg)
c6d234
-     int msqid;
c6d234
-     void *msgp;
c6d234
-     size_t msgsz;
c6d234
-     long int msgtyp;
c6d234
-     int msgflg;
c6d234
+__libc_msgrcv (int msqid, void *msgp, size_t msgsz, long int msgtyp,
c6d234
+	       int msgflg)
c6d234
 {
c6d234
   /* The problem here is that Linux' calling convention only allows up to
c6d234
      fives parameters to a system call.  */
c6d234
diff --git a/sysdeps/unix/sysv/linux/msgsnd.c b/sysdeps/unix/sysv/linux/msgsnd.c
c6d234
index 2883cad8aa370c6c..e9657785942aec4d 100644
c6d234
--- a/sysdeps/unix/sysv/linux/msgsnd.c
c6d234
+++ b/sysdeps/unix/sysv/linux/msgsnd.c
c6d234
@@ -24,11 +24,7 @@
c6d234
 #include <sys/syscall.h>
c6d234
 
c6d234
 int
c6d234
-__libc_msgsnd (msqid, msgp, msgsz, msgflg)
c6d234
-     int msqid;
c6d234
-     const void *msgp;
c6d234
-     size_t msgsz;
c6d234
-     int msgflg;
c6d234
+__libc_msgsnd (int msqid, const void *msgp, size_t msgsz, int msgflg)
c6d234
 {
c6d234
   if (SINGLE_THREAD_P)
c6d234
     return INLINE_SYSCALL (ipc, 5, IPCOP_msgsnd, msqid, msgsz,
c6d234
diff --git a/sysdeps/unix/sysv/linux/openat.c b/sysdeps/unix/sysv/linux/openat.c
c6d234
index 233266d4e748152d..14f81c5048bbe62a 100644
c6d234
--- a/sysdeps/unix/sysv/linux/openat.c
c6d234
+++ b/sysdeps/unix/sysv/linux/openat.c
c6d234
@@ -71,11 +71,7 @@ int __have_atfcts;
c6d234
 
c6d234
 
c6d234
 int
c6d234
-OPENAT_NOT_CANCEL (fd, file, oflag, mode)
c6d234
-     int fd;
c6d234
-     const char *file;
c6d234
-     int oflag;
c6d234
-     mode_t mode;
c6d234
+OPENAT_NOT_CANCEL (int fd, const char *file, int oflag, mode_t mode)
c6d234
 {
c6d234
 
c6d234
   /* We have to add the O_LARGEFILE flag for openat64.  */
c6d234
@@ -151,10 +147,7 @@ OPENAT_NOT_CANCEL (fd, file, oflag, mode)
c6d234
    the directory associated with FD.  If OFLAG includes O_CREAT or
c6d234
    O_TMPFILE, a fourth argument is the file protection.  */
c6d234
 int
c6d234
-__OPENAT (fd, file, oflag)
c6d234
-     int fd;
c6d234
-     const char *file;
c6d234
-     int oflag;
c6d234
+__OPENAT (int fd, const char *file, int oflag, ...)
c6d234
 {
c6d234
   mode_t mode = 0;
c6d234
   if (__OPEN_NEEDS_MODE (oflag))
c6d234
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c b/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
c6d234
index 9a9d0d456e5db1c0..bf31ed83a06abb5e 100644
c6d234
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
c6d234
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
c6d234
@@ -26,11 +26,7 @@
c6d234
 #include <kernel-features.h>
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_pread (fd, buf, count, offset)
c6d234
-     int fd;
c6d234
-     void *buf;
c6d234
-     size_t count;
c6d234
-     off_t offset;
c6d234
+__libc_pread (int fd, void *buf, size_t count, off_t offset)
c6d234
 {
c6d234
   ssize_t result;
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c b/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
c6d234
index 1435b293b143159b..b7800fcc459f1db4 100644
c6d234
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
c6d234
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
c6d234
@@ -26,11 +26,7 @@
c6d234
 
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_pread64 (fd, buf, count, offset)
c6d234
-     int fd;
c6d234
-     void *buf;
c6d234
-     size_t count;
c6d234
-     off64_t offset;
c6d234
+__libc_pread64 (int fd, void *buf, size_t count, off64_t offset)
c6d234
 {
c6d234
   ssize_t result;
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c b/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
c6d234
index d3a551c5a97550ca..ef0ea532e12bf868 100644
c6d234
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
c6d234
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
c6d234
@@ -27,11 +27,7 @@
c6d234
 
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_pwrite (fd, buf, count, offset)
c6d234
-     int fd;
c6d234
-     const void *buf;
c6d234
-     size_t count;
c6d234
-     off_t offset;
c6d234
+__libc_pwrite (int fd, const void *buf, size_t count, off_t offset)
c6d234
 {
c6d234
   ssize_t result;
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c b/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
c6d234
index d89a1759d1903eba..412357d704696487 100644
c6d234
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
c6d234
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
c6d234
@@ -26,11 +26,7 @@
c6d234
 
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_pwrite64 (fd, buf, count, offset)
c6d234
-     int fd;
c6d234
-     const void *buf;
c6d234
-     size_t count;
c6d234
-     off64_t offset;
c6d234
+__libc_pwrite64 (int fd, const void *buf, size_t count, off64_t offset)
c6d234
 {
c6d234
   ssize_t result;
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/pread.c b/sysdeps/unix/sysv/linux/pread.c
c6d234
index 7322e42d6ed990c1..2d6a8a64c69fc967 100644
c6d234
--- a/sysdeps/unix/sysv/linux/pread.c
c6d234
+++ b/sysdeps/unix/sysv/linux/pread.c
c6d234
@@ -51,11 +51,7 @@ do_pread (int fd, void *buf, size_t count, off_t offset)
c6d234
 
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_pread (fd, buf, count, offset)
c6d234
-     int fd;
c6d234
-     void *buf;
c6d234
-     size_t count;
c6d234
-     off_t offset;
c6d234
+__libc_pread (int fd, void *buf, size_t count, off_t offset)
c6d234
 {
c6d234
   if (SINGLE_THREAD_P)
c6d234
     return do_pread (fd, buf, count, offset);
c6d234
diff --git a/sysdeps/unix/sysv/linux/pread64.c b/sysdeps/unix/sysv/linux/pread64.c
c6d234
index 03e5f1402bf8b888..8006a1765113234c 100644
c6d234
--- a/sysdeps/unix/sysv/linux/pread64.c
c6d234
+++ b/sysdeps/unix/sysv/linux/pread64.c
c6d234
@@ -47,11 +47,7 @@ do_pread64 (int fd, void *buf, size_t count, off64_t offset)
c6d234
 
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_pread64 (fd, buf, count, offset)
c6d234
-     int fd;
c6d234
-     void *buf;
c6d234
-     size_t count;
c6d234
-     off64_t offset;
c6d234
+__libc_pread64 (int fd, void *buf, size_t count, off64_t offset)
c6d234
 {
c6d234
   if (SINGLE_THREAD_P)
c6d234
     return do_pread64 (fd, buf, count, offset);
c6d234
diff --git a/sysdeps/unix/sysv/linux/preadv.c b/sysdeps/unix/sysv/linux/preadv.c
c6d234
index a189680773a0765c..fedc9b6518629410 100644
c6d234
--- a/sysdeps/unix/sysv/linux/preadv.c
c6d234
+++ b/sysdeps/unix/sysv/linux/preadv.c
c6d234
@@ -47,11 +47,7 @@ static ssize_t PREADV_REPLACEMENT (int, const struct iovec *,
c6d234
 
c6d234
 
c6d234
 ssize_t
c6d234
-PREADV (fd, vector, count, offset)
c6d234
-     int fd;
c6d234
-     const struct iovec *vector;
c6d234
-     int count;
c6d234
-     OFF_T offset;
c6d234
+PREADV (int fd, const struct iovec *vector, int count, OFF_T offset)
c6d234
 {
c6d234
 #ifdef __NR_preadv
c6d234
   ssize_t result;
c6d234
diff --git a/sysdeps/unix/sysv/linux/pwrite.c b/sysdeps/unix/sysv/linux/pwrite.c
c6d234
index e773d65f2e5602a8..ea9cde3151b80a52 100644
c6d234
--- a/sysdeps/unix/sysv/linux/pwrite.c
c6d234
+++ b/sysdeps/unix/sysv/linux/pwrite.c
c6d234
@@ -51,11 +51,7 @@ do_pwrite (int fd, const void *buf, size_t count, off_t offset)
c6d234
 
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_pwrite (fd, buf, count, offset)
c6d234
-     int fd;
c6d234
-     const void *buf;
c6d234
-     size_t count;
c6d234
-     off_t offset;
c6d234
+__libc_pwrite (int fd, const void *buf, size_t count, off_t offset)
c6d234
 {
c6d234
   if (SINGLE_THREAD_P)
c6d234
     return do_pwrite (fd, buf, count, offset);
c6d234
diff --git a/sysdeps/unix/sysv/linux/pwrite64.c b/sysdeps/unix/sysv/linux/pwrite64.c
c6d234
index 558a08e735616649..ab08948ad6977844 100644
c6d234
--- a/sysdeps/unix/sysv/linux/pwrite64.c
c6d234
+++ b/sysdeps/unix/sysv/linux/pwrite64.c
c6d234
@@ -47,11 +47,7 @@ do_pwrite64 (int fd, const void *buf, size_t count, off64_t offset)
c6d234
 
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_pwrite64 (fd, buf, count, offset)
c6d234
-     int fd;
c6d234
-     const void *buf;
c6d234
-     size_t count;
c6d234
-     off64_t offset;
c6d234
+__libc_pwrite64 (int fd, const void *buf, size_t count, off64_t offset)
c6d234
 {
c6d234
   if (SINGLE_THREAD_P)
c6d234
     return do_pwrite64 (fd, buf, count, offset);
c6d234
diff --git a/sysdeps/unix/sysv/linux/pwritev.c b/sysdeps/unix/sysv/linux/pwritev.c
c6d234
index cfb4491ac7d65f22..22af4518b9ee9e18 100644
c6d234
--- a/sysdeps/unix/sysv/linux/pwritev.c
c6d234
+++ b/sysdeps/unix/sysv/linux/pwritev.c
c6d234
@@ -47,11 +47,7 @@ static ssize_t PWRITEV_REPLACEMENT (int, const struct iovec *,
c6d234
 
c6d234
 
c6d234
 ssize_t
c6d234
-PWRITEV (fd, vector, count, offset)
c6d234
-     int fd;
c6d234
-     const struct iovec *vector;
c6d234
-     int count;
c6d234
-     OFF_T offset;
c6d234
+PWRITEV (int fd, const struct iovec *vector, int count, OFF_T offset)
c6d234
 {
c6d234
 #ifdef __NR_pwritev
c6d234
   ssize_t result;
c6d234
diff --git a/sysdeps/unix/sysv/linux/sh/pread.c b/sysdeps/unix/sysv/linux/sh/pread.c
c6d234
index 160c906a4d0197fd..e67c1b6d27b089d8 100644
c6d234
--- a/sysdeps/unix/sysv/linux/sh/pread.c
c6d234
+++ b/sysdeps/unix/sysv/linux/sh/pread.c
c6d234
@@ -35,11 +35,7 @@
c6d234
 
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_pread (fd, buf, count, offset)
c6d234
-     int fd;
c6d234
-     void *buf;
c6d234
-     size_t count;
c6d234
-     off_t offset;
c6d234
+__libc_pread (int fd, void *buf, size_t count, off_t offset)
c6d234
 {
c6d234
   ssize_t result;
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/sh/pread64.c b/sysdeps/unix/sysv/linux/sh/pread64.c
c6d234
index bb4f13d06b72fdf1..32a08c6f992eb054 100644
c6d234
--- a/sysdeps/unix/sysv/linux/sh/pread64.c
c6d234
+++ b/sysdeps/unix/sysv/linux/sh/pread64.c
c6d234
@@ -34,11 +34,7 @@
c6d234
 
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_pread64 (fd, buf, count, offset)
c6d234
-     int fd;
c6d234
-     void *buf;
c6d234
-     size_t count;
c6d234
-     off64_t offset;
c6d234
+__libc_pread64 (int fd, void *buf, size_t count, off64_t offset)
c6d234
 {
c6d234
   ssize_t result;
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/sh/pwrite.c b/sysdeps/unix/sysv/linux/sh/pwrite.c
c6d234
index b17bd87a5d4f74cc..1db96ffc67df623f 100644
c6d234
--- a/sysdeps/unix/sysv/linux/sh/pwrite.c
c6d234
+++ b/sysdeps/unix/sysv/linux/sh/pwrite.c
c6d234
@@ -35,11 +35,7 @@
c6d234
 
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_pwrite (fd, buf, count, offset)
c6d234
-     int fd;
c6d234
-     const void *buf;
c6d234
-     size_t count;
c6d234
-     off_t offset;
c6d234
+__libc_pwrite (int fd, const void *buf, size_t count, off_t offset)
c6d234
 {
c6d234
   ssize_t result;
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/sh/pwrite64.c b/sysdeps/unix/sysv/linux/sh/pwrite64.c
c6d234
index d9f41ec34cf01fb4..e6e7de32046a7954 100644
c6d234
--- a/sysdeps/unix/sysv/linux/sh/pwrite64.c
c6d234
+++ b/sysdeps/unix/sysv/linux/sh/pwrite64.c
c6d234
@@ -34,11 +34,7 @@
c6d234
 
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_pwrite64 (fd, buf, count, offset)
c6d234
-     int fd;
c6d234
-     const void *buf;
c6d234
-     size_t count;
c6d234
-     off64_t offset;
c6d234
+__libc_pwrite64 (int fd, const void *buf, size_t count, off64_t offset)
c6d234
 {
c6d234
   ssize_t result;
c6d234
 
c6d234
diff --git a/sysdeps/unix/sysv/linux/sigsuspend.c b/sysdeps/unix/sysv/linux/sigsuspend.c
c6d234
index c673cf2b65cfe7ea..1cd1de88d303fd66 100644
c6d234
--- a/sysdeps/unix/sysv/linux/sigsuspend.c
c6d234
+++ b/sysdeps/unix/sysv/linux/sigsuspend.c
c6d234
@@ -34,8 +34,7 @@ do_sigsuspend (const sigset_t *set)
c6d234
 /* Change the set of blocked signals to SET,
c6d234
    wait until a signal arrives, and restore the set of blocked signals.  */
c6d234
 int
c6d234
-__sigsuspend (set)
c6d234
-     const sigset_t *set;
c6d234
+__sigsuspend (const sigset_t *set)
c6d234
 {
c6d234
   if (SINGLE_THREAD_P)
c6d234
     return do_sigsuspend (set);
c6d234
diff --git a/sysdeps/unix/sysv/linux/sigtimedwait.c b/sysdeps/unix/sysv/linux/sigtimedwait.c
c6d234
index 1cf24d0e47330b8a..30ad3023b24e7c47 100644
c6d234
--- a/sysdeps/unix/sysv/linux/sigtimedwait.c
c6d234
+++ b/sysdeps/unix/sysv/linux/sigtimedwait.c
c6d234
@@ -66,10 +66,8 @@ do_sigtimedwait (const sigset_t *set, siginfo_t *info,
c6d234
 
c6d234
 /* Return any pending signal or wait for one for the given time.  */
c6d234
 int
c6d234
-__sigtimedwait (set, info, timeout)
c6d234
-     const sigset_t *set;
c6d234
-     siginfo_t *info;
c6d234
-     const struct timespec *timeout;
c6d234
+__sigtimedwait (const sigset_t *set, siginfo_t *info,
c6d234
+		const struct timespec *timeout)
c6d234
 {
c6d234
   if (SINGLE_THREAD_P)
c6d234
     return do_sigtimedwait (set, info, timeout);
c6d234
diff --git a/sysdeps/unix/sysv/linux/sigwait.c b/sysdeps/unix/sysv/linux/sigwait.c
c6d234
index 5e7d8ca8c8a62f19..2e4b34f474720742 100644
c6d234
--- a/sysdeps/unix/sysv/linux/sigwait.c
c6d234
+++ b/sysdeps/unix/sysv/linux/sigwait.c
c6d234
@@ -85,9 +85,7 @@ do_sigwait (const sigset_t *set, int *sig)
c6d234
 }
c6d234
 
c6d234
 int
c6d234
-__sigwait (set, sig)
c6d234
-     const sigset_t *set;
c6d234
-     int *sig;
c6d234
+__sigwait (const sigset_t *set, int *sig)
c6d234
 {
c6d234
   if (SINGLE_THREAD_P)
c6d234
     return do_sigwait (set, sig);
c6d234
diff --git a/sysdeps/unix/sysv/linux/sigwaitinfo.c b/sysdeps/unix/sysv/linux/sigwaitinfo.c
c6d234
index 0e38dff1be6cc21a..ba3408aab15ade61 100644
c6d234
--- a/sysdeps/unix/sysv/linux/sigwaitinfo.c
c6d234
+++ b/sysdeps/unix/sysv/linux/sigwaitinfo.c
c6d234
@@ -67,9 +67,7 @@ do_sigwaitinfo (const sigset_t *set, siginfo_t *info)
c6d234
 
c6d234
 /* Return any pending signal or wait for one for the given time.  */
c6d234
 int
c6d234
-__sigwaitinfo (set, info)
c6d234
-     const sigset_t *set;
c6d234
-     siginfo_t *info;
c6d234
+__sigwaitinfo (const sigset_t *set, siginfo_t *info)
c6d234
 {
c6d234
   if (SINGLE_THREAD_P)
c6d234
     return do_sigwaitinfo (set, info);
c6d234
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c b/sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c
c6d234
index 3684a01142f68323..d62ce29e05122763 100644
c6d234
--- a/sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c
c6d234
+++ b/sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c
c6d234
@@ -23,12 +23,8 @@
c6d234
 #include <sys/syscall.h>
c6d234
 
c6d234
 ssize_t
c6d234
-__libc_msgrcv (msqid, msgp, msgsz, msgtyp, msgflg)
c6d234
-     int msqid;
c6d234
-     void *msgp;
c6d234
-     size_t msgsz;
c6d234
-     long int msgtyp;
c6d234
-     int msgflg;
c6d234
+__libc_msgrcv (int msqid, void *msgp, size_t msgsz, long int msgtyp,
c6d234
+	       int msgflg)
c6d234
 {
c6d234
   if (SINGLE_THREAD_P)
c6d234
     return INLINE_SYSCALL (ipc, 6, IPCOP_msgrcv, msqid, msgsz, msgflg,