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

c6d234
commit a72ddc1424d5bfcab14d90f1149cbb9b492f0120
c6d234
Author: Joseph Myers <joseph@codesourcery.com>
c6d234
Date:   Tue Oct 20 11:51:03 2015 +0000
c6d234
c6d234
    Convert 24 more function definitions to prototype style (array parameters).
c6d234
    
c6d234
    This automatically-generated patch converts 24 function definitions in
c6d234
    glibc from old-style K&R to prototype-style.  Following my other
c6d234
    recent such patches, this one deals with the case of functions with
c6d234
    array parameters.
c6d234
    
c6d234
    Tested for x86_64 and x86 (testsuite, and that installed stripped
c6d234
    shared libraries are unchanged by the patch).
c6d234
    
c6d234
            * crypt/cert.c (main): Convert to prototype-style function
c6d234
            definition.
c6d234
            * io/pipe.c (__pipe): Likewise.
c6d234
            * io/pipe2.c (__pipe2): Likewise.
c6d234
            * misc/futimesat.c (futimesat): Likewise.
c6d234
            * misc/utimes.c (__utimes): Likewise.
c6d234
            * posix/execve.c (__execve): Likewise.
c6d234
            * posix/execvp.c (execvp): Likewise.
c6d234
            * posix/execvpe.c (__execvpe): Likewise.
c6d234
            * posix/fexecve.c (fexecve): Likewise.
c6d234
            * socket/socketpair.c (socketpair): Likewise.
c6d234
            * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
c6d234
            * stdlib/erand48.c (erand48): Likewise.
c6d234
            * stdlib/erand48_r.c (__erand48_r): Likewise.
c6d234
            * stdlib/jrand48.c (jrand48): Likewise.
c6d234
            * stdlib/jrand48_r.c (__jrand48_r): Likewise.
c6d234
            * stdlib/lcong48.c (lcong48): Likewise.
c6d234
            * stdlib/lcong48_r.c (__lcong48_r): Likewise.
c6d234
            * stdlib/nrand48.c (nrand48): Likewise.
c6d234
            * stdlib/nrand48_r.c (__nrand48_r): Likewise.
c6d234
            * stdlib/seed48.c (seed48): Likewise.
c6d234
            * stdlib/seed48_r.c (__seed48_r): Likewise.
c6d234
            * sysdeps/mach/hurd/execve.c (__execve): Likewise.
c6d234
            * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
c6d234
            * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
c6d234
c6d234
diff --git a/crypt/cert.c b/crypt/cert.c
c6d234
index d651108860f0052a..80029e9078c1cdc0 100644
c6d234
--- a/crypt/cert.c
c6d234
+++ b/crypt/cert.c
c6d234
@@ -30,9 +30,7 @@ good_bye (void)
c6d234
 }
c6d234
 
c6d234
 int
c6d234
-main(argc, argv)
c6d234
-     int argc;
c6d234
-     char *argv[];
c6d234
+main (int argc, char *argv[])
c6d234
 {
c6d234
 	char key[64],plain[64],cipher[64],answer[64];
c6d234
 	int i;
c6d234
diff --git a/io/pipe.c b/io/pipe.c
c6d234
index 1f1c03f0d5b44fe6..2223ac169c2b9d95 100644
c6d234
--- a/io/pipe.c
c6d234
+++ b/io/pipe.c
c6d234
@@ -24,8 +24,7 @@
c6d234
    bytes written on PIPEDES[1] can be read from PIPEDES[0].
c6d234
    Returns 0 if successful, -1 if not.  */
c6d234
 int
c6d234
-__pipe (__pipedes)
c6d234
-     int __pipedes[2];
c6d234
+__pipe (int __pipedes[2])
c6d234
 {
c6d234
   if (__pipedes == NULL)
c6d234
     {
c6d234
diff --git a/io/pipe2.c b/io/pipe2.c
c6d234
index 2478fc3c6128c981..9bfc8291330f899b 100644
c6d234
--- a/io/pipe2.c
c6d234
+++ b/io/pipe2.c
c6d234
@@ -24,9 +24,7 @@
c6d234
    PIPEDES[1] can be read from PIPEDES[0].  Apply FLAGS to the new
c6d234
    file descriptors.  Returns 0 if successful, -1 if not.  */
c6d234
 int
c6d234
-__pipe2 (pipedes, flags)
c6d234
-     int pipedes[2];
c6d234
-     int flags;
c6d234
+__pipe2 (int pipedes[2], int flags)
c6d234
 {
c6d234
   if (pipedes == NULL)
c6d234
     {
c6d234
diff --git a/misc/futimesat.c b/misc/futimesat.c
c6d234
index b33939e0a1cf4b88..b428852aeb9a2590 100644
c6d234
--- a/misc/futimesat.c
c6d234
+++ b/misc/futimesat.c
c6d234
@@ -24,10 +24,7 @@
c6d234
 /* Change the access time of FILE relative to FD to TVP[0] and
c6d234
    the modification time of FILE to TVP[1].  */
c6d234
 int
c6d234
-futimesat (fd, file, tvp)
c6d234
-     int fd;
c6d234
-     const char *file;
c6d234
-     const struct timeval tvp[2];
c6d234
+futimesat (int fd, const char *file, const struct timeval tvp[2])
c6d234
 {
c6d234
   if (fd < 0
c6d234
       && (file == NULL
c6d234
diff --git a/misc/utimes.c b/misc/utimes.c
c6d234
index 5cdfe6ca5e594e42..9c94f6be646bd955 100644
c6d234
--- a/misc/utimes.c
c6d234
+++ b/misc/utimes.c
c6d234
@@ -22,9 +22,7 @@
c6d234
 /* Change the access time of FILE to TVP[0] and
c6d234
    the modification time of FILE to TVP[1].  */
c6d234
 int
c6d234
-__utimes (file, tvp)
c6d234
-     const char *file;
c6d234
-     const struct timeval tvp[2];
c6d234
+__utimes (const char *file, const struct timeval tvp[2])
c6d234
 {
c6d234
   if (file == NULL)
c6d234
     {
c6d234
diff --git a/posix/execve.c b/posix/execve.c
c6d234
index 893cec2b19a39527..27b063fe7d31a59e 100644
c6d234
--- a/posix/execve.c
c6d234
+++ b/posix/execve.c
c6d234
@@ -23,10 +23,7 @@
c6d234
 /* Replace the current process, executing PATH with arguments ARGV and
c6d234
    environment ENVP.  ARGV and ENVP are terminated by NULL pointers.  */
c6d234
 int
c6d234
-__execve (path, argv, envp)
c6d234
-     const char *path;
c6d234
-     char *const argv[];
c6d234
-     char *const envp[];
c6d234
+__execve (const char *path, char *const argv[], char *const envp[])
c6d234
 {
c6d234
   if (path == NULL || argv == NULL || envp == NULL)
c6d234
     {
c6d234
diff --git a/posix/execvp.c b/posix/execvp.c
c6d234
index 5f2e155cd55db43e..9140b93d27896d26 100644
c6d234
--- a/posix/execvp.c
c6d234
+++ b/posix/execvp.c
c6d234
@@ -22,9 +22,7 @@
c6d234
 /* Execute FILE, searching in the `PATH' environment variable if it contains
c6d234
    no slashes, with arguments ARGV and environment from `environ'.  */
c6d234
 int
c6d234
-execvp (file, argv)
c6d234
-     const char *file;
c6d234
-     char *const argv[];
c6d234
+execvp (const char *file, char *const argv[])
c6d234
 {
c6d234
   return __execvpe (file, argv, __environ);
c6d234
 }
c6d234
diff --git a/posix/execvpe.c b/posix/execvpe.c
c6d234
index 48f777a9d57928fb..b607235c8bc27026 100644
c6d234
--- a/posix/execvpe.c
c6d234
+++ b/posix/execvpe.c
c6d234
@@ -46,10 +46,7 @@ scripts_argv (const char *file, char *const argv[], int argc, char **new_argv)
c6d234
 /* Execute FILE, searching in the `PATH' environment variable if it contains
c6d234
    no slashes, with arguments ARGV and environment from ENVP.  */
c6d234
 int
c6d234
-__execvpe (file, argv, envp)
c6d234
-     const char *file;
c6d234
-     char *const argv[];
c6d234
-     char *const envp[];
c6d234
+__execvpe (const char *file, char *const argv[], char *const envp[])
c6d234
 {
c6d234
   if (*file == '\0')
c6d234
     {
c6d234
diff --git a/posix/fexecve.c b/posix/fexecve.c
c6d234
index 6a22a194e34d0789..1ebbbc6fe942e716 100644
c6d234
--- a/posix/fexecve.c
c6d234
+++ b/posix/fexecve.c
c6d234
@@ -23,10 +23,7 @@
c6d234
 /* Execute the file FD refers to, overlaying the running program image.
c6d234
    ARGV and ENVP are passed to the new program, as for `execve'.  */
c6d234
 int
c6d234
-fexecve (fd, argv, envp)
c6d234
-     int fd;
c6d234
-     char *const argv[];
c6d234
-     char *const envp[];
c6d234
+fexecve (int fd, char *const argv[], char *const envp[])
c6d234
 {
c6d234
   if (fd < 0 || argv == NULL || envp == NULL)
c6d234
     {
c6d234
diff --git a/socket/socketpair.c b/socket/socketpair.c
c6d234
index 031674831f88cd61..4da27fb3b616d26f 100644
c6d234
--- a/socket/socketpair.c
c6d234
+++ b/socket/socketpair.c
c6d234
@@ -23,11 +23,7 @@
c6d234
    descriptors for them in FDS[0] and FDS[1].  If PROTOCOL is zero,
c6d234
    one will be chosen automatically.  Returns 0 on success, -1 for errors.  */
c6d234
 int
c6d234
-socketpair (domain, type, protocol, fds)
c6d234
-     int domain;
c6d234
-     int type;
c6d234
-     int protocol;
c6d234
-     int fds[2];
c6d234
+socketpair (int domain, int type, int protocol, int fds[2])
c6d234
 {
c6d234
   __set_errno (ENOSYS);
c6d234
   return -1;
c6d234
diff --git a/stdlib/drand48-iter.c b/stdlib/drand48-iter.c
c6d234
index 9270aab068170970..0cb988028f25a405 100644
c6d234
--- a/stdlib/drand48-iter.c
c6d234
+++ b/stdlib/drand48-iter.c
c6d234
@@ -27,9 +27,7 @@ struct drand48_data __libc_drand48_data;
c6d234
 
c6d234
 
c6d234
 int
c6d234
-__drand48_iterate (xsubi, buffer)
c6d234
-     unsigned short int xsubi[3];
c6d234
-     struct drand48_data *buffer;
c6d234
+__drand48_iterate (unsigned short int xsubi[3], struct drand48_data *buffer)
c6d234
 {
c6d234
   uint64_t X;
c6d234
   uint64_t result;
c6d234
diff --git a/stdlib/erand48.c b/stdlib/erand48.c
c6d234
index d2cf5af967b6663e..ff128ab72bb43e05 100644
c6d234
--- a/stdlib/erand48.c
c6d234
+++ b/stdlib/erand48.c
c6d234
@@ -20,8 +20,7 @@
c6d234
 
c6d234
 
c6d234
 double
c6d234
-erand48 (xsubi)
c6d234
-     unsigned short int xsubi[3];
c6d234
+erand48 (unsigned short int xsubi[3])
c6d234
 {
c6d234
   double result;
c6d234
 
c6d234
diff --git a/stdlib/erand48_r.c b/stdlib/erand48_r.c
c6d234
index cdd02c9c963c89ed..9cf062da0ad1b89c 100644
c6d234
--- a/stdlib/erand48_r.c
c6d234
+++ b/stdlib/erand48_r.c
c6d234
@@ -22,10 +22,8 @@
c6d234
 
c6d234
 
c6d234
 int
c6d234
-__erand48_r (xsubi, buffer, result)
c6d234
-     unsigned short int xsubi[3];
c6d234
-     struct drand48_data *buffer;
c6d234
-     double *result;
c6d234
+__erand48_r (unsigned short int xsubi[3], struct drand48_data *buffer,
c6d234
+	     double *result)
c6d234
 {
c6d234
   union ieee754_double temp;
c6d234
 
c6d234
diff --git a/stdlib/jrand48.c b/stdlib/jrand48.c
c6d234
index af6bf6809155963c..a6d2f3ab0a1e0c9d 100644
c6d234
--- a/stdlib/jrand48.c
c6d234
+++ b/stdlib/jrand48.c
c6d234
@@ -20,8 +20,7 @@
c6d234
 
c6d234
 
c6d234
 long int
c6d234
-jrand48 (xsubi)
c6d234
-     unsigned short int xsubi[3];
c6d234
+jrand48 (unsigned short int xsubi[3])
c6d234
 {
c6d234
   long int result;
c6d234
 
c6d234
diff --git a/stdlib/jrand48_r.c b/stdlib/jrand48_r.c
c6d234
index 78c57dbaa285f968..b0170e11d30fcf5e 100644
c6d234
--- a/stdlib/jrand48_r.c
c6d234
+++ b/stdlib/jrand48_r.c
c6d234
@@ -19,10 +19,8 @@
c6d234
 #include <stdlib.h>
c6d234
 
c6d234
 int
c6d234
-__jrand48_r (xsubi, buffer, result)
c6d234
-     unsigned short int xsubi[3];
c6d234
-     struct drand48_data *buffer;
c6d234
-     long int *result;
c6d234
+__jrand48_r (unsigned short int xsubi[3], struct drand48_data *buffer,
c6d234
+	     long int *result)
c6d234
 {
c6d234
   /* Compute next state.  */
c6d234
   if (__drand48_iterate (xsubi, buffer) < 0)
c6d234
diff --git a/stdlib/lcong48.c b/stdlib/lcong48.c
c6d234
index 31f403e01c10f104..b7943605041e99c0 100644
c6d234
--- a/stdlib/lcong48.c
c6d234
+++ b/stdlib/lcong48.c
c6d234
@@ -20,8 +20,7 @@
c6d234
 
c6d234
 
c6d234
 void
c6d234
-lcong48 (param)
c6d234
-     unsigned short int param[7];
c6d234
+lcong48 (unsigned short int param[7])
c6d234
 {
c6d234
   (void) __lcong48_r (param, &__libc_drand48_data);
c6d234
 }
c6d234
diff --git a/stdlib/lcong48_r.c b/stdlib/lcong48_r.c
c6d234
index 03ffcd7eb03742de..063baa3c8753a6f9 100644
c6d234
--- a/stdlib/lcong48_r.c
c6d234
+++ b/stdlib/lcong48_r.c
c6d234
@@ -22,9 +22,7 @@
c6d234
 #include <limits.h>
c6d234
 
c6d234
 int
c6d234
-__lcong48_r (param, buffer)
c6d234
-     unsigned short int param[7];
c6d234
-     struct drand48_data *buffer;
c6d234
+__lcong48_r (unsigned short int param[7], struct drand48_data *buffer)
c6d234
 {
c6d234
   /* Store the given values.  */
c6d234
   memcpy (buffer->__x, &param[0], sizeof (buffer->__x));
c6d234
diff --git a/stdlib/nrand48.c b/stdlib/nrand48.c
c6d234
index 927e7d25534292a0..9f9f2f550faf3d88 100644
c6d234
--- a/stdlib/nrand48.c
c6d234
+++ b/stdlib/nrand48.c
c6d234
@@ -20,8 +20,7 @@
c6d234
 
c6d234
 
c6d234
 long int
c6d234
-nrand48 (xsubi)
c6d234
-     unsigned short int xsubi[3];
c6d234
+nrand48 (unsigned short int xsubi[3])
c6d234
 {
c6d234
   long int result;
c6d234
 
c6d234
diff --git a/stdlib/nrand48_r.c b/stdlib/nrand48_r.c
c6d234
index 15a9b0c20589198a..f57e34cdcc44ff9f 100644
c6d234
--- a/stdlib/nrand48_r.c
c6d234
+++ b/stdlib/nrand48_r.c
c6d234
@@ -19,10 +19,8 @@
c6d234
 #include <stdlib.h>
c6d234
 
c6d234
 int
c6d234
-__nrand48_r (xsubi, buffer, result)
c6d234
-     unsigned short int xsubi[3];
c6d234
-     struct drand48_data *buffer;
c6d234
-     long int *result;
c6d234
+__nrand48_r (unsigned short int xsubi[3], struct drand48_data *buffer,
c6d234
+	     long int *result)
c6d234
 {
c6d234
   /* Compute next state.  */
c6d234
   if (__drand48_iterate (xsubi, buffer) < 0)
c6d234
diff --git a/stdlib/seed48.c b/stdlib/seed48.c
c6d234
index 9808213eaeff876d..941c870977062bb3 100644
c6d234
--- a/stdlib/seed48.c
c6d234
+++ b/stdlib/seed48.c
c6d234
@@ -20,8 +20,7 @@
c6d234
 
c6d234
 
c6d234
 unsigned short int *
c6d234
-seed48 (seed16v)
c6d234
-     unsigned short int seed16v[3];
c6d234
+seed48 (unsigned short int seed16v[3])
c6d234
 {
c6d234
   (void) __seed48_r (seed16v, &__libc_drand48_data);
c6d234
 
c6d234
diff --git a/stdlib/seed48_r.c b/stdlib/seed48_r.c
c6d234
index b821d2349d8bb0c1..c8d9262123200c1b 100644
c6d234
--- a/stdlib/seed48_r.c
c6d234
+++ b/stdlib/seed48_r.c
c6d234
@@ -21,9 +21,7 @@
c6d234
 #include <limits.h>
c6d234
 
c6d234
 int
c6d234
-__seed48_r (seed16v, buffer)
c6d234
-     unsigned short int seed16v[3];
c6d234
-     struct drand48_data *buffer;
c6d234
+__seed48_r (unsigned short int seed16v[3], struct drand48_data *buffer)
c6d234
 {
c6d234
   /* Save old value at a private place to be used as return value.  */
c6d234
   memcpy (buffer->__old_x, buffer->__x, sizeof (buffer->__x));
c6d234
diff --git a/sysdeps/mach/hurd/execve.c b/sysdeps/mach/hurd/execve.c
c6d234
index 716cea7bf8fd0eba..72e509b7870085d0 100644
c6d234
--- a/sysdeps/mach/hurd/execve.c
c6d234
+++ b/sysdeps/mach/hurd/execve.c
c6d234
@@ -22,10 +22,7 @@
c6d234
 /* Replace the current process, executing FILE_NAME with arguments ARGV and
c6d234
    environment ENVP.  ARGV and ENVP are terminated by NULL pointers.  */
c6d234
 int
c6d234
-__execve (file_name, argv, envp)
c6d234
-     const char *file_name;
c6d234
-     char *const argv[];
c6d234
-     char *const envp[];
c6d234
+__execve (const char *file_name, char *const argv[], char *const envp[])
c6d234
 {
c6d234
   error_t err;
c6d234
   file_t file = __file_name_lookup (file_name, O_EXEC, 0);
c6d234
diff --git a/sysdeps/mach/hurd/utimes.c b/sysdeps/mach/hurd/utimes.c
c6d234
index ae3d375b2dfb3c72..d915fae5bfee9e6e 100644
c6d234
--- a/sysdeps/mach/hurd/utimes.c
c6d234
+++ b/sysdeps/mach/hurd/utimes.c
c6d234
@@ -24,9 +24,7 @@
c6d234
 /* Change the access time of FILE to TVP[0] and
c6d234
    the modification time of FILE to TVP[1].  */
c6d234
 int
c6d234
-__utimes (file, tvp)
c6d234
-     const char *file;
c6d234
-     const struct timeval tvp[2];
c6d234
+__utimes (const char *file, const struct timeval tvp[2])
c6d234
 {
c6d234
   union tv
c6d234
   {
c6d234
diff --git a/sysdeps/unix/sysv/linux/fexecve.c b/sysdeps/unix/sysv/linux/fexecve.c
c6d234
index 032e680742507e70..df341cde0a3ea21b 100644
c6d234
--- a/sysdeps/unix/sysv/linux/fexecve.c
c6d234
+++ b/sysdeps/unix/sysv/linux/fexecve.c
c6d234
@@ -25,10 +25,7 @@
c6d234
 /* Execute the file FD refers to, overlaying the running program image.
c6d234
    ARGV and ENVP are passed to the new program, as for `execve'.  */
c6d234
 int
c6d234
-fexecve (fd, argv, envp)
c6d234
-     int fd;
c6d234
-     char *const argv[];
c6d234
-     char *const envp[];
c6d234
+fexecve (int fd, char *const argv[], char *const envp[])
c6d234
 {
c6d234
   if (fd < 0 || argv == NULL || envp == NULL)
c6d234
     {