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

25845f
commit 9dd346ff431fc761f1b748bd4da8bb59f7652094
25845f
Author: Joseph Myers <joseph@codesourcery.com>
25845f
Date:   Tue Oct 20 11:54:09 2015 +0000
25845f
25845f
    Convert 113 more function definitions to prototype style (files with assertions).
25845f
    
25845f
    This mostly automatically-generated patch converts 113 function
25845f
    definitions in glibc from old-style K&R to prototype-style.  Following
25845f
    my other recent such patches, this one deals with the case of function
25845f
    definitions in files that either contain assertions or where grep
25845f
    suggested they might contain assertions - and thus where it isn't
25845f
    possible to use a simple object code comparison as a sanity check on
25845f
    the correctness of the patch, because line numbers are changed.
25845f
    
25845f
    A few such automatically-generated changes needed to be supplemented
25845f
    by manual changes for the result to compile.  openat64 had a prototype
25845f
    declaration with "..." but an old-style definition in
25845f
    sysdeps/unix/sysv/linux/dl-openat64.c, and "..." needed adding to the
25845f
    generated prototype in the definition (I've filed
25845f
    <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68024> for diagnosing
25845f
    such cases in GCC; the old state was undefined behavior not requiring
25845f
    a diagnostic, but one seems a good idea).  In addition, as Florian has
25845f
    noted regparm attribute mismatches between declaration and definition
25845f
    are only diagnosed for prototype definitions, and five functions
25845f
    needed internal_function added to their definitions (in the case of
25845f
    __pthread_mutex_cond_lock, via the macro definition of
25845f
    __pthread_mutex_lock) to compile on i386.
25845f
    
25845f
    After this patch is in, remaining old-style definitions are probably
25845f
    most readily fixed manually before we can turn on
25845f
    -Wold-style-definition for all builds.
25845f
    
25845f
    Tested for x86_64 and x86 (testsuite).
25845f
    
25845f
            * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
25845f
            function definition.
25845f
            * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
25845f
            * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
25845f
            * debug/backtracesyms.c (__backtrace_symbols): Likewise.
25845f
            * elf/dl-minimal.c (_itoa): Likewise.
25845f
            * hurd/hurdmalloc.c (malloc): Likewise.
25845f
            (free): Likewise.
25845f
            (realloc): Likewise.
25845f
            * inet/inet6_option.c (inet6_option_space): Likewise.
25845f
            (inet6_option_init): Likewise.
25845f
            (inet6_option_append): Likewise.
25845f
            (inet6_option_alloc): Likewise.
25845f
            (inet6_option_next): Likewise.
25845f
            (inet6_option_find): Likewise.
25845f
            * io/ftw.c (FTW_NAME): Likewise.
25845f
            (NFTW_NAME): Likewise.
25845f
            (NFTW_NEW_NAME): Likewise.
25845f
            (NFTW_OLD_NAME): Likewise.
25845f
            * libio/iofwide.c (_IO_fwide): Likewise.
25845f
            * libio/strops.c (_IO_str_init_static_internal): Likewise.
25845f
            (_IO_str_init_static): Likewise.
25845f
            (_IO_str_init_readonly): Likewise.
25845f
            (_IO_str_overflow): Likewise.
25845f
            (_IO_str_underflow): Likewise.
25845f
            (_IO_str_count): Likewise.
25845f
            (_IO_str_seekoff): Likewise.
25845f
            (_IO_str_pbackfail): Likewise.
25845f
            (_IO_str_finish): Likewise.
25845f
            * libio/wstrops.c (_IO_wstr_init_static): Likewise.
25845f
            (_IO_wstr_overflow): Likewise.
25845f
            (_IO_wstr_underflow): Likewise.
25845f
            (_IO_wstr_count): Likewise.
25845f
            (_IO_wstr_seekoff): Likewise.
25845f
            (_IO_wstr_pbackfail): Likewise.
25845f
            (_IO_wstr_finish): Likewise.
25845f
            * locale/programs/localedef.c (normalize_codeset): Likewise.
25845f
            * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
25845f
            (add_locales_to_archive): Likewise.
25845f
            (delete_locales_from_archive): Likewise.
25845f
            * malloc/malloc.c (__libc_mallinfo): Likewise.
25845f
            * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
25845f
            * misc/tsearch.c (__tfind): Likewise.
25845f
            * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
25845f
            * nptl/pthread_attr_getdetachstate.c
25845f
            (__pthread_attr_getdetachstate): Likewise.
25845f
            * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
25845f
            Likewise.
25845f
            * nptl/pthread_attr_getinheritsched.c
25845f
            (__pthread_attr_getinheritsched): Likewise.
25845f
            * nptl/pthread_attr_getschedparam.c
25845f
            (__pthread_attr_getschedparam): Likewise.
25845f
            * nptl/pthread_attr_getschedpolicy.c
25845f
            (__pthread_attr_getschedpolicy): Likewise.
25845f
            * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
25845f
            Likewise.
25845f
            * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
25845f
            Likewise.
25845f
            * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
25845f
            Likewise.
25845f
            * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
25845f
            Likewise.
25845f
            * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
25845f
            (__pthread_attr_init_2_0): Likewise.
25845f
            * nptl/pthread_attr_setdetachstate.c
25845f
            (__pthread_attr_setdetachstate): Likewise.
25845f
            * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
25845f
            Likewise.
25845f
            * nptl/pthread_attr_setinheritsched.c
25845f
            (__pthread_attr_setinheritsched): Likewise.
25845f
            * nptl/pthread_attr_setschedparam.c
25845f
            (__pthread_attr_setschedparam): Likewise.
25845f
            * nptl/pthread_attr_setschedpolicy.c
25845f
            (__pthread_attr_setschedpolicy): Likewise.
25845f
            * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
25845f
            Likewise.
25845f
            * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
25845f
            Likewise.
25845f
            * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
25845f
            Likewise.
25845f
            * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
25845f
            Likewise.
25845f
            * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
25845f
            Likewise.
25845f
            * nptl/pthread_create.c (__find_in_stack_list): Likewise.
25845f
            * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
25845f
            * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
25845f
            use internal_function.
25845f
            * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
25845f
            prototype-style function definition.
25845f
            * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
25845f
            (__pthread_mutex_cond_lock_adjust): Likewise.  Use
25845f
            internal_function.
25845f
            * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
25845f
            Convert to prototype-style function definition.
25845f
            * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
25845f
            Likewise.
25845f
            * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
25845f
            Likewise.
25845f
            (__pthread_mutex_unlock): Likewise.
25845f
            * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
25845f
            * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
25845f
            * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
25845f
            * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
25845f
            * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
25845f
            * nss/makedb.c (process_input): Likewise.
25845f
            * posix/fnmatch.c (__strchrnul): Likewise.
25845f
            (__wcschrnul): Likewise.
25845f
            (fnmatch): Likewise.
25845f
            * posix/fnmatch_loop.c (FCT): Likewise.
25845f
            * posix/glob.c (globfree): Likewise.
25845f
            (__glob_pattern_type): Likewise.
25845f
            (__glob_pattern_p): Likewise.
25845f
            * posix/regcomp.c (re_compile_pattern): Likewise.
25845f
            (re_set_syntax): Likewise.
25845f
            (re_compile_fastmap): Likewise.
25845f
            (regcomp): Likewise.
25845f
            (regerror): Likewise.
25845f
            (regfree): Likewise.
25845f
            * posix/regexec.c (regexec): Likewise.
25845f
            (re_match): Likewise.
25845f
            (re_search): Likewise.
25845f
            (re_match_2): Likewise.
25845f
            (re_search_2): Likewise.
25845f
            (re_search_stub): Likewise.  Use internal_function
25845f
            (re_copy_regs): Likewise.
25845f
            (re_set_registers): Convert to prototype-style function
25845f
            definition.
25845f
            (prune_impossible_nodes): Likewise.  Use internal_function.
25845f
            * resolv/inet_net_pton.c (inet_net_pton): Convert to
25845f
            prototype-style function definition.
25845f
            (inet_net_pton_ipv4): Likewise.
25845f
            * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
25845f
            * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
25845f
            * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
25845f
            * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
25845f
            * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
25845f
            Make variadic.
25845f
            * time/strptime_l.c (localtime_r): Convert to prototype-style
25845f
            function definition.
25845f
            * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
25845f
            * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
25845f
            * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
25845f
            * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
25845f
25845f
Conflicts:
25845f
	malloc/malloc.c
25845f
	  (Textual conflict due to malloc reformatting.)
25845f
	math/gen-auto-libm-tests.c
25845f
	  (Missing backport of ffb536d0ac914a110c160c48d01097d132e20531,
25845f
	  Start generating libm tests automatically with MPFR; file
25845f
	  deleted manually.)
25845f
	sysdeps/pthread/timer_delete.c
25845f
	  (Applied to nptl/sysdeps/pthread/timer_delete.c.)
25845f
25845f
diff --git a/crypt/md5-crypt.c b/crypt/md5-crypt.c
25845f
index db4ea9c6f1f42f00..e8db37641ac50573 100644
25845f
--- a/crypt/md5-crypt.c
25845f
+++ b/crypt/md5-crypt.c
25845f
@@ -93,11 +93,7 @@ extern char *__md5_crypt (const char *key, const char *salt);
25845f
 /* This entry point is equivalent to the `crypt' function in Unix
25845f
    libcs.  */
25845f
 char *
25845f
-__md5_crypt_r (key, salt, buffer, buflen)
25845f
-     const char *key;
25845f
-     const char *salt;
25845f
-     char *buffer;
25845f
-     int buflen;
25845f
+__md5_crypt_r (const char *key, const char *salt, char *buffer, int buflen)
25845f
 {
25845f
   unsigned char alt_result[16]
25845f
     __attribute__ ((__aligned__ (__alignof__ (md5_uint32))));
25845f
diff --git a/crypt/sha256-crypt.c b/crypt/sha256-crypt.c
25845f
index 440933ac015ab2f6..7532d7ddbb558e9a 100644
25845f
--- a/crypt/sha256-crypt.c
25845f
+++ b/crypt/sha256-crypt.c
25845f
@@ -101,11 +101,7 @@ extern char *__sha256_crypt (const char *key, const char *salt);
25845f
 
25845f
 
25845f
 char *
25845f
-__sha256_crypt_r (key, salt, buffer, buflen)
25845f
-     const char *key;
25845f
-     const char *salt;
25845f
-     char *buffer;
25845f
-     int buflen;
25845f
+__sha256_crypt_r (const char *key, const char *salt, char *buffer, int buflen)
25845f
 {
25845f
   unsigned char alt_result[32]
25845f
     __attribute__ ((__aligned__ (__alignof__ (uint32_t))));
25845f
diff --git a/crypt/sha512-crypt.c b/crypt/sha512-crypt.c
25845f
index e5d9cacfdac437a1..8cba4264d2a871e5 100644
25845f
--- a/crypt/sha512-crypt.c
25845f
+++ b/crypt/sha512-crypt.c
25845f
@@ -101,11 +101,7 @@ extern char *__sha512_crypt (const char *key, const char *salt);
25845f
 
25845f
 
25845f
 char *
25845f
-__sha512_crypt_r (key, salt, buffer, buflen)
25845f
-     const char *key;
25845f
-     const char *salt;
25845f
-     char *buffer;
25845f
-     int buflen;
25845f
+__sha512_crypt_r (const char *key, const char *salt, char *buffer, int buflen)
25845f
 {
25845f
   unsigned char alt_result[64]
25845f
     __attribute__ ((__aligned__ (__alignof__ (uint64_t))));
25845f
diff --git a/debug/backtracesyms.c b/debug/backtracesyms.c
25845f
index 3fabf26a8be2289c..938f5f6ff6b38b8a 100644
25845f
--- a/debug/backtracesyms.c
25845f
+++ b/debug/backtracesyms.c
25845f
@@ -34,9 +34,7 @@
25845f
 
25845f
 
25845f
 char **
25845f
-__backtrace_symbols (array, size)
25845f
-     void *const *array;
25845f
-     int size;
25845f
+__backtrace_symbols (void *const *array, int size)
25845f
 {
25845f
   Dl_info info[size];
25845f
   int status[size];
25845f
diff --git a/elf/dl-minimal.c b/elf/dl-minimal.c
25845f
index a8b2d4f339e4c3dd..55ee1af9829bd8f1 100644
25845f
--- a/elf/dl-minimal.c
25845f
+++ b/elf/dl-minimal.c
25845f
@@ -309,11 +309,8 @@ __strtoul_internal (const char *nptr, char **endptr, int base, int group)
25845f
    also has to be present and it is never about speed when these
25845f
    functions are used.  */
25845f
 char *
25845f
-_itoa (value, buflim, base, upper_case)
25845f
-     unsigned long long int value;
25845f
-     char *buflim;
25845f
-     unsigned int base;
25845f
-     int upper_case;
25845f
+_itoa (unsigned long long int value, char *buflim, unsigned int base,
25845f
+       int upper_case)
25845f
 {
25845f
   assert (! upper_case);
25845f
 
25845f
diff --git a/hurd/hurdmalloc.c b/hurd/hurdmalloc.c
25845f
index da611653b602975f..8d1ac3069758bd2d 100644
25845f
--- a/hurd/hurdmalloc.c
25845f
+++ b/hurd/hurdmalloc.c
25845f
@@ -202,8 +202,7 @@ more_memory(int size, free_list_t fl)
25845f
 
25845f
 /* Declaration changed to standard one for GNU.  */
25845f
 void *
25845f
-malloc(size)
25845f
-	size_t size;
25845f
+malloc (size_t size)
25845f
 {
25845f
 	int i, n;
25845f
 	free_list_t fl;
25845f
@@ -269,8 +268,7 @@ malloc(size)
25845f
 
25845f
 /* Declaration changed to standard one for GNU.  */
25845f
 void
25845f
-free(base)
25845f
-	void *base;
25845f
+free (void *base)
25845f
 {
25845f
 	header_t h;
25845f
 	free_list_t fl;
25845f
@@ -318,9 +316,7 @@ free(base)
25845f
 
25845f
 /* Declaration changed to standard one for GNU.  */
25845f
 void *
25845f
-realloc(old_base, new_size)
25845f
-        void *old_base;
25845f
-        size_t new_size;
25845f
+realloc (void *old_base, size_t new_size)
25845f
 {
25845f
 	header_t h;
25845f
 	free_list_t fl;
25845f
diff --git a/inet/inet6_option.c b/inet/inet6_option.c
25845f
index b5ca2a604126b93a..d8c202b867bbe9f6 100644
25845f
--- a/inet/inet6_option.c
25845f
+++ b/inet/inet6_option.c
25845f
@@ -88,8 +88,7 @@ static uint8_t *option_alloc (struct cmsghdr *cmsg, int datalen, int multx,
25845f
    beginning (the value y in the alignment term "xn + y"), the type
25845f
    byte, the length byte, and the option data.  */
25845f
 int
25845f
-inet6_option_space (nbytes)
25845f
-     int nbytes;
25845f
+inet6_option_space (int nbytes)
25845f
 {
25845f
   /* Add room for the extension header.  */
25845f
   nbytes += sizeof (struct ip6_ext);
25845f
@@ -106,10 +105,7 @@ link_warning (inet6_option_space,
25845f
    contain either Hop-by-Hop or Destination options.  It returns 0 on
25845f
    success or -1 on an error.  */
25845f
 int
25845f
-inet6_option_init (bp, cmsgp, type)
25845f
-     void *bp;
25845f
-     struct cmsghdr **cmsgp;
25845f
-     int type;
25845f
+inet6_option_init (void *bp, struct cmsghdr **cmsgp, int type)
25845f
 {
25845f
   /* Only Hop-by-Hop or Destination options allowed.  */
25845f
   if (type != IPV6_HOPOPTS && type != IPV6_DSTOPTS)
25845f
@@ -143,11 +139,8 @@ link_warning (inet6_option_init,
25845f
    inet6_option_init().  This function returns 0 if it succeeds or -1 on
25845f
    an error.  */
25845f
 int
25845f
-inet6_option_append (cmsg, typep, multx, plusy)
25845f
-     struct cmsghdr *cmsg;
25845f
-     const uint8_t *typep;
25845f
-     int multx;
25845f
-     int plusy;
25845f
+inet6_option_append (struct cmsghdr *cmsg, const uint8_t *typep, int multx,
25845f
+		     int plusy)
25845f
 {
25845f
   /* typep is a pointer to the 8-bit option type.  It is assumed that this
25845f
      field is immediately followed by the 8-bit option data length field,
25845f
@@ -223,11 +216,7 @@ option_alloc (struct cmsghdr *cmsg, int datalen, int multx, int plusy)
25845f
 
25845f
 
25845f
 uint8_t *
25845f
-inet6_option_alloc (cmsg, datalen, multx, plusy)
25845f
-     struct cmsghdr *cmsg;
25845f
-     int datalen;
25845f
-     int multx;
25845f
-     int plusy;
25845f
+inet6_option_alloc (struct cmsghdr *cmsg, int datalen, int multx, int plusy)
25845f
 {
25845f
   return option_alloc (cmsg, datalen, multx, plusy);
25845f
 }
25845f
@@ -245,9 +234,7 @@ link_warning (inet6_option_alloc,
25845f
    to be processed, the return value is -1 and *tptrp is NULL.  If an
25845f
    error occurs, the return value is -1 and *tptrp is not NULL.  */
25845f
 int
25845f
-inet6_option_next (cmsg, tptrp)
25845f
-     const struct cmsghdr *cmsg;
25845f
-     uint8_t **tptrp;
25845f
+inet6_option_next (const struct cmsghdr *cmsg, uint8_t **tptrp)
25845f
 {
25845f
   /* Make sure it is an option of the right type.  */
25845f
   if (cmsg->cmsg_level != IPPROTO_IPV6
25845f
@@ -303,10 +290,7 @@ link_warning (inet6_option_next,
25845f
    pointer to cmsghdr structure of which cmsg_level equals IPPROTO_IPV6
25845f
    and cmsg_type equals either IPV6_HOPOPTS or IPV6_DSTOPTS.  */
25845f
 int
25845f
-inet6_option_find (cmsg, tptrp, type)
25845f
-     const struct cmsghdr *cmsg;
25845f
-     uint8_t **tptrp;
25845f
-     int type;
25845f
+inet6_option_find (const struct cmsghdr *cmsg, uint8_t **tptrp, int type)
25845f
 {
25845f
   /* Make sure it is an option of the right type.  */
25845f
   if (cmsg->cmsg_level != IPPROTO_IPV6
25845f
diff --git a/io/ftw.c b/io/ftw.c
25845f
index ffdb4b02dc7ca4d5..57777b3de86e417c 100644
25845f
--- a/io/ftw.c
25845f
+++ b/io/ftw.c
25845f
@@ -817,21 +817,14 @@ ftw_startup (const char *dir, int is_nftw, void *func, int descriptors,
25845f
 /* Entry points.  */
25845f
 
25845f
 int
25845f
-FTW_NAME (path, func, descriptors)
25845f
-     const char *path;
25845f
-     FTW_FUNC_T func;
25845f
-     int descriptors;
25845f
+FTW_NAME (const char *path, FTW_FUNC_T func, int descriptors)
25845f
 {
25845f
   return ftw_startup (path, 0, func, descriptors, 0);
25845f
 }
25845f
 
25845f
 #ifndef _LIBC
25845f
 int
25845f
-NFTW_NAME (path, func, descriptors, flags)
25845f
-     const char *path;
25845f
-     NFTW_FUNC_T func;
25845f
-     int descriptors;
25845f
-     int flags;
25845f
+NFTW_NAME (const char *path, NFTW_FUNC_T func, int descriptors, int flags)
25845f
 {
25845f
   return ftw_startup (path, 1, func, descriptors, flags);
25845f
 }
25845f
@@ -842,11 +835,7 @@ NFTW_NAME (path, func, descriptors, flags)
25845f
 int NFTW_NEW_NAME (const char *, NFTW_FUNC_T, int, int);
25845f
 
25845f
 int
25845f
-NFTW_NEW_NAME (path, func, descriptors, flags)
25845f
-     const char *path;
25845f
-     NFTW_FUNC_T func;
25845f
-     int descriptors;
25845f
-     int flags;
25845f
+NFTW_NEW_NAME (const char *path, NFTW_FUNC_T func, int descriptors, int flags)
25845f
 {
25845f
   if (flags
25845f
       & ~(FTW_PHYS | FTW_MOUNT | FTW_CHDIR | FTW_DEPTH | FTW_ACTIONRETVAL))
25845f
@@ -867,11 +856,7 @@ int NFTW_OLD_NAME (const char *, NFTW_FUNC_T, int, int);
25845f
 
25845f
 int
25845f
 attribute_compat_text_section
25845f
-NFTW_OLD_NAME (path, func, descriptors, flags)
25845f
-     const char *path;
25845f
-     NFTW_FUNC_T func;
25845f
-     int descriptors;
25845f
-     int flags;
25845f
+NFTW_OLD_NAME (const char *path, NFTW_FUNC_T func, int descriptors, int flags)
25845f
 {
25845f
   flags &= (FTW_PHYS | FTW_MOUNT | FTW_CHDIR | FTW_DEPTH);
25845f
   return ftw_startup (path, 1, func, descriptors, flags);
25845f
diff --git a/libio/iofwide.c b/libio/iofwide.c
25845f
index 675fbccc794ffe79..fe685402001a5336 100644
25845f
--- a/libio/iofwide.c
25845f
+++ b/libio/iofwide.c
25845f
@@ -93,9 +93,7 @@ const struct __gconv_trans_data __libio_translit attribute_hidden =
25845f
    the orientation first.  */
25845f
 #undef _IO_fwide
25845f
 int
25845f
-_IO_fwide (fp, mode)
25845f
-     _IO_FILE *fp;
25845f
-     int mode;
25845f
+_IO_fwide (_IO_FILE *fp, int mode)
25845f
 {
25845f
   /* Normalize the value.  */
25845f
   mode = mode < 0 ? -1 : (mode == 0 ? 0 : 1);
25845f
diff --git a/libio/strops.c b/libio/strops.c
25845f
index a5b76af963e77877..fdd113a60811e593 100644
25845f
--- a/libio/strops.c
25845f
+++ b/libio/strops.c
25845f
@@ -31,11 +31,8 @@
25845f
 #include <stdio_ext.h>
25845f
 
25845f
 void
25845f
-_IO_str_init_static_internal (sf, ptr, size, pstart)
25845f
-     _IO_strfile *sf;
25845f
-     char *ptr;
25845f
-     _IO_size_t size;
25845f
-     char *pstart;
25845f
+_IO_str_init_static_internal (_IO_strfile *sf, char *ptr, _IO_size_t size,
25845f
+			      char *pstart)
25845f
 {
25845f
   _IO_FILE *fp = &sf->_sbf._f;
25845f
   char *end;
25845f
@@ -81,9 +78,7 @@ _IO_str_init_readonly (_IO_strfile *sf, const char *ptr, int size)
25845f
 }
25845f
 
25845f
 int
25845f
-_IO_str_overflow (fp, c)
25845f
-     _IO_FILE *fp;
25845f
-     int c;
25845f
+_IO_str_overflow (_IO_FILE *fp, int c)
25845f
 {
25845f
   int flush_only = c == EOF;
25845f
   _IO_size_t pos;
25845f
@@ -144,8 +139,7 @@ _IO_str_overflow (fp, c)
25845f
 libc_hidden_def (_IO_str_overflow)
25845f
 
25845f
 int
25845f
-_IO_str_underflow (fp)
25845f
-     _IO_FILE *fp;
25845f
+_IO_str_underflow (_IO_FILE *fp)
25845f
 {
25845f
   if (fp->_IO_write_ptr > fp->_IO_read_end)
25845f
     fp->_IO_read_end = fp->_IO_write_ptr;
25845f
@@ -165,8 +159,7 @@ libc_hidden_def (_IO_str_underflow)
25845f
 /* The size of the valid part of the buffer.  */
25845f
 
25845f
 _IO_ssize_t
25845f
-_IO_str_count (fp)
25845f
-     _IO_FILE *fp;
25845f
+_IO_str_count (_IO_FILE *fp)
25845f
 {
25845f
   return ((fp->_IO_write_ptr > fp->_IO_read_end
25845f
 	   ? fp->_IO_write_ptr : fp->_IO_read_end)
25845f
@@ -239,11 +232,7 @@ enlarge_userbuf (_IO_FILE *fp, _IO_off64_t offset, int reading)
25845f
 
25845f
 
25845f
 _IO_off64_t
25845f
-_IO_str_seekoff (fp, offset, dir, mode)
25845f
-     _IO_FILE *fp;
25845f
-     _IO_off64_t offset;
25845f
-     int dir;
25845f
-     int mode;
25845f
+_IO_str_seekoff (_IO_FILE *fp, _IO_off64_t offset, int dir, int mode)
25845f
 {
25845f
   _IO_off64_t new_pos;
25845f
 
25845f
@@ -316,9 +305,7 @@ _IO_str_seekoff (fp, offset, dir, mode)
25845f
 libc_hidden_def (_IO_str_seekoff)
25845f
 
25845f
 int
25845f
-_IO_str_pbackfail (fp, c)
25845f
-     _IO_FILE *fp;
25845f
-     int c;
25845f
+_IO_str_pbackfail (_IO_FILE *fp, int c)
25845f
 {
25845f
   if ((fp->_flags & _IO_NO_WRITES) && c != EOF)
25845f
     return EOF;
25845f
@@ -327,9 +314,7 @@ _IO_str_pbackfail (fp, c)
25845f
 libc_hidden_def (_IO_str_pbackfail)
25845f
 
25845f
 void
25845f
-_IO_str_finish (fp, dummy)
25845f
-     _IO_FILE *fp;
25845f
-     int dummy;
25845f
+_IO_str_finish (_IO_FILE *fp, int dummy)
25845f
 {
25845f
   if (fp->_IO_buf_base && !(fp->_flags & _IO_USER_BUF))
25845f
     (((_IO_strfile *) fp)->_s._free_buffer) (fp->_IO_buf_base);
25845f
diff --git a/libio/wstrops.c b/libio/wstrops.c
25845f
index d84c5883ad7ca20d..7a9a33ab8763b8ff 100644
25845f
--- a/libio/wstrops.c
25845f
+++ b/libio/wstrops.c
25845f
@@ -32,11 +32,8 @@
25845f
 #include <stdio_ext.h>
25845f
 
25845f
 void
25845f
-_IO_wstr_init_static (fp, ptr, size, pstart)
25845f
-     _IO_FILE *fp;
25845f
-     wchar_t *ptr;
25845f
-     _IO_size_t size;
25845f
-     wchar_t *pstart;
25845f
+_IO_wstr_init_static (_IO_FILE *fp, wchar_t *ptr, _IO_size_t size,
25845f
+		      wchar_t *pstart)
25845f
 {
25845f
   wchar_t *end;
25845f
 
25845f
@@ -70,9 +67,7 @@ _IO_wstr_init_static (fp, ptr, size, pstart)
25845f
 }
25845f
 
25845f
 _IO_wint_t
25845f
-_IO_wstr_overflow (fp, c)
25845f
-     _IO_FILE *fp;
25845f
-     _IO_wint_t c;
25845f
+_IO_wstr_overflow (_IO_FILE *fp, _IO_wint_t c)
25845f
 {
25845f
   int flush_only = c == WEOF;
25845f
   _IO_size_t pos;
25845f
@@ -142,8 +137,7 @@ _IO_wstr_overflow (fp, c)
25845f
 
25845f
 
25845f
 _IO_wint_t
25845f
-_IO_wstr_underflow (fp)
25845f
-     _IO_FILE *fp;
25845f
+_IO_wstr_underflow (_IO_FILE *fp)
25845f
 {
25845f
   if (fp->_wide_data->_IO_write_ptr > fp->_wide_data->_IO_read_end)
25845f
     fp->_wide_data->_IO_read_end = fp->_wide_data->_IO_write_ptr;
25845f
@@ -162,8 +156,7 @@ _IO_wstr_underflow (fp)
25845f
 
25845f
 /* The size of the valid part of the buffer.  */
25845f
 _IO_ssize_t
25845f
-_IO_wstr_count (fp)
25845f
-     _IO_FILE *fp;
25845f
+_IO_wstr_count (_IO_FILE *fp)
25845f
 {
25845f
   struct _IO_wide_data *wd = fp->_wide_data;
25845f
 
25845f
@@ -244,11 +237,7 @@ enlarge_userbuf (_IO_FILE *fp, _IO_off64_t offset, int reading)
25845f
 
25845f
 
25845f
 _IO_off64_t
25845f
-_IO_wstr_seekoff (fp, offset, dir, mode)
25845f
-     _IO_FILE *fp;
25845f
-     _IO_off64_t offset;
25845f
-     int dir;
25845f
-     int mode;
25845f
+_IO_wstr_seekoff (_IO_FILE *fp, _IO_off64_t offset, int dir, int mode)
25845f
 {
25845f
   _IO_off64_t new_pos;
25845f
 
25845f
@@ -326,9 +315,7 @@ _IO_wstr_seekoff (fp, offset, dir, mode)
25845f
 }
25845f
 
25845f
 _IO_wint_t
25845f
-_IO_wstr_pbackfail (fp, c)
25845f
-     _IO_FILE *fp;
25845f
-     _IO_wint_t c;
25845f
+_IO_wstr_pbackfail (_IO_FILE *fp, _IO_wint_t c)
25845f
 {
25845f
   if ((fp->_flags & _IO_NO_WRITES) && c != WEOF)
25845f
     return WEOF;
25845f
@@ -336,9 +323,7 @@ _IO_wstr_pbackfail (fp, c)
25845f
 }
25845f
 
25845f
 void
25845f
-_IO_wstr_finish (fp, dummy)
25845f
-     _IO_FILE *fp;
25845f
-     int dummy;
25845f
+_IO_wstr_finish (_IO_FILE *fp, int dummy)
25845f
 {
25845f
   if (fp->_wide_data->_IO_buf_base && !(fp->_flags2 & _IO_FLAGS2_USER_WBUF))
25845f
     (((_IO_strfile *) fp)->_s._free_buffer) (fp->_wide_data->_IO_buf_base);
25845f
diff --git a/locale/programs/localedef.c b/locale/programs/localedef.c
25845f
index d1a8916888d21235..4a63f68dd8309ec7 100644
25845f
--- a/locale/programs/localedef.c
25845f
+++ b/locale/programs/localedef.c
25845f
@@ -491,9 +491,7 @@ construct_output_path (char *path)
25845f
    names.  Normalization allows the user to use any of the common
25845f
    names.  */
25845f
 static const char *
25845f
-normalize_codeset (codeset, name_len)
25845f
-     const char *codeset;
25845f
-     size_t name_len;
25845f
+normalize_codeset (const char *codeset, size_t name_len)
25845f
 {
25845f
   int len = 0;
25845f
   int only_digit = 1;
25845f
diff --git a/locale/programs/locarchive.c b/locale/programs/locarchive.c
25845f
index 1eae271186bc80a9..de98b994425474ba 100644
25845f
--- a/locale/programs/locarchive.c
25845f
+++ b/locale/programs/locarchive.c
25845f
@@ -1059,11 +1059,8 @@ add_locale (struct locarhandle *ah,
25845f
    of the files if necessary.  Add all the names, possibly overwriting
25845f
    old files.  */
25845f
 int
25845f
-add_locale_to_archive (ah, name, data, replace)
25845f
-     struct locarhandle *ah;
25845f
-     const char *name;
25845f
-     locale_data_t data;
25845f
-     bool replace;
25845f
+add_locale_to_archive (struct locarhandle *ah, const char *name,
25845f
+		       locale_data_t data, bool replace)
25845f
 {
25845f
   char *normalized_name = NULL;
25845f
   uint32_t locrec_offset;
25845f
@@ -1260,10 +1257,7 @@ add_locale_to_archive (ah, name, data, replace)
25845f
 
25845f
 
25845f
 int
25845f
-add_locales_to_archive (nlist, list, replace)
25845f
-     size_t nlist;
25845f
-     char *list[];
25845f
-     bool replace;
25845f
+add_locales_to_archive (size_t nlist, char *list[], bool replace)
25845f
 {
25845f
   struct locarhandle ah;
25845f
   int result = 0;
25845f
@@ -1460,9 +1454,7 @@ add_locales_to_archive (nlist, list, replace)
25845f
 
25845f
 
25845f
 int
25845f
-delete_locales_from_archive (nlist, list)
25845f
-     size_t nlist;
25845f
-     char *list[];
25845f
+delete_locales_from_archive (size_t nlist, char *list[])
25845f
 {
25845f
   struct locarhandle ah;
25845f
   struct locarhead *head;
25845f
diff --git a/malloc/malloc.c b/malloc/malloc.c
25845f
index 3e7b9bf9e8d71247..1de07de97bb421d6 100644
25845f
--- a/malloc/malloc.c
25845f
+++ b/malloc/malloc.c
25845f
@@ -4662,7 +4662,8 @@ int_mallinfo(mstate av, struct mallinfo *m)
25845f
 }
25845f
 
25845f
 
25845f
-struct mallinfo __libc_mallinfo()
25845f
+struct mallinfo
25845f
+__libc_mallinfo (void)
25845f
 {
25845f
   struct mallinfo m;
25845f
   mstate ar_ptr;
25845f
diff --git a/misc/tsearch.c b/misc/tsearch.c
25845f
index eb4d97d7eee89a89..5f012e9ba9f678dc 100644
25845f
--- a/misc/tsearch.c
25845f
+++ b/misc/tsearch.c
25845f
@@ -300,10 +300,7 @@ weak_alias (__tsearch, tsearch)
25845f
    KEY is the key to be located, ROOTP is the address of tree root,
25845f
    COMPAR the ordering function.  */
25845f
 void *
25845f
-__tfind (key, vrootp, compar)
25845f
-     const void *key;
25845f
-     void *const *vrootp;
25845f
-     __compar_fn_t compar;
25845f
+__tfind (const void *key, void *const *vrootp, __compar_fn_t compar)
25845f
 {
25845f
   node *rootp = (node *) vrootp;
25845f
 
25845f
diff --git a/nptl/pthread_attr_destroy.c b/nptl/pthread_attr_destroy.c
25845f
index c79752d89d05e158..ccdb5cc41f10bcdf 100644
25845f
--- a/nptl/pthread_attr_destroy.c
25845f
+++ b/nptl/pthread_attr_destroy.c
25845f
@@ -24,8 +24,7 @@
25845f
 #include <shlib-compat.h>
25845f
 
25845f
 int
25845f
-__pthread_attr_destroy (attr)
25845f
-     pthread_attr_t *attr;
25845f
+__pthread_attr_destroy (pthread_attr_t *attr)
25845f
 {
25845f
   struct pthread_attr *iattr;
25845f
 
25845f
diff --git a/nptl/pthread_attr_getdetachstate.c b/nptl/pthread_attr_getdetachstate.c
25845f
index 1c800323bf165a9d..601c5e77483bb5dc 100644
25845f
--- a/nptl/pthread_attr_getdetachstate.c
25845f
+++ b/nptl/pthread_attr_getdetachstate.c
25845f
@@ -21,9 +21,7 @@
25845f
 
25845f
 
25845f
 int
25845f
-__pthread_attr_getdetachstate (attr, detachstate)
25845f
-     const pthread_attr_t *attr;
25845f
-     int *detachstate;
25845f
+__pthread_attr_getdetachstate (const pthread_attr_t *attr, int *detachstate)
25845f
 {
25845f
   struct pthread_attr *iattr;
25845f
 
25845f
diff --git a/nptl/pthread_attr_getguardsize.c b/nptl/pthread_attr_getguardsize.c
25845f
index 497010dc17002951..3fba0b8c548305f5 100644
25845f
--- a/nptl/pthread_attr_getguardsize.c
25845f
+++ b/nptl/pthread_attr_getguardsize.c
25845f
@@ -21,9 +21,7 @@
25845f
 
25845f
 
25845f
 int
25845f
-pthread_attr_getguardsize (attr, guardsize)
25845f
-     const pthread_attr_t *attr;
25845f
-     size_t *guardsize;
25845f
+pthread_attr_getguardsize (const pthread_attr_t *attr, size_t *guardsize)
25845f
 {
25845f
   struct pthread_attr *iattr;
25845f
 
25845f
diff --git a/nptl/pthread_attr_getinheritsched.c b/nptl/pthread_attr_getinheritsched.c
25845f
index b25d808247cd26f1..df2c31dfa5955677 100644
25845f
--- a/nptl/pthread_attr_getinheritsched.c
25845f
+++ b/nptl/pthread_attr_getinheritsched.c
25845f
@@ -21,9 +21,7 @@
25845f
 
25845f
 
25845f
 int
25845f
-__pthread_attr_getinheritsched (attr, inherit)
25845f
-     const pthread_attr_t *attr;
25845f
-     int *inherit;
25845f
+__pthread_attr_getinheritsched (const pthread_attr_t *attr, int *inherit)
25845f
 {
25845f
   struct pthread_attr *iattr;
25845f
 
25845f
diff --git a/nptl/pthread_attr_getschedparam.c b/nptl/pthread_attr_getschedparam.c
25845f
index 352ecb54f31e0cd5..f8a0b8be60bc059b 100644
25845f
--- a/nptl/pthread_attr_getschedparam.c
25845f
+++ b/nptl/pthread_attr_getschedparam.c
25845f
@@ -22,9 +22,8 @@
25845f
 
25845f
 
25845f
 int
25845f
-__pthread_attr_getschedparam (attr, param)
25845f
-     const pthread_attr_t *attr;
25845f
-     struct sched_param *param;
25845f
+__pthread_attr_getschedparam (const pthread_attr_t *attr,
25845f
+			      struct sched_param *param)
25845f
 {
25845f
   struct pthread_attr *iattr;
25845f
 
25845f
diff --git a/nptl/pthread_attr_getschedpolicy.c b/nptl/pthread_attr_getschedpolicy.c
25845f
index badec6b4e73ebe4c..4140876527bf833f 100644
25845f
--- a/nptl/pthread_attr_getschedpolicy.c
25845f
+++ b/nptl/pthread_attr_getschedpolicy.c
25845f
@@ -21,9 +21,7 @@
25845f
 
25845f
 
25845f
 int
25845f
-__pthread_attr_getschedpolicy (attr, policy)
25845f
-     const pthread_attr_t *attr;
25845f
-     int *policy;
25845f
+__pthread_attr_getschedpolicy (const pthread_attr_t *attr, int *policy)
25845f
 {
25845f
   struct pthread_attr *iattr;
25845f
 
25845f
diff --git a/nptl/pthread_attr_getscope.c b/nptl/pthread_attr_getscope.c
25845f
index b2e1b141b6d109e9..fc79b8e95a779e99 100644
25845f
--- a/nptl/pthread_attr_getscope.c
25845f
+++ b/nptl/pthread_attr_getscope.c
25845f
@@ -21,9 +21,7 @@
25845f
 
25845f
 
25845f
 int
25845f
-__pthread_attr_getscope (attr, scope)
25845f
-     const pthread_attr_t *attr;
25845f
-     int *scope;
25845f
+__pthread_attr_getscope (const pthread_attr_t *attr, int *scope)
25845f
 {
25845f
   struct pthread_attr *iattr;
25845f
 
25845f
diff --git a/nptl/pthread_attr_getstack.c b/nptl/pthread_attr_getstack.c
25845f
index 0ede9e77a1260997..df77a35380be68a4 100644
25845f
--- a/nptl/pthread_attr_getstack.c
25845f
+++ b/nptl/pthread_attr_getstack.c
25845f
@@ -21,10 +21,8 @@
25845f
 
25845f
 
25845f
 int
25845f
-__pthread_attr_getstack (attr, stackaddr, stacksize)
25845f
-     const pthread_attr_t *attr;
25845f
-     void **stackaddr;
25845f
-     size_t *stacksize;
25845f
+__pthread_attr_getstack (const pthread_attr_t *attr, void **stackaddr,
25845f
+			 size_t *stacksize)
25845f
 {
25845f
   struct pthread_attr *iattr;
25845f
 
25845f
diff --git a/nptl/pthread_attr_getstackaddr.c b/nptl/pthread_attr_getstackaddr.c
25845f
index 958a856f5842c0c1..859eb7dec98568b7 100644
25845f
--- a/nptl/pthread_attr_getstackaddr.c
25845f
+++ b/nptl/pthread_attr_getstackaddr.c
25845f
@@ -22,9 +22,7 @@
25845f
 
25845f
 
25845f
 int
25845f
-__pthread_attr_getstackaddr (attr, stackaddr)
25845f
-     const pthread_attr_t *attr;
25845f
-     void **stackaddr;
25845f
+__pthread_attr_getstackaddr (const pthread_attr_t *attr, void **stackaddr)
25845f
 {
25845f
   struct pthread_attr *iattr;
25845f
 
25845f
diff --git a/nptl/pthread_attr_getstacksize.c b/nptl/pthread_attr_getstacksize.c
25845f
index 7c63e55942536cc3..53d65257ebdcd408 100644
25845f
--- a/nptl/pthread_attr_getstacksize.c
25845f
+++ b/nptl/pthread_attr_getstacksize.c
25845f
@@ -21,9 +21,7 @@
25845f
 
25845f
 
25845f
 int
25845f
-__pthread_attr_getstacksize (attr, stacksize)
25845f
-     const pthread_attr_t *attr;
25845f
-     size_t *stacksize;
25845f
+__pthread_attr_getstacksize (const pthread_attr_t *attr, size_t *stacksize)
25845f
 {
25845f
   struct pthread_attr *iattr;
25845f
 
25845f
diff --git a/nptl/pthread_attr_init.c b/nptl/pthread_attr_init.c
25845f
index a7add4b80d248cc8..e5b800b72e100acf 100644
25845f
--- a/nptl/pthread_attr_init.c
25845f
+++ b/nptl/pthread_attr_init.c
25845f
@@ -30,8 +30,7 @@ int __attr_list_lock = LLL_LOCK_INITIALIZER;
25845f
 
25845f
 
25845f
 int
25845f
-__pthread_attr_init_2_1 (attr)
25845f
-     pthread_attr_t *attr;
25845f
+__pthread_attr_init_2_1 (pthread_attr_t *attr)
25845f
 {
25845f
   struct pthread_attr *iattr;
25845f
 
25845f
@@ -54,8 +53,7 @@ versioned_symbol (libpthread, __pthread_attr_init_2_1, pthread_attr_init,
25845f
 
25845f
 #if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)
25845f
 int
25845f
-__pthread_attr_init_2_0 (attr)
25845f
-     pthread_attr_t *attr;
25845f
+__pthread_attr_init_2_0 (pthread_attr_t *attr)
25845f
 {
25845f
   /* This code is specific to the old LinuxThread code which has a too
25845f
      small pthread_attr_t definition.  The struct looked like
25845f
diff --git a/nptl/pthread_attr_setdetachstate.c b/nptl/pthread_attr_setdetachstate.c
25845f
index 9ce8651f0b5906d3..9d22974536c07822 100644
25845f
--- a/nptl/pthread_attr_setdetachstate.c
25845f
+++ b/nptl/pthread_attr_setdetachstate.c
25845f
@@ -22,9 +22,7 @@
25845f
 
25845f
 
25845f
 int
25845f
-__pthread_attr_setdetachstate (attr, detachstate)
25845f
-     pthread_attr_t *attr;
25845f
-     int detachstate;
25845f
+__pthread_attr_setdetachstate (pthread_attr_t *attr, int detachstate)
25845f
 {
25845f
   struct pthread_attr *iattr;
25845f
 
25845f
diff --git a/nptl/pthread_attr_setguardsize.c b/nptl/pthread_attr_setguardsize.c
25845f
index b9f1436054577e15..475054642f406517 100644
25845f
--- a/nptl/pthread_attr_setguardsize.c
25845f
+++ b/nptl/pthread_attr_setguardsize.c
25845f
@@ -21,9 +21,7 @@
25845f
 
25845f
 
25845f
 int
25845f
-pthread_attr_setguardsize (attr, guardsize)
25845f
-     pthread_attr_t *attr;
25845f
-     size_t guardsize;
25845f
+pthread_attr_setguardsize (pthread_attr_t *attr, size_t guardsize)
25845f
 {
25845f
   struct pthread_attr *iattr;
25845f
 
25845f
diff --git a/nptl/pthread_attr_setinheritsched.c b/nptl/pthread_attr_setinheritsched.c
25845f
index 2cc8c0ee06149f96..1107c64866f7e078 100644
25845f
--- a/nptl/pthread_attr_setinheritsched.c
25845f
+++ b/nptl/pthread_attr_setinheritsched.c
25845f
@@ -22,9 +22,7 @@
25845f
 
25845f
 
25845f
 int
25845f
-__pthread_attr_setinheritsched (attr, inherit)
25845f
-     pthread_attr_t *attr;
25845f
-     int inherit;
25845f
+__pthread_attr_setinheritsched (pthread_attr_t *attr, int inherit)
25845f
 {
25845f
   struct pthread_attr *iattr;
25845f
 
25845f
diff --git a/nptl/pthread_attr_setschedparam.c b/nptl/pthread_attr_setschedparam.c
25845f
index 239a41bfcc764903..ad7488688cc8d51d 100644
25845f
--- a/nptl/pthread_attr_setschedparam.c
25845f
+++ b/nptl/pthread_attr_setschedparam.c
25845f
@@ -23,9 +23,8 @@
25845f
 
25845f
 
25845f
 int
25845f
-__pthread_attr_setschedparam (attr, param)
25845f
-     pthread_attr_t *attr;
25845f
-     const struct sched_param *param;
25845f
+__pthread_attr_setschedparam (pthread_attr_t *attr,
25845f
+			      const struct sched_param *param)
25845f
 {
25845f
   assert (sizeof (*attr) >= sizeof (struct pthread_attr));
25845f
   struct pthread_attr *iattr = (struct pthread_attr *) attr;
25845f
diff --git a/nptl/pthread_attr_setschedpolicy.c b/nptl/pthread_attr_setschedpolicy.c
25845f
index 0ba38a022eb564bf..ccab923cabe9f20b 100644
25845f
--- a/nptl/pthread_attr_setschedpolicy.c
25845f
+++ b/nptl/pthread_attr_setschedpolicy.c
25845f
@@ -22,9 +22,7 @@
25845f
 
25845f
 
25845f
 int
25845f
-__pthread_attr_setschedpolicy (attr, policy)
25845f
-     pthread_attr_t *attr;
25845f
-     int policy;
25845f
+__pthread_attr_setschedpolicy (pthread_attr_t *attr, int policy)
25845f
 {
25845f
   struct pthread_attr *iattr;
25845f
 
25845f
diff --git a/nptl/pthread_attr_setscope.c b/nptl/pthread_attr_setscope.c
25845f
index eb03731cb2563e5a..62d250c4fdb34497 100644
25845f
--- a/nptl/pthread_attr_setscope.c
25845f
+++ b/nptl/pthread_attr_setscope.c
25845f
@@ -22,9 +22,7 @@
25845f
 
25845f
 
25845f
 int
25845f
-__pthread_attr_setscope (attr, scope)
25845f
-     pthread_attr_t *attr;
25845f
-     int scope;
25845f
+__pthread_attr_setscope (pthread_attr_t *attr, int scope)
25845f
 {
25845f
   struct pthread_attr *iattr;
25845f
 
25845f
diff --git a/nptl/pthread_attr_setstack.c b/nptl/pthread_attr_setstack.c
25845f
index 72eaee218474de88..e8c2b8515dc5912b 100644
25845f
--- a/nptl/pthread_attr_setstack.c
25845f
+++ b/nptl/pthread_attr_setstack.c
25845f
@@ -28,10 +28,8 @@
25845f
 
25845f
 
25845f
 int
25845f
-__pthread_attr_setstack (attr, stackaddr, stacksize)
25845f
-     pthread_attr_t *attr;
25845f
-     void *stackaddr;
25845f
-     size_t stacksize;
25845f
+__pthread_attr_setstack (pthread_attr_t *attr, void *stackaddr,
25845f
+			 size_t stacksize)
25845f
 {
25845f
   struct pthread_attr *iattr;
25845f
 
25845f
diff --git a/nptl/pthread_attr_setstackaddr.c b/nptl/pthread_attr_setstackaddr.c
25845f
index b1a33d8c3f7043c3..e20eff61fa591364 100644
25845f
--- a/nptl/pthread_attr_setstackaddr.c
25845f
+++ b/nptl/pthread_attr_setstackaddr.c
25845f
@@ -22,9 +22,7 @@
25845f
 
25845f
 
25845f
 int
25845f
-__pthread_attr_setstackaddr (attr, stackaddr)
25845f
-     pthread_attr_t *attr;
25845f
-     void *stackaddr;
25845f
+__pthread_attr_setstackaddr (pthread_attr_t *attr, void *stackaddr)
25845f
 {
25845f
   struct pthread_attr *iattr;
25845f
 
25845f
diff --git a/nptl/pthread_attr_setstacksize.c b/nptl/pthread_attr_setstacksize.c
25845f
index 954cc0f4d0b5a56e..890d3a492bc83030 100644
25845f
--- a/nptl/pthread_attr_setstacksize.c
25845f
+++ b/nptl/pthread_attr_setstacksize.c
25845f
@@ -27,9 +27,7 @@
25845f
 
25845f
 
25845f
 int
25845f
-__pthread_attr_setstacksize (attr, stacksize)
25845f
-     pthread_attr_t *attr;
25845f
-     size_t stacksize;
25845f
+__pthread_attr_setstacksize (pthread_attr_t *attr, size_t stacksize)
25845f
 {
25845f
   struct pthread_attr *iattr;
25845f
 
25845f
diff --git a/nptl/pthread_condattr_setclock.c b/nptl/pthread_condattr_setclock.c
25845f
index 8b05dc84e923cf63..fd0b7328088e6f30 100644
25845f
--- a/nptl/pthread_condattr_setclock.c
25845f
+++ b/nptl/pthread_condattr_setclock.c
25845f
@@ -26,9 +26,7 @@
25845f
 
25845f
 
25845f
 int
25845f
-pthread_condattr_setclock (attr, clock_id)
25845f
-     pthread_condattr_t *attr;
25845f
-     clockid_t clock_id;
25845f
+pthread_condattr_setclock (pthread_condattr_t *attr, clockid_t clock_id)
25845f
 {
25845f
   /* Only a few clocks are allowed.  */
25845f
   if (clock_id != CLOCK_MONOTONIC && clock_id != CLOCK_REALTIME)
25845f
diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c
25845f
index 1083d6faacca5ab6..987469ba58e7bffa 100644
25845f
--- a/nptl/pthread_create.c
25845f
+++ b/nptl/pthread_create.c
25845f
@@ -60,8 +60,7 @@ unsigned int __nptl_nthreads = 1;
25845f
 
25845f
 struct pthread *
25845f
 internal_function
25845f
-__find_in_stack_list (pd)
25845f
-     struct pthread *pd;
25845f
+__find_in_stack_list (struct pthread *pd)
25845f
 {
25845f
   list_t *entry;
25845f
   struct pthread *result = NULL;
25845f
diff --git a/nptl/pthread_getattr_np.c b/nptl/pthread_getattr_np.c
25845f
index 72361c9f0497e048..8df7f6feb93ca0bb 100644
25845f
--- a/nptl/pthread_getattr_np.c
25845f
+++ b/nptl/pthread_getattr_np.c
25845f
@@ -30,9 +30,7 @@
25845f
 
25845f
 
25845f
 int
25845f
-pthread_getattr_np (thread_id, attr)
25845f
-     pthread_t thread_id;
25845f
-     pthread_attr_t *attr;
25845f
+pthread_getattr_np (pthread_t thread_id, pthread_attr_t *attr)
25845f
 {
25845f
   struct pthread *thread = (struct pthread *) thread_id;
25845f
   struct pthread_attr *iattr = (struct pthread_attr *) attr;
25845f
diff --git a/nptl/pthread_mutex_init.c b/nptl/pthread_mutex_init.c
25845f
index 2979468fa516c587..0aec130f4d1754d9 100644
25845f
--- a/nptl/pthread_mutex_init.c
25845f
+++ b/nptl/pthread_mutex_init.c
25845f
@@ -37,9 +37,8 @@ static int tpi_supported;
25845f
 
25845f
 
25845f
 int
25845f
-__pthread_mutex_init (mutex, mutexattr)
25845f
-     pthread_mutex_t *mutex;
25845f
-     const pthread_mutexattr_t *mutexattr;
25845f
+__pthread_mutex_init (pthread_mutex_t *mutex,
25845f
+		      const pthread_mutexattr_t *mutexattr)
25845f
 {
25845f
   const struct pthread_mutexattr *imutexattr;
25845f
 
25845f
diff --git a/nptl/pthread_mutex_lock.c b/nptl/pthread_mutex_lock.c
25845f
index f8c9b217efbce91b..d17e6b5ea5947f6e 100644
25845f
--- a/nptl/pthread_mutex_lock.c
25845f
+++ b/nptl/pthread_mutex_lock.c
25845f
@@ -58,8 +58,7 @@ static int __pthread_mutex_lock_full (pthread_mutex_t *mutex)
25845f
      __attribute_noinline__;
25845f
 
25845f
 int
25845f
-__pthread_mutex_lock (mutex)
25845f
-     pthread_mutex_t *mutex;
25845f
+__pthread_mutex_lock (pthread_mutex_t *mutex)
25845f
 {
25845f
   assert (sizeof (mutex->__size) >= sizeof (mutex->__data));
25845f
 
25845f
@@ -517,8 +516,8 @@ hidden_def (__pthread_mutex_lock)
25845f
 
25845f
 #ifdef NO_INCR
25845f
 void
25845f
-__pthread_mutex_cond_lock_adjust (mutex)
25845f
-     pthread_mutex_t *mutex;
25845f
+internal_function
25845f
+__pthread_mutex_cond_lock_adjust (pthread_mutex_t *mutex)
25845f
 {
25845f
   assert ((mutex->__data.__kind & PTHREAD_MUTEX_PRIO_INHERIT_NP) != 0);
25845f
   assert ((mutex->__data.__kind & PTHREAD_MUTEX_ROBUST_NORMAL_NP) == 0);
25845f
diff --git a/nptl/pthread_mutex_timedlock.c b/nptl/pthread_mutex_timedlock.c
25845f
index 7959885a244c6d95..f035b29f621cebd6 100644
25845f
--- a/nptl/pthread_mutex_timedlock.c
25845f
+++ b/nptl/pthread_mutex_timedlock.c
25845f
@@ -38,9 +38,8 @@
25845f
 #endif
25845f
 
25845f
 int
25845f
-pthread_mutex_timedlock (mutex, abstime)
25845f
-     pthread_mutex_t *mutex;
25845f
-     const struct timespec *abstime;
25845f
+pthread_mutex_timedlock (pthread_mutex_t *mutex,
25845f
+			 const struct timespec *abstime)
25845f
 {
25845f
   int oldval;
25845f
   pid_t id = THREAD_GETMEM (THREAD_SELF, tid);
25845f
diff --git a/nptl/pthread_mutex_trylock.c b/nptl/pthread_mutex_trylock.c
25845f
index 7e96ec48f81dfc2c..40ba3e9fa9664756 100644
25845f
--- a/nptl/pthread_mutex_trylock.c
25845f
+++ b/nptl/pthread_mutex_trylock.c
25845f
@@ -34,8 +34,7 @@
25845f
    lock state if the lock was actually busy.  */
25845f
 
25845f
 int
25845f
-__pthread_mutex_trylock (mutex)
25845f
-     pthread_mutex_t *mutex;
25845f
+__pthread_mutex_trylock (pthread_mutex_t *mutex)
25845f
 {
25845f
   int oldval;
25845f
   pid_t id = THREAD_GETMEM (THREAD_SELF, tid);
25845f
diff --git a/nptl/pthread_mutex_unlock.c b/nptl/pthread_mutex_unlock.c
25845f
index 69e18f5057b5c6a5..27055ea7b2c8c493 100644
25845f
--- a/nptl/pthread_mutex_unlock.c
25845f
+++ b/nptl/pthread_mutex_unlock.c
25845f
@@ -34,9 +34,7 @@ __pthread_mutex_unlock_full (pthread_mutex_t *mutex, int decr)
25845f
 
25845f
 int
25845f
 internal_function attribute_hidden
25845f
-__pthread_mutex_unlock_usercnt (mutex, decr)
25845f
-     pthread_mutex_t *mutex;
25845f
-     int decr;
25845f
+__pthread_mutex_unlock_usercnt (pthread_mutex_t *mutex, int decr)
25845f
 {
25845f
   int type = PTHREAD_MUTEX_TYPE_ELISION (mutex);
25845f
   if (__builtin_expect (type &
25845f
@@ -304,8 +302,7 @@ __pthread_mutex_unlock_full (pthread_mutex_t *mutex, int decr)
25845f
 
25845f
 
25845f
 int
25845f
-__pthread_mutex_unlock (mutex)
25845f
-     pthread_mutex_t *mutex;
25845f
+__pthread_mutex_unlock (pthread_mutex_t *mutex)
25845f
 {
25845f
   return __pthread_mutex_unlock_usercnt (mutex, 1);
25845f
 }
25845f
diff --git a/nptl/sysdeps/pthread/timer_delete.c b/nptl/sysdeps/pthread/timer_delete.c
25845f
index a529d73925e9ed0d..546d19bf3f4a418a 100644
25845f
--- a/nptl/sysdeps/pthread/timer_delete.c
25845f
+++ b/nptl/sysdeps/pthread/timer_delete.c
25845f
@@ -26,8 +26,7 @@
25845f
 
25845f
 /* Delete timer TIMERID.  */
25845f
 int
25845f
-timer_delete (timerid)
25845f
-     timer_t timerid;
25845f
+timer_delete (timer_t timerid)
25845f
 {
25845f
   struct timer_node *timer;
25845f
   int retval = -1;
25845f
diff --git a/nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c b/nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c
25845f
index 7b6fbc18aa5f1153..2ac421fd63af3b75 100644
25845f
--- a/nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c
25845f
+++ b/nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c
25845f
@@ -14,7 +14,7 @@
25845f
 #define LLL_ROBUST_MUTEX_LOCK(mutex, id) \
25845f
   lll_robust_cond_lock ((mutex)->__data.__lock, id, \
25845f
 			PTHREAD_ROBUST_MUTEX_PSHARED (mutex))
25845f
-#define __pthread_mutex_lock __pthread_mutex_cond_lock
25845f
+#define __pthread_mutex_lock internal_function __pthread_mutex_cond_lock
25845f
 #define __pthread_mutex_lock_full __pthread_mutex_cond_lock_full
25845f
 #define NO_INCR
25845f
 
25845f
diff --git a/nptl_db/td_ta_clear_event.c b/nptl_db/td_ta_clear_event.c
25845f
index 0c5f808496a0040b..74d22f964c80adb8 100644
25845f
--- a/nptl_db/td_ta_clear_event.c
25845f
+++ b/nptl_db/td_ta_clear_event.c
25845f
@@ -21,9 +21,7 @@
25845f
 
25845f
 
25845f
 td_err_e
25845f
-td_ta_clear_event (ta_arg, event)
25845f
-     const td_thragent_t *ta_arg;
25845f
-     td_thr_events_t *event;
25845f
+td_ta_clear_event (const td_thragent_t *ta_arg, td_thr_events_t *event)
25845f
 {
25845f
   td_thragent_t *const ta = (td_thragent_t *) ta_arg;
25845f
   td_err_e err;
25845f
diff --git a/nptl_db/td_ta_set_event.c b/nptl_db/td_ta_set_event.c
25845f
index e51e4b5c8762bf96..940b3472549406db 100644
25845f
--- a/nptl_db/td_ta_set_event.c
25845f
+++ b/nptl_db/td_ta_set_event.c
25845f
@@ -21,9 +21,7 @@
25845f
 
25845f
 
25845f
 td_err_e
25845f
-td_ta_set_event (ta_arg, event)
25845f
-     const td_thragent_t *ta_arg;
25845f
-     td_thr_events_t *event;
25845f
+td_ta_set_event (const td_thragent_t *ta_arg, td_thr_events_t *event)
25845f
 {
25845f
   td_thragent_t *const ta = (td_thragent_t *) ta_arg;
25845f
   td_err_e err;
25845f
diff --git a/nptl_db/td_thr_clear_event.c b/nptl_db/td_thr_clear_event.c
25845f
index 8ee9ac146aa8036b..4f2ccf3ae179dcc7 100644
25845f
--- a/nptl_db/td_thr_clear_event.c
25845f
+++ b/nptl_db/td_thr_clear_event.c
25845f
@@ -23,9 +23,7 @@
25845f
 
25845f
 
25845f
 td_err_e
25845f
-td_thr_clear_event (th, event)
25845f
-     const td_thrhandle_t *th;
25845f
-     td_thr_events_t *event;
25845f
+td_thr_clear_event (const td_thrhandle_t *th, td_thr_events_t *event)
25845f
 {
25845f
   td_err_e err;
25845f
   psaddr_t eventmask;
25845f
diff --git a/nptl_db/td_thr_event_enable.c b/nptl_db/td_thr_event_enable.c
25845f
index fed7f70655092365..fd94580112ba3eb0 100644
25845f
--- a/nptl_db/td_thr_event_enable.c
25845f
+++ b/nptl_db/td_thr_event_enable.c
25845f
@@ -21,9 +21,7 @@
25845f
 
25845f
 
25845f
 td_err_e
25845f
-td_thr_event_enable (th, onoff)
25845f
-     const td_thrhandle_t *th;
25845f
-     int onoff;
25845f
+td_thr_event_enable (const td_thrhandle_t *th, int onoff)
25845f
 {
25845f
   LOG ("td_thr_event_enable");
25845f
 
25845f
diff --git a/nptl_db/td_thr_set_event.c b/nptl_db/td_thr_set_event.c
25845f
index edc4efb35b78cf50..20989c5bfcddde3b 100644
25845f
--- a/nptl_db/td_thr_set_event.c
25845f
+++ b/nptl_db/td_thr_set_event.c
25845f
@@ -23,9 +23,7 @@
25845f
 
25845f
 
25845f
 td_err_e
25845f
-td_thr_set_event (th, event)
25845f
-     const td_thrhandle_t *th;
25845f
-     td_thr_events_t *event;
25845f
+td_thr_set_event (const td_thrhandle_t *th, td_thr_events_t *event)
25845f
 {
25845f
   td_err_e err;
25845f
   psaddr_t eventmask;
25845f
diff --git a/nss/makedb.c b/nss/makedb.c
25845f
index e372f5d77e5273bc..9c96724fd214981d 100644
25845f
--- a/nss/makedb.c
25845f
+++ b/nss/makedb.c
25845f
@@ -417,11 +417,7 @@ valstr_compare (const void *p1, const void *p2)
25845f
 
25845f
 
25845f
 static int
25845f
-process_input (input, inname, to_lowercase, be_quiet)
25845f
-     FILE *input;
25845f
-     const char *inname;
25845f
-     int to_lowercase;
25845f
-     int be_quiet;
25845f
+process_input (FILE *input, const char *inname, int to_lowercase, int be_quiet)
25845f
 {
25845f
   char *line;
25845f
   size_t linelen;
25845f
diff --git a/posix/fnmatch.c b/posix/fnmatch.c
25845f
index eed12b7b515e390c..107ba1010059c07f 100644
25845f
--- a/posix/fnmatch.c
25845f
+++ b/posix/fnmatch.c
25845f
@@ -167,9 +167,7 @@ static int posixly_correct;
25845f
 
25845f
 # if !defined HAVE___STRCHRNUL && !defined _LIBC
25845f
 static char *
25845f
-__strchrnul (s, c)
25845f
-     const char *s;
25845f
-     int c;
25845f
+__strchrnul (const char *s, int c)
25845f
 {
25845f
   char *result = strchr (s, c);
25845f
   if (result == NULL)
25845f
@@ -180,9 +178,7 @@ __strchrnul (s, c)
25845f
 
25845f
 # if HANDLE_MULTIBYTE && !defined HAVE___STRCHRNUL && !defined _LIBC
25845f
 static wchar_t *
25845f
-__wcschrnul (s, c)
25845f
-     const wchar_t *s;
25845f
-     wint_t c;
25845f
+__wcschrnul (const wchar_t *s, wint_t c)
25845f
 {
25845f
   wchar_t *result = wcschr (s, c);
25845f
   if (result == NULL)
25845f
@@ -320,10 +316,7 @@ is_char_class (const wchar_t *wcs)
25845f
 
25845f
 
25845f
 int
25845f
-fnmatch (pattern, string, flags)
25845f
-     const char *pattern;
25845f
-     const char *string;
25845f
-     int flags;
25845f
+fnmatch (const char *pattern, const char *string, int flags)
25845f
 {
25845f
 # if HANDLE_MULTIBYTE
25845f
   if (__builtin_expect (MB_CUR_MAX, 1) != 1)
25845f
diff --git a/posix/fnmatch_loop.c b/posix/fnmatch_loop.c
25845f
index 2bd788f3942c6e7d..da1fe0c987f21942 100644
25845f
--- a/posix/fnmatch_loop.c
25845f
+++ b/posix/fnmatch_loop.c
25845f
@@ -37,14 +37,8 @@ static const CHAR *END (const CHAR *patternp) internal_function;
25845f
 
25845f
 static int
25845f
 internal_function
25845f
-FCT (pattern, string, string_end, no_leading_period, flags, ends, alloca_used)
25845f
-     const CHAR *pattern;
25845f
-     const CHAR *string;
25845f
-     const CHAR *string_end;
25845f
-     int no_leading_period;
25845f
-     int flags;
25845f
-     struct STRUCT *ends;
25845f
-     size_t alloca_used;
25845f
+FCT (const CHAR *pattern, const CHAR *string, const CHAR *string_end,
25845f
+     int no_leading_period, int flags, struct STRUCT *ends, size_t alloca_used)
25845f
 {
25845f
   const CHAR *p = pattern, *n = string;
25845f
   UCHAR c;
25845f
diff --git a/posix/glob.c b/posix/glob.c
25845f
index 8c7a80085128475a..e3d6fe0f15f7d9ce 100644
25845f
--- a/posix/glob.c
25845f
+++ b/posix/glob.c
25845f
@@ -1263,8 +1263,7 @@ libc_hidden_def (glob)
25845f
 
25845f
 /* Free storage allocated in PGLOB by a previous `glob' call.  */
25845f
 void
25845f
-globfree (pglob)
25845f
-     glob_t *pglob;
25845f
+globfree (glob_t *pglob)
25845f
 {
25845f
   if (pglob->gl_pathv != NULL)
25845f
     {
25845f
@@ -1359,9 +1358,7 @@ prefix_array (const char *dirname, char **array, size_t n)
25845f
 /* We must not compile this function twice.  */
25845f
 #if !defined _LIBC || !defined NO_GLOB_PATTERN_P
25845f
 int
25845f
-__glob_pattern_type (pattern, quote)
25845f
-     const char *pattern;
25845f
-     int quote;
25845f
+__glob_pattern_type (const char *pattern, int quote)
25845f
 {
25845f
   const char *p;
25845f
   int ret = 0;
25845f
@@ -1398,9 +1395,7 @@ __glob_pattern_type (pattern, quote)
25845f
 /* Return nonzero if PATTERN contains any metacharacters.
25845f
    Metacharacters can be quoted with backslashes if QUOTE is nonzero.  */
25845f
 int
25845f
-__glob_pattern_p (pattern, quote)
25845f
-     const char *pattern;
25845f
-     int quote;
25845f
+__glob_pattern_p (const char *pattern, int quote)
25845f
 {
25845f
   return __glob_pattern_type (pattern, quote) == 1;
25845f
 }
25845f
diff --git a/posix/regcomp.c b/posix/regcomp.c
25845f
index 99fee76b8a8cbb12..80359e58db504ed6 100644
25845f
--- a/posix/regcomp.c
25845f
+++ b/posix/regcomp.c
25845f
@@ -210,10 +210,8 @@ const size_t __re_error_msgid_idx[] attribute_hidden =
25845f
    are set in BUFP on entry.  */
25845f
 
25845f
 const char *
25845f
-re_compile_pattern (pattern, length, bufp)
25845f
-    const char *pattern;
25845f
-    size_t length;
25845f
-    struct re_pattern_buffer *bufp;
25845f
+re_compile_pattern (const char *pattern, size_t length,
25845f
+		    struct re_pattern_buffer *bufp)
25845f
 {
25845f
   reg_errcode_t ret;
25845f
 
25845f
@@ -251,8 +249,7 @@ reg_syntax_t re_syntax_options;
25845f
    defined in regex.h.  We return the old syntax.  */
25845f
 
25845f
 reg_syntax_t
25845f
-re_set_syntax (syntax)
25845f
-    reg_syntax_t syntax;
25845f
+re_set_syntax (reg_syntax_t syntax)
25845f
 {
25845f
   reg_syntax_t ret = re_syntax_options;
25845f
 
25845f
@@ -264,8 +261,7 @@ weak_alias (__re_set_syntax, re_set_syntax)
25845f
 #endif
25845f
 
25845f
 int
25845f
-re_compile_fastmap (bufp)
25845f
-    struct re_pattern_buffer *bufp;
25845f
+re_compile_fastmap (struct re_pattern_buffer *bufp)
25845f
 {
25845f
   re_dfa_t *dfa = (re_dfa_t *) bufp->buffer;
25845f
   char *fastmap = bufp->fastmap;
25845f
@@ -463,10 +459,7 @@ re_compile_fastmap_iter (regex_t *bufp, const re_dfastate_t *init_state,
25845f
    the return codes and their meanings.)  */
25845f
 
25845f
 int
25845f
-regcomp (preg, pattern, cflags)
25845f
-    regex_t *__restrict preg;
25845f
-    const char *__restrict pattern;
25845f
-    int cflags;
25845f
+regcomp (regex_t *__restrict preg, const char *__restrict pattern, int cflags)
25845f
 {
25845f
   reg_errcode_t ret;
25845f
   reg_syntax_t syntax = ((cflags & REG_EXTENDED) ? RE_SYNTAX_POSIX_EXTENDED
25845f
@@ -525,11 +518,8 @@ weak_alias (__regcomp, regcomp)
25845f
    from either regcomp or regexec.   We don't use PREG here.  */
25845f
 
25845f
 size_t
25845f
-regerror (errcode, preg, errbuf, errbuf_size)
25845f
-    int errcode;
25845f
-    const regex_t *__restrict preg;
25845f
-    char *__restrict errbuf;
25845f
-    size_t errbuf_size;
25845f
+regerror (int errcode, const regex_t *__restrict preg, char *__restrict errbuf,
25845f
+	  size_t errbuf_size)
25845f
 {
25845f
   const char *msg;
25845f
   size_t msg_size;
25845f
@@ -633,8 +623,7 @@ free_dfa_content (re_dfa_t *dfa)
25845f
 /* Free dynamically allocated space used by PREG.  */
25845f
 
25845f
 void
25845f
-regfree (preg)
25845f
-    regex_t *preg;
25845f
+regfree (regex_t *preg)
25845f
 {
25845f
   re_dfa_t *dfa = (re_dfa_t *) preg->buffer;
25845f
   if (BE (dfa != NULL, 1))
25845f
diff --git a/posix/regexec.c b/posix/regexec.c
25845f
index 5b31f5bbd7e5115a..f315149af88ac6bb 100644
25845f
--- a/posix/regexec.c
25845f
+++ b/posix/regexec.c
25845f
@@ -217,12 +217,8 @@ static reg_errcode_t extend_buffers (re_match_context_t *mctx, int min_len)
25845f
    We return 0 if we find a match and REG_NOMATCH if not.  */
25845f
 
25845f
 int
25845f
-regexec (preg, string, nmatch, pmatch, eflags)
25845f
-    const regex_t *__restrict preg;
25845f
-    const char *__restrict string;
25845f
-    size_t nmatch;
25845f
-    regmatch_t pmatch[];
25845f
-    int eflags;
25845f
+regexec (const regex_t *__restrict preg, const char *__restrict string,
25845f
+	 size_t nmatch, regmatch_t pmatch[], int eflags)
25845f
 {
25845f
   reg_errcode_t err;
25845f
   int start, length;
25845f
@@ -303,11 +299,8 @@ compat_symbol (libc, __compat_regexec, regexec, GLIBC_2_0);
25845f
    match was found and -2 indicates an internal error.  */
25845f
 
25845f
 int
25845f
-re_match (bufp, string, length, start, regs)
25845f
-    struct re_pattern_buffer *bufp;
25845f
-    const char *string;
25845f
-    int length, start;
25845f
-    struct re_registers *regs;
25845f
+re_match (struct re_pattern_buffer *bufp, const char *string, int length,
25845f
+	  int start, struct re_registers *regs)
25845f
 {
25845f
   return re_search_stub (bufp, string, length, start, 0, length, regs, 1);
25845f
 }
25845f
@@ -316,11 +309,8 @@ weak_alias (__re_match, re_match)
25845f
 #endif
25845f
 
25845f
 int
25845f
-re_search (bufp, string, length, start, range, regs)
25845f
-    struct re_pattern_buffer *bufp;
25845f
-    const char *string;
25845f
-    int length, start, range;
25845f
-    struct re_registers *regs;
25845f
+re_search (struct re_pattern_buffer *bufp, const char *string, int length,
25845f
+	   int start, int range, struct re_registers *regs)
25845f
 {
25845f
   return re_search_stub (bufp, string, length, start, range, length, regs, 0);
25845f
 }
25845f
@@ -329,11 +319,9 @@ weak_alias (__re_search, re_search)
25845f
 #endif
25845f
 
25845f
 int
25845f
-re_match_2 (bufp, string1, length1, string2, length2, start, regs, stop)
25845f
-    struct re_pattern_buffer *bufp;
25845f
-    const char *string1, *string2;
25845f
-    int length1, length2, start, stop;
25845f
-    struct re_registers *regs;
25845f
+re_match_2 (struct re_pattern_buffer *bufp, const char *string1, int length1,
25845f
+	    const char *string2, int length2, int start,
25845f
+	    struct re_registers *regs, int stop)
25845f
 {
25845f
   return re_search_2_stub (bufp, string1, length1, string2, length2,
25845f
 			   start, 0, regs, stop, 1);
25845f
@@ -343,11 +331,9 @@ weak_alias (__re_match_2, re_match_2)
25845f
 #endif
25845f
 
25845f
 int
25845f
-re_search_2 (bufp, string1, length1, string2, length2, start, range, regs, stop)
25845f
-    struct re_pattern_buffer *bufp;
25845f
-    const char *string1, *string2;
25845f
-    int length1, length2, start, range, stop;
25845f
-    struct re_registers *regs;
25845f
+re_search_2 (struct re_pattern_buffer *bufp, const char *string1, int length1,
25845f
+	     const char *string2, int length2, int start, int range,
25845f
+	     struct re_registers *regs, int stop)
25845f
 {
25845f
   return re_search_2_stub (bufp, string1, length1, string2, length2,
25845f
 			   start, range, regs, stop, 0);
25845f
@@ -404,11 +390,10 @@ re_search_2_stub (bufp, string1, length1, string2, length2, start, range, regs,
25845f
    otherwise the position of the match is returned.  */
25845f
 
25845f
 static int
25845f
-re_search_stub (bufp, string, length, start, range, stop, regs, ret_len)
25845f
-    struct re_pattern_buffer *bufp;
25845f
-    const char *string;
25845f
-    int length, start, range, stop, ret_len;
25845f
-    struct re_registers *regs;
25845f
+internal_function
25845f
+re_search_stub (struct re_pattern_buffer *bufp, const char *string, int length,
25845f
+		int start, int range, int stop, struct re_registers *regs,
25845f
+		int ret_len)
25845f
 {
25845f
   reg_errcode_t result;
25845f
   regmatch_t *pmatch;
25845f
@@ -493,10 +478,9 @@ re_search_stub (bufp, string, length, start, range, stop, regs, ret_len)
25845f
 }
25845f
 
25845f
 static unsigned
25845f
-re_copy_regs (regs, pmatch, nregs, regs_allocated)
25845f
-    struct re_registers *regs;
25845f
-    regmatch_t *pmatch;
25845f
-    int nregs, regs_allocated;
25845f
+internal_function
25845f
+re_copy_regs (struct re_registers *regs, regmatch_t *pmatch, int nregs,
25845f
+	      int regs_allocated)
25845f
 {
25845f
   int rval = REGS_REALLOCATE;
25845f
   int i;
25845f
@@ -573,11 +557,8 @@ re_copy_regs (regs, pmatch, nregs, regs_allocated)
25845f
    freeing the old data.  */
25845f
 
25845f
 void
25845f
-re_set_registers (bufp, regs, num_regs, starts, ends)
25845f
-    struct re_pattern_buffer *bufp;
25845f
-    struct re_registers *regs;
25845f
-    unsigned num_regs;
25845f
-    regoff_t *starts, *ends;
25845f
+re_set_registers (struct re_pattern_buffer *bufp, struct re_registers *regs,
25845f
+		  unsigned num_regs, regoff_t *starts, regoff_t *ends)
25845f
 {
25845f
   if (num_regs)
25845f
     {
25845f
@@ -951,9 +932,8 @@ re_search_internal (preg, string, length, start, range, stop, nmatch, pmatch,
25845f
 }
25845f
 
25845f
 static reg_errcode_t
25845f
-__attribute_warn_unused_result__
25845f
-prune_impossible_nodes (mctx)
25845f
-     re_match_context_t *mctx;
25845f
+internal_function __attribute_warn_unused_result__
25845f
+prune_impossible_nodes (re_match_context_t *mctx)
25845f
 {
25845f
   const re_dfa_t *const dfa = mctx->dfa;
25845f
   int halt_node, match_last;
25845f
diff --git a/stdlib/strtod_l.c b/stdlib/strtod_l.c
25845f
index 2047203a4cee1111..e5b30d443106ee91 100644
25845f
--- a/stdlib/strtod_l.c
25845f
+++ b/stdlib/strtod_l.c
25845f
@@ -472,11 +472,8 @@ __mpn_lshift_1 (mp_limb_t *ptr, mp_size_t size, unsigned int count,
25845f
    return 0.0.  If the number is too big to be represented, set `errno' to
25845f
    ERANGE and return HUGE_VAL with the appropriate sign.  */
25845f
 FLOAT
25845f
-____STRTOF_INTERNAL (nptr, endptr, group, loc)
25845f
-     const STRING_TYPE *nptr;
25845f
-     STRING_TYPE **endptr;
25845f
-     int group;
25845f
-     __locale_t loc;
25845f
+____STRTOF_INTERNAL (const STRING_TYPE *nptr, STRING_TYPE **endptr, int group,
25845f
+		     __locale_t loc)
25845f
 {
25845f
   int negative;			/* The sign of the number.  */
25845f
   MPN_VAR (num);		/* MP representation of the number.  */
25845f
diff --git a/sysdeps/pthread/aio_cancel.c b/sysdeps/pthread/aio_cancel.c
25845f
index e405e66cdf40951d..e6170a4fd82895a9 100644
25845f
--- a/sysdeps/pthread/aio_cancel.c
25845f
+++ b/sysdeps/pthread/aio_cancel.c
25845f
@@ -38,9 +38,7 @@
25845f
 
25845f
 
25845f
 int
25845f
-aio_cancel (fildes, aiocbp)
25845f
-     int fildes;
25845f
-     struct aiocb *aiocbp;
25845f
+aio_cancel (int fildes, struct aiocb *aiocbp)
25845f
 {
25845f
   struct requestlist *req = NULL;
25845f
   int result = AIO_ALLDONE;
25845f
diff --git a/sysdeps/pthread/aio_suspend.c b/sysdeps/pthread/aio_suspend.c
25845f
index 9d3c8f996a2839ad..27d6d24e6610d98b 100644
25845f
--- a/sysdeps/pthread/aio_suspend.c
25845f
+++ b/sysdeps/pthread/aio_suspend.c
25845f
@@ -105,10 +105,8 @@ do_aio_misc_wait(int *cntr, const struct timespec *timeout)
25845f
 #endif
25845f
 
25845f
 int
25845f
-aio_suspend (list, nent, timeout)
25845f
-     const struct aiocb *const list[];
25845f
-     int nent;
25845f
-     const struct timespec *timeout;
25845f
+aio_suspend (const struct aiocb *const list[], int nent,
25845f
+	     const struct timespec *timeout)
25845f
 {
25845f
   if (__builtin_expect (nent < 0, 0))
25845f
     {
25845f
diff --git a/sysdeps/unix/sysv/linux/dl-openat64.c b/sysdeps/unix/sysv/linux/dl-openat64.c
25845f
index 69f02f65b1cca130..673eb1dde673370a 100644
25845f
--- a/sysdeps/unix/sysv/linux/dl-openat64.c
25845f
+++ b/sysdeps/unix/sysv/linux/dl-openat64.c
25845f
@@ -23,10 +23,7 @@
25845f
 
25845f
 
25845f
 int
25845f
-openat64 (dfd, file, oflag)
25845f
-     int dfd;
25845f
-     const char *file;
25845f
-     int oflag;
25845f
+openat64 (int dfd, const char *file, int oflag, ...)
25845f
 {
25845f
   assert (!__OPEN_NEEDS_MODE (oflag));
25845f
 
25845f
diff --git a/time/strptime_l.c b/time/strptime_l.c
25845f
index 14d50a2e879a2c5c..cb2b8faa6d740748 100644
25845f
--- a/time/strptime_l.c
25845f
+++ b/time/strptime_l.c
25845f
@@ -41,9 +41,7 @@
25845f
 #  define localtime_r my_localtime_r
25845f
 static struct tm *localtime_r (const time_t *, struct tm *);
25845f
 static struct tm *
25845f
-localtime_r (t, tp)
25845f
-     const time_t *t;
25845f
-     struct tm *tp;
25845f
+localtime_r (const time_t *t, struct tm *tp)
25845f
 {
25845f
   struct tm *l = localtime (t);
25845f
   if (! l)
25845f
diff --git a/wcsmbs/mbsnrtowcs.c b/wcsmbs/mbsnrtowcs.c
25845f
index fc8396c00dc074a4..36cfed0a010f2873 100644
25845f
--- a/wcsmbs/mbsnrtowcs.c
25845f
+++ b/wcsmbs/mbsnrtowcs.c
25845f
@@ -38,12 +38,8 @@ static mbstate_t state;
25845f
    implementation of stdio because we have to deal with unterminated
25845f
    buffers.  At most NMC bytes will be converted.  */
25845f
 size_t
25845f
-__mbsnrtowcs (dst, src, nmc, len, ps)
25845f
-     wchar_t *dst;
25845f
-     const char **src;
25845f
-     size_t nmc;
25845f
-     size_t len;
25845f
-     mbstate_t *ps;
25845f
+__mbsnrtowcs (wchar_t *dst, const char **src, size_t nmc, size_t len,
25845f
+	      mbstate_t *ps)
25845f
 {
25845f
   const unsigned char *srcend;
25845f
   struct __gconv_step_data data;
25845f
diff --git a/wcsmbs/mbsrtowcs_l.c b/wcsmbs/mbsrtowcs_l.c
25845f
index d489266d38bddfd5..ec8b7bebb0a2cc9a 100644
25845f
--- a/wcsmbs/mbsrtowcs_l.c
25845f
+++ b/wcsmbs/mbsrtowcs_l.c
25845f
@@ -37,12 +37,8 @@
25845f
 
25845f
 size_t
25845f
 attribute_hidden
25845f
-__mbsrtowcs_l (dst, src, len, ps, l)
25845f
-     wchar_t *dst;
25845f
-     const char **src;
25845f
-     size_t len;
25845f
-     mbstate_t *ps;
25845f
-     __locale_t l;
25845f
+__mbsrtowcs_l (wchar_t *dst, const char **src, size_t len, mbstate_t *ps,
25845f
+	       __locale_t l)
25845f
 {
25845f
   struct __gconv_step_data data;
25845f
   size_t result;
25845f
diff --git a/wcsmbs/wcsnrtombs.c b/wcsmbs/wcsnrtombs.c
25845f
index e5e5db86b57fee44..7c0efad7a27c2920 100644
25845f
--- a/wcsmbs/wcsnrtombs.c
25845f
+++ b/wcsmbs/wcsnrtombs.c
25845f
@@ -37,12 +37,8 @@ static mbstate_t state;
25845f
    implementation of stdio because we have to deal with unterminated
25845f
    buffers.  At most NWC wide character will be converted.  */
25845f
 size_t
25845f
-__wcsnrtombs (dst, src, nwc, len, ps)
25845f
-     char *dst;
25845f
-     const wchar_t **src;
25845f
-     size_t nwc;
25845f
-     size_t len;
25845f
-     mbstate_t *ps;
25845f
+__wcsnrtombs (char *dst, const wchar_t **src, size_t nwc, size_t len,
25845f
+	      mbstate_t *ps)
25845f
 {
25845f
   struct __gconv_step_data data;
25845f
   const wchar_t *srcend;
25845f
diff --git a/wcsmbs/wcsrtombs.c b/wcsmbs/wcsrtombs.c
25845f
index dfb28d31254ec201..ab843f6dc47edc52 100644
25845f
--- a/wcsmbs/wcsrtombs.c
25845f
+++ b/wcsmbs/wcsrtombs.c
25845f
@@ -35,11 +35,7 @@
25845f
 static mbstate_t state;
25845f
 
25845f
 size_t
25845f
-__wcsrtombs (dst, src, len, ps)
25845f
-     char *dst;
25845f
-     const wchar_t **src;
25845f
-     size_t len;
25845f
-     mbstate_t *ps;
25845f
+__wcsrtombs (char *dst, const wchar_t **src, size_t len, mbstate_t *ps)
25845f
 {
25845f
   struct __gconv_step_data data;
25845f
   int status;