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

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