aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-10-19 12:04:33 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-10-19 12:04:33 +0000
commitbd2260a2069993cdb14cffcbb2b0dc04b9888aee (patch)
tree0a029865cff0a3bb79d7908e6b5f31fe3e2895f9
parent4e1665024a48da9c865e991aff03a5ad03c771aa (diff)
downloadglibc-bd2260a2069993cdb14cffcbb2b0dc04b9888aee.tar
glibc-bd2260a2069993cdb14cffcbb2b0dc04b9888aee.tar.gz
glibc-bd2260a2069993cdb14cffcbb2b0dc04b9888aee.tar.bz2
glibc-bd2260a2069993cdb14cffcbb2b0dc04b9888aee.zip
Convert 231 sysdeps function definitions to prototype style.
This mostly automatically-generated patch converts 231 sysdeps function definitions in glibc from old-style K&R to prototype-style. For __aio_sigqueue and __gai_sigqueue I had to add internal_function to the definitions as noted by Florian in <https://sourceware.org/ml/libc-alpha/2015-10/msg00595.html> to keep the functions compiling on x86 after conversion to prototype definitions. Otherwise, the patch is automatically generated with all the same exclusions and caveats as in <https://sourceware.org/ml/libc-alpha/2015-10/msg00594.html> except that it's a patch for sysdeps files. Tested for x86_64 and x86 (testsuite, and that installed stripped shared libraries are unchanged by the patch). Also tested for arm, mips64 and powerpc32 that installed stripped shared libraries are unchanged by the patch. * sysdeps/arm/backtrace.c (__backtrace): Convert to prototype-style function definition. * sysdeps/i386/backtrace.c (__backtrace): Likewise. * sysdeps/i386/ffs.c (__ffs): Likewise. * sysdeps/i386/i686/ffs.c (__ffs): Likewise. * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock): Likewise. * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock): Likewise. * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise. * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise. * sysdeps/m68k/ffs.c (__ffs): Likewise. * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise. * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise. * sysdeps/mach/adjtime.c (__adjtime): Likewise. * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise. * sysdeps/mach/hurd/_exit.c (_exit): Likewise. * sysdeps/mach/hurd/access.c (__access): Likewise. * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise. * sysdeps/mach/hurd/chdir.c (__chdir): Likewise. * sysdeps/mach/hurd/chmod.c (__chmod): Likewise. * sysdeps/mach/hurd/chown.c (__chown): Likewise. * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise. (cthread_getspecific): Likewise. (cthread_setspecific): Likewise. (__libc_getspecific): Likewise. * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise. * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise. * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise. * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise. * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise. * sysdeps/mach/hurd/fchown.c (__fchown): Likewise. * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise. * sysdeps/mach/hurd/flock.c (__flock): Likewise. * sysdeps/mach/hurd/fsync.c (fsync): Likewise. * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise. * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise. * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise. * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise. * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise. * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise. * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise. * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise. * sysdeps/mach/hurd/group_member.c (__group_member): Likewise. * sysdeps/mach/hurd/isatty.c (__isatty): Likewise. * sysdeps/mach/hurd/lchown.c (__lchown): Likewise. * sysdeps/mach/hurd/link.c (__link): Likewise. * sysdeps/mach/hurd/linkat.c (linkat): Likewise. * sysdeps/mach/hurd/listen.c (__listen): Likewise. * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise. * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise. * sysdeps/mach/hurd/openat.c (__openat): Likewise. * sysdeps/mach/hurd/poll.c (__poll): Likewise. * sysdeps/mach/hurd/readlink.c (__readlink): Likewise. * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise. * sysdeps/mach/hurd/recv.c (__recv): Likewise. * sysdeps/mach/hurd/rename.c (rename): Likewise. * sysdeps/mach/hurd/renameat.c (renameat): Likewise. * sysdeps/mach/hurd/revoke.c (revoke): Likewise. * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise. * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise. * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise. * sysdeps/mach/hurd/send.c (__send): Likewise. * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise. * sysdeps/mach/hurd/setegid.c (setegid): Likewise. * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise. * sysdeps/mach/hurd/setgid.c (__setgid): Likewise. * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise. * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise. * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise. * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise. * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise. * sysdeps/mach/hurd/setregid.c (__setregid): Likewise. * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise. * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise. * sysdeps/mach/hurd/setuid.c (__setuid): Likewise. * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise. * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise. * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise. * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise. * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise. * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise. * sysdeps/mach/hurd/socket.c (__socket): Likewise. * sysdeps/mach/hurd/symlink.c (__symlink): Likewise. * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise. * sysdeps/mach/hurd/telldir.c (telldir): Likewise. * sysdeps/mach/hurd/truncate.c (__truncate): Likewise. * sysdeps/mach/hurd/umask.c (__umask): Likewise. * sysdeps/mach/hurd/unlink.c (__unlink): Likewise. * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise. * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise. * sysdeps/posix/alarm.c (alarm): Likewise. * sysdeps/posix/cuserid.c (cuserid): Likewise. * sysdeps/posix/dirfd.c (dirfd): Likewise. * sysdeps/posix/dup.c (__dup): Likewise. * sysdeps/posix/dup2.c (__dup2): Likewise. * sysdeps/posix/euidaccess.c (euidaccess): Likewise. (main): Likewise. * sysdeps/posix/flock.c (__flock): Likewise. * sysdeps/posix/fpathconf.c (__fpathconf): Likewise. * sysdeps/posix/getcwd.c (__getcwd): Likewise. * sysdeps/posix/gethostname.c (__gethostname): Likewise. * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise. * sysdeps/posix/isatty.c (__isatty): Likewise. * sysdeps/posix/killpg.c (killpg): Likewise. * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise. * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise. * sysdeps/posix/raise.c (raise): Likewise. * sysdeps/posix/remove.c (remove): Likewise. * sysdeps/posix/rename.c (rename): Likewise. * sysdeps/posix/rewinddir.c (__rewinddir): Likewise. * sysdeps/posix/seekdir.c (seekdir): Likewise. * sysdeps/posix/sigblock.c (__sigblock): Likewise. * sysdeps/posix/sigignore.c (sigignore): Likewise. * sysdeps/posix/sigintr.c (siginterrupt): Likewise. * sysdeps/posix/signal.c (__bsd_signal): Likewise. * sysdeps/posix/sigset.c (sigset): Likewise. * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise. * sysdeps/posix/sysconf.c (__sysconf): Likewise. * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise. * sysdeps/posix/time.c (time): Likewise. * sysdeps/posix/ttyname.c (getttyname): Likewise. (ttyname): Likewise. * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise. * sysdeps/posix/utime.c (utime): Likewise. * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise. * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock): Likewise. * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock): Likewise. * sysdeps/pthread/aio_error.c (aio_error): Likewise. * sysdeps/pthread/aio_read.c (aio_read): Likewise. * sysdeps/pthread/aio_read64.c (aio_read64): Likewise. * sysdeps/pthread/aio_write.c (aio_write): Likewise. * sysdeps/pthread/aio_write64.c (aio_write64): Likewise. * sysdeps/pthread/flockfile.c (__flockfile): Likewise. * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise. * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise. * sysdeps/pthread/timer_create.c (timer_create): Likewise. * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise. * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise. * sysdeps/s390/ffs.c (__ffs): Likewise. * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock): Likewise. * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock): Likewise. * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock): Likewise. * sysdeps/sparc/nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise. * sysdeps/sparc/nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise. * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise. * sysdeps/sparc/sparc32/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise. * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise. * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise. (memcmp_not_common_alignment): Likewise. (MEMCMP): Likewise. * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise. (_wordcopy_fwd_dest_aligned): Likewise. (_wordcopy_bwd_aligned): Likewise. (_wordcopy_bwd_dest_aligned): Likewise. * sysdeps/unix/bsd/ftime.c (ftime): Likewise. * sysdeps/unix/bsd/gtty.c (gtty): Likewise. * sysdeps/unix/bsd/stty.c (stty): Likewise. * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise. * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise. * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise. * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise. * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise. * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise. * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise. * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise. * sysdeps/unix/bsd/wait3.c (__wait3): Likewise. * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise. * sysdeps/unix/sockatmark.c (sockatmark): Likewise. * sysdeps/unix/stime.c (stime): Likewise. * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise. * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise. Use internal_function. * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction): Convert to prototype-style function definition. * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise. * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise. * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise. * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue): Likewise. Use internal_function. * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to prototype-style function definition * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Likewise. (__getlogin_r): Likewise. * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise. * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c (__pthread_cond_broadcast): Likewise. * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise. * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c (__pthread_cond_init): Likewise. * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c (__pthread_cond_signal): Likewise. * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c (__pthread_cond_wait): Likewise. * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise. * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise. * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction): Likewise. * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending): Likewise. * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask): Likewise. * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction): Likewise. * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c (__ftruncate64): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c (truncate64): Likewise. * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise. * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise. * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np): Likewise. * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np): Likewise. * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask): Likewise. * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue): Likewise. * sysdeps/unix/sysv/linux/raise.c (raise): Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c (__libc_sigaction): Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending): Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c (__sigprocmask): Likewise. * sysdeps/unix/sysv/linux/semget.c (semget): Likewise. * sysdeps/unix/sysv/linux/semop.c (semop): Likewise. * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise. * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise. * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise. * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise. * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction): Likewise. * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise. * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise. * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise. * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending): Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c (__sigprocmask): Likewise. * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise. (cfgetispeed): Likewise. (cfsetospeed): Likewise. (cfsetispeed): Likewise. * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise. * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise. * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise. * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise. * sysdeps/unix/sysv/linux/time.c (time): Likewise. * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise. * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise. * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun): Likewise. * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime): Likewise. * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending): Likewise. * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask): Likewise. * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
-rw-r--r--ChangeLog277
-rw-r--r--sysdeps/arm/backtrace.c4
-rw-r--r--sysdeps/i386/backtrace.c4
-rw-r--r--sysdeps/i386/ffs.c3
-rw-r--r--sysdeps/i386/i686/ffs.c3
-rw-r--r--sysdeps/ia64/nptl/pthread_spin_lock.c3
-rw-r--r--sysdeps/ia64/nptl/pthread_spin_trylock.c3
-rw-r--r--sysdeps/ieee754/ldbl-128/e_log2l.c3
-rw-r--r--sysdeps/ieee754/ldbl-128ibm/e_log2l.c3
-rw-r--r--sysdeps/m68k/ffs.c3
-rw-r--r--sysdeps/m68k/m680x0/fpu/e_acos.c3
-rw-r--r--sysdeps/m68k/m680x0/fpu/e_fmod.c4
-rw-r--r--sysdeps/mach/adjtime.c4
-rw-r--r--sysdeps/mach/gettimeofday.c4
-rw-r--r--sysdeps/mach/hurd/_exit.c3
-rw-r--r--sysdeps/mach/hurd/access.c4
-rw-r--r--sysdeps/mach/hurd/adjtime.c4
-rw-r--r--sysdeps/mach/hurd/chdir.c3
-rw-r--r--sysdeps/mach/hurd/chmod.c4
-rw-r--r--sysdeps/mach/hurd/chown.c5
-rw-r--r--sysdeps/mach/hurd/cthreads.c14
-rw-r--r--sysdeps/mach/hurd/euidaccess.c4
-rw-r--r--sysdeps/mach/hurd/faccessat.c6
-rw-r--r--sysdeps/mach/hurd/fchdir.c3
-rw-r--r--sysdeps/mach/hurd/fchmod.c4
-rw-r--r--sysdeps/mach/hurd/fchmodat.c6
-rw-r--r--sysdeps/mach/hurd/fchown.c5
-rw-r--r--sysdeps/mach/hurd/fchownat.c7
-rw-r--r--sysdeps/mach/hurd/flock.c4
-rw-r--r--sysdeps/mach/hurd/fsync.c3
-rw-r--r--sysdeps/mach/hurd/ftruncate.c4
-rw-r--r--sysdeps/mach/hurd/getgroups.c4
-rw-r--r--sysdeps/mach/hurd/gethostname.c4
-rw-r--r--sysdeps/mach/hurd/getitimer.c4
-rw-r--r--sysdeps/mach/hurd/getlogin_r.c4
-rw-r--r--sysdeps/mach/hurd/getpgid.c3
-rw-r--r--sysdeps/mach/hurd/getrusage.c4
-rw-r--r--sysdeps/mach/hurd/getsockname.c5
-rw-r--r--sysdeps/mach/hurd/group_member.c3
-rw-r--r--sysdeps/mach/hurd/isatty.c3
-rw-r--r--sysdeps/mach/hurd/lchown.c5
-rw-r--r--sysdeps/mach/hurd/link.c4
-rw-r--r--sysdeps/mach/hurd/linkat.c7
-rw-r--r--sysdeps/mach/hurd/listen.c4
-rw-r--r--sysdeps/mach/hurd/mkdir.c4
-rw-r--r--sysdeps/mach/hurd/mkdirat.c5
-rw-r--r--sysdeps/mach/hurd/openat.c5
-rw-r--r--sysdeps/mach/hurd/poll.c5
-rw-r--r--sysdeps/mach/hurd/readlink.c5
-rw-r--r--sysdeps/mach/hurd/readlinkat.c6
-rw-r--r--sysdeps/mach/hurd/recv.c6
-rw-r--r--sysdeps/mach/hurd/rename.c4
-rw-r--r--sysdeps/mach/hurd/renameat.c6
-rw-r--r--sysdeps/mach/hurd/revoke.c3
-rw-r--r--sysdeps/mach/hurd/rewinddir.c3
-rw-r--r--sysdeps/mach/hurd/rmdir.c3
-rw-r--r--sysdeps/mach/hurd/seekdir.c4
-rw-r--r--sysdeps/mach/hurd/send.c6
-rw-r--r--sysdeps/mach/hurd/setdomain.c4
-rw-r--r--sysdeps/mach/hurd/setegid.c3
-rw-r--r--sysdeps/mach/hurd/seteuid.c3
-rw-r--r--sysdeps/mach/hurd/setgid.c3
-rw-r--r--sysdeps/mach/hurd/setgroups.c4
-rw-r--r--sysdeps/mach/hurd/sethostid.c3
-rw-r--r--sysdeps/mach/hurd/sethostname.c4
-rw-r--r--sysdeps/mach/hurd/setlogin.c3
-rw-r--r--sysdeps/mach/hurd/setpgid.c4
-rw-r--r--sysdeps/mach/hurd/setregid.c4
-rw-r--r--sysdeps/mach/hurd/setreuid.c4
-rw-r--r--sysdeps/mach/hurd/settimeofday.c4
-rw-r--r--sysdeps/mach/hurd/setuid.c3
-rw-r--r--sysdeps/mach/hurd/shutdown.c4
-rw-r--r--sysdeps/mach/hurd/sigaction.c5
-rw-r--r--sysdeps/mach/hurd/sigaltstack.c4
-rw-r--r--sysdeps/mach/hurd/sigpending.c3
-rw-r--r--sysdeps/mach/hurd/sigprocmask.c5
-rw-r--r--sysdeps/mach/hurd/sigsuspend.c3
-rw-r--r--sysdeps/mach/hurd/socket.c5
-rw-r--r--sysdeps/mach/hurd/symlink.c4
-rw-r--r--sysdeps/mach/hurd/symlinkat.c5
-rw-r--r--sysdeps/mach/hurd/telldir.c3
-rw-r--r--sysdeps/mach/hurd/truncate.c4
-rw-r--r--sysdeps/mach/hurd/umask.c3
-rw-r--r--sysdeps/mach/hurd/unlink.c3
-rw-r--r--sysdeps/mach/hurd/unlinkat.c5
-rw-r--r--sysdeps/mips/mips64/__longjmp.c4
-rw-r--r--sysdeps/posix/alarm.c3
-rw-r--r--sysdeps/posix/cuserid.c3
-rw-r--r--sysdeps/posix/dirfd.c3
-rw-r--r--sysdeps/posix/dup.c3
-rw-r--r--sysdeps/posix/dup2.c4
-rw-r--r--sysdeps/posix/euidaccess.c8
-rw-r--r--sysdeps/posix/flock.c4
-rw-r--r--sysdeps/posix/fpathconf.c4
-rw-r--r--sysdeps/posix/getcwd.c4
-rw-r--r--sysdeps/posix/gethostname.c4
-rw-r--r--sysdeps/posix/gettimeofday.c4
-rw-r--r--sysdeps/posix/isatty.c3
-rw-r--r--sysdeps/posix/killpg.c4
-rw-r--r--sysdeps/posix/libc_fatal.c3
-rw-r--r--sysdeps/posix/mkfifoat.c5
-rw-r--r--sysdeps/posix/raise.c3
-rw-r--r--sysdeps/posix/remove.c3
-rw-r--r--sysdeps/posix/rename.c4
-rw-r--r--sysdeps/posix/rewinddir.c3
-rw-r--r--sysdeps/posix/seekdir.c4
-rw-r--r--sysdeps/posix/sigblock.c3
-rw-r--r--sysdeps/posix/sigignore.c3
-rw-r--r--sysdeps/posix/sigintr.c4
-rw-r--r--sysdeps/posix/signal.c4
-rw-r--r--sysdeps/posix/sigset.c4
-rw-r--r--sysdeps/posix/sigsuspend.c3
-rw-r--r--sysdeps/posix/sysconf.c3
-rw-r--r--sysdeps/posix/sysv_signal.c4
-rw-r--r--sysdeps/posix/time.c3
-rw-r--r--sysdeps/posix/ttyname.c10
-rw-r--r--sysdeps/posix/ttyname_r.c5
-rw-r--r--sysdeps/posix/utime.c4
-rw-r--r--sysdeps/powerpc/fpu/s_isnan.c3
-rw-r--r--sysdeps/powerpc/nptl/pthread_spin_lock.c3
-rw-r--r--sysdeps/powerpc/nptl/pthread_spin_trylock.c3
-rw-r--r--sysdeps/pthread/aio_error.c3
-rw-r--r--sysdeps/pthread/aio_read.c3
-rw-r--r--sysdeps/pthread/aio_read64.c3
-rw-r--r--sysdeps/pthread/aio_write.c3
-rw-r--r--sysdeps/pthread/aio_write64.c3
-rw-r--r--sysdeps/pthread/flockfile.c3
-rw-r--r--sysdeps/pthread/ftrylockfile.c3
-rw-r--r--sysdeps/pthread/funlockfile.c3
-rw-r--r--sysdeps/pthread/timer_create.c5
-rw-r--r--sysdeps/pthread/timer_getoverr.c3
-rw-r--r--sysdeps/pthread/timer_gettime.c4
-rw-r--r--sysdeps/s390/ffs.c3
-rw-r--r--sysdeps/s390/nptl/pthread_spin_lock.c3
-rw-r--r--sysdeps/s390/nptl/pthread_spin_trylock.c3
-rw-r--r--sysdeps/sh/nptl/pthread_spin_lock.c3
-rw-r--r--sysdeps/sparc/nptl/pthread_barrier_destroy.c3
-rw-r--r--sysdeps/sparc/nptl/pthread_barrier_wait.c3
-rw-r--r--sysdeps/sparc/sparc32/e_sqrt.c3
-rw-r--r--sysdeps/sparc/sparc32/pthread_barrier_wait.c3
-rw-r--r--sysdeps/sparc/sparc32/sem_init.c5
-rw-r--r--sysdeps/tile/memcmp.c15
-rw-r--r--sysdeps/tile/wordcopy.c20
-rw-r--r--sysdeps/unix/bsd/ftime.c3
-rw-r--r--sysdeps/unix/bsd/gtty.c4
-rw-r--r--sysdeps/unix/bsd/stty.c4
-rw-r--r--sysdeps/unix/bsd/tcflow.c4
-rw-r--r--sysdeps/unix/bsd/tcflush.c4
-rw-r--r--sysdeps/unix/bsd/tcgetattr.c4
-rw-r--r--sysdeps/unix/bsd/tcgetpgrp.c3
-rw-r--r--sysdeps/unix/bsd/tcsendbrk.c4
-rw-r--r--sysdeps/unix/bsd/tcsetattr.c5
-rw-r--r--sysdeps/unix/bsd/tcsetpgrp.c4
-rw-r--r--sysdeps/unix/bsd/ualarm.c4
-rw-r--r--sysdeps/unix/bsd/wait3.c5
-rw-r--r--sysdeps/unix/getlogin_r.c4
-rw-r--r--sysdeps/unix/sockatmark.c3
-rw-r--r--sysdeps/unix/stime.c3
-rw-r--r--sysdeps/unix/sysv/linux/_exit.c3
-rw-r--r--sysdeps/unix/sysv/linux/aio_sigqueue.c6
-rw-r--r--sysdeps/unix/sysv/linux/arm/sigaction.c5
-rw-r--r--sysdeps/unix/sysv/linux/faccessat.c6
-rw-r--r--sysdeps/unix/sysv/linux/fchmodat.c6
-rw-r--r--sysdeps/unix/sysv/linux/fpathconf.c4
-rw-r--r--sysdeps/unix/sysv/linux/gai_sigqueue.c6
-rw-r--r--sysdeps/unix/sysv/linux/gethostid.c3
-rw-r--r--sysdeps/unix/sysv/linux/getlogin_r.c8
-rw-r--r--sysdeps/unix/sysv/linux/getpt.c3
-rw-r--r--sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c3
-rw-r--r--sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c3
-rw-r--r--sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c4
-rw-r--r--sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c3
-rw-r--r--sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c4
-rw-r--r--sysdeps/unix/sysv/linux/i386/getmsg.c6
-rw-r--r--sysdeps/unix/sysv/linux/i386/setegid.c3
-rw-r--r--sysdeps/unix/sysv/linux/ia64/sigaction.c5
-rw-r--r--sysdeps/unix/sysv/linux/ia64/sigpending.c3
-rw-r--r--sysdeps/unix/sysv/linux/ia64/sigprocmask.c5
-rw-r--r--sysdeps/unix/sysv/linux/mips/sigaction.c5
-rw-r--r--sysdeps/unix/sysv/linux/msgget.c4
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c4
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c4
-rw-r--r--sysdeps/unix/sysv/linux/pt-raise.c3
-rw-r--r--sysdeps/unix/sysv/linux/pthread_getcpuclockid.c4
-rw-r--r--sysdeps/unix/sysv/linux/pthread_getname.c5
-rw-r--r--sysdeps/unix/sysv/linux/pthread_setname.c4
-rw-r--r--sysdeps/unix/sysv/linux/pthread_sigmask.c5
-rw-r--r--sysdeps/unix/sysv/linux/pthread_sigqueue.c5
-rw-r--r--sysdeps/unix/sysv/linux/raise.c3
-rw-r--r--sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c5
-rw-r--r--sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c3
-rw-r--r--sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c5
-rw-r--r--sysdeps/unix/sysv/linux/semget.c5
-rw-r--r--sysdeps/unix/sysv/linux/semop.c5
-rw-r--r--sysdeps/unix/sysv/linux/setrlimit64.c4
-rw-r--r--sysdeps/unix/sysv/linux/shmat.c5
-rw-r--r--sysdeps/unix/sysv/linux/shmdt.c3
-rw-r--r--sysdeps/unix/sysv/linux/shmget.c5
-rw-r--r--sysdeps/unix/sysv/linux/sigaction.c5
-rw-r--r--sysdeps/unix/sysv/linux/sigpending.c3
-rw-r--r--sysdeps/unix/sysv/linux/sigprocmask.c5
-rw-r--r--sysdeps/unix/sysv/linux/sigqueue.c5
-rw-r--r--sysdeps/unix/sysv/linux/sigstack.c4
-rw-r--r--sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c3
-rw-r--r--sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c5
-rw-r--r--sysdeps/unix/sysv/linux/speed.c14
-rw-r--r--sysdeps/unix/sysv/linux/tcflow.c4
-rw-r--r--sysdeps/unix/sysv/linux/tcflush.c4
-rw-r--r--sysdeps/unix/sysv/linux/tcgetattr.c4
-rw-r--r--sysdeps/unix/sysv/linux/tcsetattr.c5
-rw-r--r--sysdeps/unix/sysv/linux/time.c3
-rw-r--r--sysdeps/unix/sysv/linux/timer_create.c5
-rw-r--r--sysdeps/unix/sysv/linux/timer_delete.c3
-rw-r--r--sysdeps/unix/sysv/linux/timer_getoverr.c3
-rw-r--r--sysdeps/unix/sysv/linux/timer_gettime.c4
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/sigpending.c3
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/sigprocmask.c5
-rw-r--r--sysdeps/x86_64/backtrace.c4
218 files changed, 510 insertions, 678 deletions
diff --git a/ChangeLog b/ChangeLog
index 222ae42765..961041189b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,280 @@
+2015-10-19 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/arm/backtrace.c (__backtrace): Convert to
+ prototype-style function definition.
+ * sysdeps/i386/backtrace.c (__backtrace): Likewise.
+ * sysdeps/i386/ffs.c (__ffs): Likewise.
+ * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
+ * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
+ Likewise.
+ * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
+ Likewise.
+ * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
+ * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
+ Likewise.
+ * sysdeps/m68k/ffs.c (__ffs): Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
+ * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
+ * sysdeps/mach/adjtime.c (__adjtime): Likewise.
+ * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
+ * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
+ * sysdeps/mach/hurd/access.c (__access): Likewise.
+ * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
+ * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
+ * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
+ * sysdeps/mach/hurd/chown.c (__chown): Likewise.
+ * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
+ (cthread_getspecific): Likewise.
+ (cthread_setspecific): Likewise.
+ (__libc_getspecific): Likewise.
+ * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
+ * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
+ * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
+ * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
+ * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
+ * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
+ * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
+ * sysdeps/mach/hurd/flock.c (__flock): Likewise.
+ * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
+ * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
+ * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
+ * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
+ * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
+ * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
+ * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
+ * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
+ * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
+ * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
+ * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
+ * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
+ * sysdeps/mach/hurd/link.c (__link): Likewise.
+ * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
+ * sysdeps/mach/hurd/listen.c (__listen): Likewise.
+ * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
+ * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
+ * sysdeps/mach/hurd/openat.c (__openat): Likewise.
+ * sysdeps/mach/hurd/poll.c (__poll): Likewise.
+ * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
+ * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
+ * sysdeps/mach/hurd/recv.c (__recv): Likewise.
+ * sysdeps/mach/hurd/rename.c (rename): Likewise.
+ * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
+ * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
+ * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
+ * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
+ * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
+ * sysdeps/mach/hurd/send.c (__send): Likewise.
+ * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
+ * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
+ * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
+ * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
+ * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
+ * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
+ * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
+ * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
+ * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
+ * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
+ * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
+ * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
+ * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
+ * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
+ * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
+ * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
+ * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
+ * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
+ * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
+ * sysdeps/mach/hurd/socket.c (__socket): Likewise.
+ * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
+ * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
+ * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
+ * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
+ * sysdeps/mach/hurd/umask.c (__umask): Likewise.
+ * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
+ * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
+ * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
+ * sysdeps/posix/alarm.c (alarm): Likewise.
+ * sysdeps/posix/cuserid.c (cuserid): Likewise.
+ * sysdeps/posix/dirfd.c (dirfd): Likewise.
+ * sysdeps/posix/dup.c (__dup): Likewise.
+ * sysdeps/posix/dup2.c (__dup2): Likewise.
+ * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
+ (main): Likewise.
+ * sysdeps/posix/flock.c (__flock): Likewise.
+ * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
+ * sysdeps/posix/getcwd.c (__getcwd): Likewise.
+ * sysdeps/posix/gethostname.c (__gethostname): Likewise.
+ * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
+ * sysdeps/posix/isatty.c (__isatty): Likewise.
+ * sysdeps/posix/killpg.c (killpg): Likewise.
+ * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
+ * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
+ * sysdeps/posix/raise.c (raise): Likewise.
+ * sysdeps/posix/remove.c (remove): Likewise.
+ * sysdeps/posix/rename.c (rename): Likewise.
+ * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
+ * sysdeps/posix/seekdir.c (seekdir): Likewise.
+ * sysdeps/posix/sigblock.c (__sigblock): Likewise.
+ * sysdeps/posix/sigignore.c (sigignore): Likewise.
+ * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
+ * sysdeps/posix/signal.c (__bsd_signal): Likewise.
+ * sysdeps/posix/sigset.c (sigset): Likewise.
+ * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
+ * sysdeps/posix/sysconf.c (__sysconf): Likewise.
+ * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
+ * sysdeps/posix/time.c (time): Likewise.
+ * sysdeps/posix/ttyname.c (getttyname): Likewise.
+ (ttyname): Likewise.
+ * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
+ * sysdeps/posix/utime.c (utime): Likewise.
+ * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
+ * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
+ Likewise.
+ * sysdeps/powerpc/nptl/pthread_spin_trylock.c
+ (pthread_spin_trylock): Likewise.
+ * sysdeps/pthread/aio_error.c (aio_error): Likewise.
+ * sysdeps/pthread/aio_read.c (aio_read): Likewise.
+ * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
+ * sysdeps/pthread/aio_write.c (aio_write): Likewise.
+ * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
+ * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
+ * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
+ * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
+ * sysdeps/pthread/timer_create.c (timer_create): Likewise.
+ * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
+ * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
+ * sysdeps/s390/ffs.c (__ffs): Likewise.
+ * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
+ Likewise.
+ * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
+ Likewise.
+ * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
+ Likewise.
+ * sysdeps/sparc/nptl/pthread_barrier_destroy.c
+ (pthread_barrier_destroy): Likewise.
+ * sysdeps/sparc/nptl/pthread_barrier_wait.c
+ (__pthread_barrier_wait): Likewise.
+ * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
+ * sysdeps/sparc/sparc32/pthread_barrier_wait.c
+ (__pthread_barrier_wait): Likewise.
+ * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
+ * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
+ (memcmp_not_common_alignment): Likewise.
+ (MEMCMP): Likewise.
+ * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
+ (_wordcopy_fwd_dest_aligned): Likewise.
+ (_wordcopy_bwd_aligned): Likewise.
+ (_wordcopy_bwd_dest_aligned): Likewise.
+ * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
+ * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
+ * sysdeps/unix/bsd/stty.c (stty): Likewise.
+ * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
+ * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
+ * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
+ * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
+ * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
+ * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
+ * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
+ * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
+ * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
+ * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
+ * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
+ * sysdeps/unix/stime.c (stime): Likewise.
+ * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
+ * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
+ Likewise. Use internal_function.
+ * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
+ Convert to prototype-style function definition.
+ * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
+ * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
+ * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
+ * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
+ Likewise. Use internal_function.
+ * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
+ prototype-style function definition
+ * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
+ Likewise.
+ (__getlogin_r): Likewise.
+ * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
+ * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
+ (__pthread_cond_broadcast): Likewise.
+ * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
+ (__pthread_cond_destroy): Likewise.
+ * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
+ (__pthread_cond_init): Likewise.
+ * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
+ (__pthread_cond_signal): Likewise.
+ * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
+ (__pthread_cond_wait): Likewise.
+ * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
+ * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
+ * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
+ Likewise.
+ * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
+ Likewise.
+ * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
+ Likewise.
+ * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
+ Likewise.
+ * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
+ * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
+ (__ftruncate64): Likewise.
+ * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
+ (truncate64): Likewise.
+ * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
+ * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
+ (pthread_getcpuclockid): Likewise.
+ * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
+ Likewise.
+ * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
+ Likewise.
+ * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
+ Likewise.
+ * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
+ Likewise.
+ * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
+ * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
+ (__libc_sigaction): Likewise.
+ * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
+ Likewise.
+ * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
+ (__sigprocmask): Likewise.
+ * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
+ * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
+ * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
+ * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
+ * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
+ * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
+ * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
+ Likewise.
+ * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
+ * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
+ * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
+ * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
+ * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
+ Likewise.
+ * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
+ (__sigprocmask): Likewise.
+ * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
+ (cfgetispeed): Likewise.
+ (cfsetospeed): Likewise.
+ (cfsetispeed): Likewise.
+ * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
+ * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
+ * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
+ * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
+ * sysdeps/unix/sysv/linux/time.c (time): Likewise.
+ * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
+ * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
+ * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
+ Likewise.
+ * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
+ Likewise.
+ * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
+ Likewise.
+ * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
+ Likewise.
+ * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
+
2015-10-17 Florian Weimer <fweimer@redhat.com>
sunrpc: Rewrite with explicit TLS access using __thread.
diff --git a/sysdeps/arm/backtrace.c b/sysdeps/arm/backtrace.c
index b19def6e0b..072d034728 100644
--- a/sysdeps/arm/backtrace.c
+++ b/sysdeps/arm/backtrace.c
@@ -87,9 +87,7 @@ backtrace_helper (struct _Unwind_Context *ctx, void *a)
}
int
-__backtrace (array, size)
- void **array;
- int size;
+__backtrace (void **array, int size)
{
struct trace_arg arg = { .array = array, .size = size, .cnt = -1 };
diff --git a/sysdeps/i386/backtrace.c b/sysdeps/i386/backtrace.c
index a1b4d33322..9f8b4e0084 100644
--- a/sysdeps/i386/backtrace.c
+++ b/sysdeps/i386/backtrace.c
@@ -109,9 +109,7 @@ struct layout
int
-__backtrace (array, size)
- void **array;
- int size;
+__backtrace (void **array, int size)
{
struct trace_arg arg = { .array = array, .size = size, .cnt = -1 };
diff --git a/sysdeps/i386/ffs.c b/sysdeps/i386/ffs.c
index db08e4ee77..08ec16a638 100644
--- a/sysdeps/i386/ffs.c
+++ b/sysdeps/i386/ffs.c
@@ -26,8 +26,7 @@
#ifdef __GNUC__
int
-__ffs (x)
- int x;
+__ffs (int x)
{
int cnt;
int tmp;
diff --git a/sysdeps/i386/i686/ffs.c b/sysdeps/i386/i686/ffs.c
index 70f7de7887..65869698c7 100644
--- a/sysdeps/i386/i686/ffs.c
+++ b/sysdeps/i386/i686/ffs.c
@@ -26,8 +26,7 @@
#ifdef __GNUC__
int
-__ffs (x)
- int x;
+__ffs (int x)
{
int cnt;
int tmp;
diff --git a/sysdeps/ia64/nptl/pthread_spin_lock.c b/sysdeps/ia64/nptl/pthread_spin_lock.c
index 00d00a1505..32816b5256 100644
--- a/sysdeps/ia64/nptl/pthread_spin_lock.c
+++ b/sysdeps/ia64/nptl/pthread_spin_lock.c
@@ -19,8 +19,7 @@
#include "pthreadP.h"
int
-pthread_spin_lock (lock)
- pthread_spinlock_t *lock;
+pthread_spin_lock (pthread_spinlock_t *lock)
{
int *p = (int *) lock;
diff --git a/sysdeps/ia64/nptl/pthread_spin_trylock.c b/sysdeps/ia64/nptl/pthread_spin_trylock.c
index 59370f38ce..8b76739059 100644
--- a/sysdeps/ia64/nptl/pthread_spin_trylock.c
+++ b/sysdeps/ia64/nptl/pthread_spin_trylock.c
@@ -20,8 +20,7 @@
#include "pthreadP.h"
int
-pthread_spin_trylock (lock)
- pthread_spinlock_t *lock;
+pthread_spin_trylock (pthread_spinlock_t *lock)
{
return __sync_val_compare_and_swap ((int *) lock, 0, 1) == 0 ? 0 : EBUSY;
}
diff --git a/sysdeps/ieee754/ldbl-128/e_log2l.c b/sysdeps/ieee754/ldbl-128/e_log2l.c
index 991a3b73e2..6b1faa0523 100644
--- a/sysdeps/ieee754/ldbl-128/e_log2l.c
+++ b/sysdeps/ieee754/ldbl-128/e_log2l.c
@@ -171,8 +171,7 @@ deval (long double x, const long double *p, int n)
long double
-__ieee754_log2l (x)
- long double x;
+__ieee754_log2l (long double x)
{
long double z;
long double y;
diff --git a/sysdeps/ieee754/ldbl-128ibm/e_log2l.c b/sysdeps/ieee754/ldbl-128ibm/e_log2l.c
index 442ad97254..e39eaba72a 100644
--- a/sysdeps/ieee754/ldbl-128ibm/e_log2l.c
+++ b/sysdeps/ieee754/ldbl-128ibm/e_log2l.c
@@ -171,8 +171,7 @@ deval (long double x, const long double *p, int n)
long double
-__ieee754_log2l (x)
- long double x;
+__ieee754_log2l (long double x)
{
long double z;
long double y;
diff --git a/sysdeps/m68k/ffs.c b/sysdeps/m68k/ffs.c
index 39793d146d..988ca5ed18 100644
--- a/sysdeps/m68k/ffs.c
+++ b/sysdeps/m68k/ffs.c
@@ -26,8 +26,7 @@
#if defined (__GNUC__) && defined (__mc68020__)
int
-__ffs (x)
- int x;
+__ffs (int x)
{
int cnt;
diff --git a/sysdeps/m68k/m680x0/fpu/e_acos.c b/sysdeps/m68k/m680x0/fpu/e_acos.c
index e029948e98..40621ba580 100644
--- a/sysdeps/m68k/m680x0/fpu/e_acos.c
+++ b/sysdeps/m68k/m680x0/fpu/e_acos.c
@@ -28,8 +28,7 @@
#endif
float_type
-FUNC (x)
- float_type x;
+FUNC (float_type x)
{
return __m81_u(FUNC)(x);
}
diff --git a/sysdeps/m68k/m680x0/fpu/e_fmod.c b/sysdeps/m68k/m680x0/fpu/e_fmod.c
index b3aeca7602..7ac16c9a34 100644
--- a/sysdeps/m68k/m680x0/fpu/e_fmod.c
+++ b/sysdeps/m68k/m680x0/fpu/e_fmod.c
@@ -28,9 +28,7 @@
#endif
float_type
-FUNC (x, y)
- float_type x;
- float_type y;
+FUNC (float_type x, float_type y)
{
return __m81_u(FUNC)(x, y);
}
diff --git a/sysdeps/mach/adjtime.c b/sysdeps/mach/adjtime.c
index 726ee82760..52886109d7 100644
--- a/sysdeps/mach/adjtime.c
+++ b/sysdeps/mach/adjtime.c
@@ -24,9 +24,7 @@
of time adjustment remaining to be done from the last `__adjtime' call.
This call is restricted to the super-user. */
int
-__adjtime (delta, olddelta)
- const struct timeval *delta;
- struct timeval *olddelta;
+__adjtime (const struct timeval *delta, struct timeval *olddelta)
{
error_t err;
mach_port_t hostpriv;
diff --git a/sysdeps/mach/gettimeofday.c b/sysdeps/mach/gettimeofday.c
index 05502e2249..f44c66dbad 100644
--- a/sysdeps/mach/gettimeofday.c
+++ b/sysdeps/mach/gettimeofday.c
@@ -24,9 +24,7 @@
putting it into *TV and *TZ. If TZ is NULL, *TZ is not filled.
Returns 0 on success, -1 on errors. */
int
-__gettimeofday (tv, tz)
- struct timeval *tv;
- struct timezone *tz;
+__gettimeofday (struct timeval *tv, struct timezone *tz)
{
kern_return_t err;
diff --git a/sysdeps/mach/hurd/_exit.c b/sysdeps/mach/hurd/_exit.c
index 978b68f0ec..c71f9d9a27 100644
--- a/sysdeps/mach/hurd/_exit.c
+++ b/sysdeps/mach/hurd/_exit.c
@@ -46,8 +46,7 @@ _hurd_exit (int status)
}
void
-_exit (status)
- int status;
+_exit (int status)
{
_hurd_exit (W_EXITCODE (status, 0));
}
diff --git a/sysdeps/mach/hurd/access.c b/sysdeps/mach/hurd/access.c
index ead583bf40..259bb5805d 100644
--- a/sysdeps/mach/hurd/access.c
+++ b/sysdeps/mach/hurd/access.c
@@ -24,9 +24,7 @@
/* Test for access to FILE by our real user and group IDs. */
int
-__access (file, type)
- const char *file;
- int type;
+__access (const char *file, int type)
{
error_t err;
file_t rcrdir, rcwdir, io;
diff --git a/sysdeps/mach/hurd/adjtime.c b/sysdeps/mach/hurd/adjtime.c
index cdf62cae8c..02dd342b56 100644
--- a/sysdeps/mach/hurd/adjtime.c
+++ b/sysdeps/mach/hurd/adjtime.c
@@ -24,9 +24,7 @@
of time adjustment remaining to be done from the last `__adjtime' call.
This call is restricted to the super-user. */
int
-__adjtime (delta, olddelta)
- const struct timeval *delta;
- struct timeval *olddelta;
+__adjtime (const struct timeval *delta, struct timeval *olddelta)
{
error_t err;
mach_port_t hostpriv;
diff --git a/sysdeps/mach/hurd/chdir.c b/sysdeps/mach/hurd/chdir.c
index eaaf6466d3..ab11329e16 100644
--- a/sysdeps/mach/hurd/chdir.c
+++ b/sysdeps/mach/hurd/chdir.c
@@ -22,8 +22,7 @@
/* Change the current directory to FILE_NAME. */
int
-__chdir (file_name)
- const char *file_name;
+__chdir (const char *file_name)
{
return _hurd_change_directory_port_from_name (&_hurd_ports[INIT_PORT_CWDIR],
file_name);
diff --git a/sysdeps/mach/hurd/chmod.c b/sysdeps/mach/hurd/chmod.c
index 5a08a818f8..f3cbcbeb14 100644
--- a/sysdeps/mach/hurd/chmod.c
+++ b/sysdeps/mach/hurd/chmod.c
@@ -22,9 +22,7 @@
/* Change the protections of FILE to MODE. */
int
-__chmod (file, mode)
- const char *file;
- mode_t mode;
+__chmod (const char *file, mode_t mode)
{
error_t err;
file_t port = __file_name_lookup (file, 0, 0);
diff --git a/sysdeps/mach/hurd/chown.c b/sysdeps/mach/hurd/chown.c
index 1cf252545b..50c3e9e951 100644
--- a/sysdeps/mach/hurd/chown.c
+++ b/sysdeps/mach/hurd/chown.c
@@ -22,10 +22,7 @@
/* Change the owner and group of FILE. */
int
-__chown (file, owner, group)
- const char *file;
- uid_t owner;
- gid_t group;
+__chown (const char *file, uid_t owner, gid_t group)
{
error_t err;
file_t port = __file_name_lookup (file, 0, 0);
diff --git a/sysdeps/mach/hurd/cthreads.c b/sysdeps/mach/hurd/cthreads.c
index 695a243395..71082c5553 100644
--- a/sysdeps/mach/hurd/cthreads.c
+++ b/sysdeps/mach/hurd/cthreads.c
@@ -22,8 +22,7 @@
/* Placeholder for key creation routine from Hurd cthreads library. */
int
weak_function
-cthread_keycreate (key)
- cthread_key_t *key;
+cthread_keycreate (cthread_key_t *key)
{
__set_errno (ENOSYS);
*key = -1;
@@ -33,9 +32,7 @@ cthread_keycreate (key)
/* Placeholder for key retrieval routine from Hurd cthreads library. */
int
weak_function
-cthread_getspecific (key, pval)
- cthread_key_t key;
- void **pval;
+cthread_getspecific (cthread_key_t key, void **pval)
{
*pval = NULL;
__set_errno (ENOSYS);
@@ -45,9 +42,7 @@ cthread_getspecific (key, pval)
/* Placeholder for key setting routine from Hurd cthreads library. */
int
weak_function
-cthread_setspecific (key, val)
- cthread_key_t key;
- void *val;
+cthread_setspecific (cthread_key_t key, void *val)
{
__set_errno (ENOSYS);
return -1;
@@ -56,8 +51,7 @@ cthread_setspecific (key, val)
/* Call cthread_getspecific which gets a pointer to the return value instead
of just returning it. */
void *
-__libc_getspecific (key)
- cthread_key_t key;
+__libc_getspecific (cthread_key_t key)
{
void *val;
cthread_getspecific (key, &val);
diff --git a/sysdeps/mach/hurd/euidaccess.c b/sysdeps/mach/hurd/euidaccess.c
index 266c82dfb9..cbb880ea03 100644
--- a/sysdeps/mach/hurd/euidaccess.c
+++ b/sysdeps/mach/hurd/euidaccess.c
@@ -23,9 +23,7 @@
#include <hurd.h>
int
-__euidaccess (file, type)
- const char *file;
- int type;
+__euidaccess (const char *file, int type)
{
error_t err;
file_t port;
diff --git a/sysdeps/mach/hurd/faccessat.c b/sysdeps/mach/hurd/faccessat.c
index 3b84e8757d..2348e9bc79 100644
--- a/sysdeps/mach/hurd/faccessat.c
+++ b/sysdeps/mach/hurd/faccessat.c
@@ -25,11 +25,7 @@
#include <hurd/fd.h>
int
-faccessat (fd, file, type, flag)
- int fd;
- const char *file;
- int type;
- int flag;
+faccessat (int fd, const char *file, int type, int flag)
{
error_t err;
file_t port;
diff --git a/sysdeps/mach/hurd/fchdir.c b/sysdeps/mach/hurd/fchdir.c
index 9c613b318e..932c652ba3 100644
--- a/sysdeps/mach/hurd/fchdir.c
+++ b/sysdeps/mach/hurd/fchdir.c
@@ -24,8 +24,7 @@
/* Change the current directory to FD. */
int
-__fchdir (fd)
- int fd;
+__fchdir (int fd)
{
return _hurd_change_directory_port_from_fd (&_hurd_ports[INIT_PORT_CWDIR],
fd);
diff --git a/sysdeps/mach/hurd/fchmod.c b/sysdeps/mach/hurd/fchmod.c
index fd1a6bd9cc..2b01917922 100644
--- a/sysdeps/mach/hurd/fchmod.c
+++ b/sysdeps/mach/hurd/fchmod.c
@@ -23,9 +23,7 @@
/* Change the permissions of the file referenced by FD to MODE. */
int
-__fchmod (fd, mode)
- int fd;
- mode_t mode;
+__fchmod (int fd, mode_t mode)
{
error_t err;
diff --git a/sysdeps/mach/hurd/fchmodat.c b/sysdeps/mach/hurd/fchmodat.c
index f678fb46a7..1ba678017e 100644
--- a/sysdeps/mach/hurd/fchmodat.c
+++ b/sysdeps/mach/hurd/fchmodat.c
@@ -25,11 +25,7 @@
#include <hurd/fd.h>
int
-fchmodat (fd, file, mode, flag)
- int fd;
- const char *file;
- mode_t mode;
- int flag;
+fchmodat (int fd, const char *file, mode_t mode, int flag)
{
error_t err;
file_t port = __file_name_lookup_at (fd, flag, file, 0, 0);
diff --git a/sysdeps/mach/hurd/fchown.c b/sysdeps/mach/hurd/fchown.c
index 747150539b..fcbe7800be 100644
--- a/sysdeps/mach/hurd/fchown.c
+++ b/sysdeps/mach/hurd/fchown.c
@@ -23,10 +23,7 @@
/* Change the owner and group of the file referred to by FD. */
int
-__fchown (fd, owner, group)
- int fd;
- uid_t owner;
- gid_t group;
+__fchown (int fd, uid_t owner, gid_t group)
{
error_t err;
diff --git a/sysdeps/mach/hurd/fchownat.c b/sysdeps/mach/hurd/fchownat.c
index dd1ee9a990..d77c40459b 100644
--- a/sysdeps/mach/hurd/fchownat.c
+++ b/sysdeps/mach/hurd/fchownat.c
@@ -26,12 +26,7 @@
/* Change the owner and group of FILE. */
int
-fchownat (fd, file, owner, group, flag)
- int fd;
- const char *file;
- uid_t owner;
- gid_t group;
- int flag;
+fchownat (int fd, const char *file, uid_t owner, gid_t group, int flag)
{
error_t err;
file_t port = __file_name_lookup_at (fd, flag, file, 0, 0);
diff --git a/sysdeps/mach/hurd/flock.c b/sysdeps/mach/hurd/flock.c
index 7c716e9da4..4186c67e01 100644
--- a/sysdeps/mach/hurd/flock.c
+++ b/sysdeps/mach/hurd/flock.c
@@ -23,9 +23,7 @@
/* Apply or remove an advisory lock, according to OPERATION,
on the file FD refers to. */
int
-__flock (fd, operation)
- int fd;
- int operation;
+__flock (int fd, int operation)
{
error_t err;
diff --git a/sysdeps/mach/hurd/fsync.c b/sysdeps/mach/hurd/fsync.c
index 49fca8dcf4..04ce7294fb 100644
--- a/sysdeps/mach/hurd/fsync.c
+++ b/sysdeps/mach/hurd/fsync.c
@@ -22,8 +22,7 @@
/* Make all changes done to FD actually appear on disk. */
int
-fsync (fd)
- int fd;
+fsync (int fd)
{
error_t err = HURD_DPORT_USE (fd, __file_sync (port, 1, 0));
if (err)
diff --git a/sysdeps/mach/hurd/ftruncate.c b/sysdeps/mach/hurd/ftruncate.c
index f2134265cd..780c31483c 100644
--- a/sysdeps/mach/hurd/ftruncate.c
+++ b/sysdeps/mach/hurd/ftruncate.c
@@ -23,9 +23,7 @@
/* Truncate the file referenced by FD to LENGTH bytes. */
int
-__ftruncate (fd, length)
- int fd;
- __off_t length;
+__ftruncate (int fd, __off_t length)
{
error_t err;
if (err = HURD_DPORT_USE (fd, __file_set_size (port, length)))
diff --git a/sysdeps/mach/hurd/getgroups.c b/sysdeps/mach/hurd/getgroups.c
index bf5de3b348..679d4f01d7 100644
--- a/sysdeps/mach/hurd/getgroups.c
+++ b/sysdeps/mach/hurd/getgroups.c
@@ -22,9 +22,7 @@
#include <string.h>
int
-__getgroups (n, gidset)
- int n;
- gid_t *gidset;
+__getgroups (int n, gid_t *gidset)
{
error_t err;
int ngids;
diff --git a/sysdeps/mach/hurd/gethostname.c b/sysdeps/mach/hurd/gethostname.c
index a1fe95e7e7..f3fb9dd283 100644
--- a/sysdeps/mach/hurd/gethostname.c
+++ b/sysdeps/mach/hurd/gethostname.c
@@ -22,9 +22,7 @@
The result is null-terminated if LEN is large enough for the full
name and the terminator. */
int
-__gethostname (name, len)
- char *name;
- size_t len;
+__gethostname (char *name, size_t len)
{
/* The host name is just the contents of the file /etc/hostname. */
ssize_t n = _hurd_get_host_config ("/etc/hostname", name, len);
diff --git a/sysdeps/mach/hurd/getitimer.c b/sysdeps/mach/hurd/getitimer.c
index 96d7043bff..9da05c8b64 100644
--- a/sysdeps/mach/hurd/getitimer.c
+++ b/sysdeps/mach/hurd/getitimer.c
@@ -42,9 +42,7 @@ subtract_timeval (struct timeval *from, const struct timeval *subtract)
/* Set *VALUE to the current setting of timer WHICH.
Return 0 on success, -1 on errors. */
int
-__getitimer (which, value)
- enum __itimer_which which;
- struct itimerval *value;
+__getitimer (enum __itimer_which which, struct itimerval *value)
{
struct itimerval val;
struct timeval elapsed;
diff --git a/sysdeps/mach/hurd/getlogin_r.c b/sysdeps/mach/hurd/getlogin_r.c
index 9c66f865ab..ccdfe60b4f 100644
--- a/sysdeps/mach/hurd/getlogin_r.c
+++ b/sysdeps/mach/hurd/getlogin_r.c
@@ -25,9 +25,7 @@
If it cannot be determined or some other error occurred, return the error
code. Otherwise return 0. */
int
-__getlogin_r (name, name_len)
- char *name;
- size_t name_len;
+__getlogin_r (char *name, size_t name_len)
{
string_t login;
error_t err;
diff --git a/sysdeps/mach/hurd/getpgid.c b/sysdeps/mach/hurd/getpgid.c
index a27edae34c..65bd3c65bb 100644
--- a/sysdeps/mach/hurd/getpgid.c
+++ b/sysdeps/mach/hurd/getpgid.c
@@ -22,8 +22,7 @@
/* Get the process group ID of process PID. */
int
-__getpgid (pid)
- pid_t pid;
+__getpgid (pid_t pid)
{
error_t err;
pid_t pgrp;
diff --git a/sysdeps/mach/hurd/getrusage.c b/sysdeps/mach/hurd/getrusage.c
index 769ba8e023..1ad09b3c4d 100644
--- a/sysdeps/mach/hurd/getrusage.c
+++ b/sysdeps/mach/hurd/getrusage.c
@@ -26,9 +26,7 @@
/* Return resource usage information on process indicated by WHO
and put it in *USAGE. Returns 0 for success, -1 for failure. */
int
-__getrusage (who, usage)
- enum __rusage_who who;
- struct rusage *usage;
+__getrusage (enum __rusage_who who, struct rusage *usage)
{
struct task_basic_info bi;
struct task_events_info ei;
diff --git a/sysdeps/mach/hurd/getsockname.c b/sysdeps/mach/hurd/getsockname.c
index 4c26b6bd58..f0dd63567e 100644
--- a/sysdeps/mach/hurd/getsockname.c
+++ b/sysdeps/mach/hurd/getsockname.c
@@ -24,10 +24,7 @@
/* Put the local address of FD into *ADDR and its length in *LEN. */
int
-__getsockname (fd, addrarg, len)
- int fd;
- __SOCKADDR_ARG addrarg;
- socklen_t *len;
+__getsockname (int fd, __SOCKADDR_ARG addrarg, socklen_t *len)
{
error_t err;
struct sockaddr *addr = addrarg.__sockaddr__;
diff --git a/sysdeps/mach/hurd/group_member.c b/sysdeps/mach/hurd/group_member.c
index 991bd919eb..cc29782506 100644
--- a/sysdeps/mach/hurd/group_member.c
+++ b/sysdeps/mach/hurd/group_member.c
@@ -22,8 +22,7 @@
#include <hurd/id.h>
int
-__group_member (gid)
- gid_t gid;
+__group_member (gid_t gid)
{
int member = 0;
error_t err;
diff --git a/sysdeps/mach/hurd/isatty.c b/sysdeps/mach/hurd/isatty.c
index 3fd5077717..37971543aa 100644
--- a/sysdeps/mach/hurd/isatty.c
+++ b/sysdeps/mach/hurd/isatty.c
@@ -22,8 +22,7 @@
/* Return 1 if FD is a terminal, 0 if not. */
int
-__isatty (fd)
- int fd;
+__isatty (int fd)
{
error_t err;
mach_port_t id;
diff --git a/sysdeps/mach/hurd/lchown.c b/sysdeps/mach/hurd/lchown.c
index 8bfe9f8155..f924fe9f6a 100644
--- a/sysdeps/mach/hurd/lchown.c
+++ b/sysdeps/mach/hurd/lchown.c
@@ -24,10 +24,7 @@
/* Change the owner and group of FILE; if it's a link, do the link and
not the target. */
int
-__lchown (file, owner, group)
- const char *file;
- uid_t owner;
- gid_t group;
+__lchown (const char *file, uid_t owner, gid_t group)
{
error_t err;
file_t port = __file_name_lookup (file, O_NOLINK, 0);
diff --git a/sysdeps/mach/hurd/link.c b/sysdeps/mach/hurd/link.c
index 49e6249c9d..4685ae8889 100644
--- a/sysdeps/mach/hurd/link.c
+++ b/sysdeps/mach/hurd/link.c
@@ -22,9 +22,7 @@
/* Make a link to FROM called TO. */
int
-__link (from, to)
- const char *from;
- const char *to;
+__link (const char *from, const char *to)
{
error_t err;
file_t oldfile, linknode, todir;
diff --git a/sysdeps/mach/hurd/linkat.c b/sysdeps/mach/hurd/linkat.c
index 10f653d2c6..0dfa702bab 100644
--- a/sysdeps/mach/hurd/linkat.c
+++ b/sysdeps/mach/hurd/linkat.c
@@ -26,12 +26,7 @@
/* Make a link to FROM relative to FROMFD called TO relative to TOFD. */
int
-linkat (fromfd, from, tofd, to, flags)
- int fromfd;
- const char *from;
- int tofd;
- const char *to;
- int flags;
+linkat (int fromfd, const char *from, int tofd, const char *to, int flags)
{
error_t err;
file_t oldfile, linknode, todir;
diff --git a/sysdeps/mach/hurd/listen.c b/sysdeps/mach/hurd/listen.c
index 3be59d0ca1..dea1728fa1 100644
--- a/sysdeps/mach/hurd/listen.c
+++ b/sysdeps/mach/hurd/listen.c
@@ -26,9 +26,7 @@
Returns 0 on success, -1 for errors. */
int
-__listen (fd, n)
- int fd;
- int n;
+__listen (int fd, int n)
{
error_t err = HURD_DPORT_USE (fd, __socket_listen (port, n));
if (err)
diff --git a/sysdeps/mach/hurd/mkdir.c b/sysdeps/mach/hurd/mkdir.c
index 329f110a83..9b0db713d0 100644
--- a/sysdeps/mach/hurd/mkdir.c
+++ b/sysdeps/mach/hurd/mkdir.c
@@ -23,9 +23,7 @@
/* Create a directory named FILE_NAME with protections MODE. */
int
-__mkdir (file_name, mode)
- const char *file_name;
- mode_t mode;
+__mkdir (const char *file_name, mode_t mode)
{
error_t err;
const char *name;
diff --git a/sysdeps/mach/hurd/mkdirat.c b/sysdeps/mach/hurd/mkdirat.c
index 75560dc4f3..7b7501a013 100644
--- a/sysdeps/mach/hurd/mkdirat.c
+++ b/sysdeps/mach/hurd/mkdirat.c
@@ -24,10 +24,7 @@
#include <string.h>
int
-mkdirat (fd, path, mode)
- int fd;
- const char *path;
- mode_t mode;
+mkdirat (int fd, const char *path, mode_t mode)
{
error_t err;
const char *name;
diff --git a/sysdeps/mach/hurd/openat.c b/sysdeps/mach/hurd/openat.c
index 0d3e138890..84a2b08596 100644
--- a/sysdeps/mach/hurd/openat.c
+++ b/sysdeps/mach/hurd/openat.c
@@ -29,10 +29,7 @@
the directory associated with FD. If O_CREAT or O_TMPFILE is in OFLAG, a
third argument is the file protection. */
int
-__openat (fd, file, oflag)
- int fd;
- const char *file;
- int oflag;
+__openat (int fd, const char *file, int oflag)
{
mode_t mode;
io_t port;
diff --git a/sysdeps/mach/hurd/poll.c b/sysdeps/mach/hurd/poll.c
index 30a390cce6..cf42b2ea87 100644
--- a/sysdeps/mach/hurd/poll.c
+++ b/sysdeps/mach/hurd/poll.c
@@ -28,10 +28,7 @@
or -1 for errors. */
int
-__poll (fds, nfds, timeout)
- struct pollfd *fds;
- nfds_t nfds;
- int timeout;
+__poll (struct pollfd *fds, nfds_t nfds, int timeout)
{
struct timespec ts, *to;
diff --git a/sysdeps/mach/hurd/readlink.c b/sysdeps/mach/hurd/readlink.c
index b36a9494f9..8727d1ac20 100644
--- a/sysdeps/mach/hurd/readlink.c
+++ b/sysdeps/mach/hurd/readlink.c
@@ -25,10 +25,7 @@
LEN bytes of BUF. The contents are not null-terminated.
Returns the number of characters read, or -1 for errors. */
ssize_t
-__readlink (file_name, buf, len)
- const char *file_name;
- char *buf;
- size_t len;
+__readlink (const char *file_name, char *buf, size_t len)
{
error_t err;
file_t file;
diff --git a/sysdeps/mach/hurd/readlinkat.c b/sysdeps/mach/hurd/readlinkat.c
index b538a3bccf..5a92bb5fc3 100644
--- a/sysdeps/mach/hurd/readlinkat.c
+++ b/sysdeps/mach/hurd/readlinkat.c
@@ -26,11 +26,7 @@
than LEN bytes of BUF. The contents are not null-terminated.
Returns the number of characters read, or -1 for errors. */
ssize_t
-readlinkat (fd, file_name, buf, len)
- int fd;
- const char *file_name;
- char *buf;
- size_t len;
+readlinkat (int fd, const char *file_name, char *buf, size_t len)
{
error_t err;
file_t file;
diff --git a/sysdeps/mach/hurd/recv.c b/sysdeps/mach/hurd/recv.c
index 358380e7a6..832b39736a 100644
--- a/sysdeps/mach/hurd/recv.c
+++ b/sysdeps/mach/hurd/recv.c
@@ -26,11 +26,7 @@
Returns the number read or -1 for errors. */
ssize_t
-__recv (fd, buf, n, flags)
- int fd;
- void *buf;
- size_t n;
- int flags;
+__recv (int fd, void *buf, size_t n, int flags)
{
error_t err;
mach_port_t addrport;
diff --git a/sysdeps/mach/hurd/rename.c b/sysdeps/mach/hurd/rename.c
index e04371398e..ad580179bb 100644
--- a/sysdeps/mach/hurd/rename.c
+++ b/sysdeps/mach/hurd/rename.c
@@ -20,9 +20,7 @@
/* Rename the file OLD to NEW. */
int
-rename (old, new)
- const char *old;
- const char *new;
+rename (const char *old, const char *new)
{
error_t err;
file_t olddir, newdir;
diff --git a/sysdeps/mach/hurd/renameat.c b/sysdeps/mach/hurd/renameat.c
index eabf28f977..958499e80d 100644
--- a/sysdeps/mach/hurd/renameat.c
+++ b/sysdeps/mach/hurd/renameat.c
@@ -22,11 +22,7 @@
/* Rename the file OLD relative to OLDFD to NEW relative to NEWFD. */
int
-renameat (oldfd, old, newfd, new)
- int oldfd;
- const char *old;
- int newfd;
- const char *new;
+renameat (int oldfd, const char *old, int newfd, const char *new)
{
error_t err;
file_t olddir, newdir;
diff --git a/sysdeps/mach/hurd/revoke.c b/sysdeps/mach/hurd/revoke.c
index 3412e6c439..6bbb8dab3a 100644
--- a/sysdeps/mach/hurd/revoke.c
+++ b/sysdeps/mach/hurd/revoke.c
@@ -21,8 +21,7 @@
#include <hurd.h>
int
-revoke (file_name)
- const char *file_name;
+revoke (const char *file_name)
{
error_t err;
file_t file = __file_name_lookup (file_name, 0, 0);
diff --git a/sysdeps/mach/hurd/rewinddir.c b/sysdeps/mach/hurd/rewinddir.c
index 1e045f1584..06c7a41ce2 100644
--- a/sysdeps/mach/hurd/rewinddir.c
+++ b/sysdeps/mach/hurd/rewinddir.c
@@ -22,8 +22,7 @@
/* Rewind DIRP to the beginning of the directory. */
void
-__rewinddir (dirp)
- DIR *dirp;
+__rewinddir (DIR *dirp)
{
seekdir (dirp, (off_t) 0L);
}
diff --git a/sysdeps/mach/hurd/rmdir.c b/sysdeps/mach/hurd/rmdir.c
index f1ac498a10..1c18165187 100644
--- a/sysdeps/mach/hurd/rmdir.c
+++ b/sysdeps/mach/hurd/rmdir.c
@@ -22,8 +22,7 @@
/* Remove the directory FILE_NAME. */
int
-__rmdir (file_name)
- const char *file_name;
+__rmdir (const char *file_name)
{
error_t err;
const char *name;
diff --git a/sysdeps/mach/hurd/seekdir.c b/sysdeps/mach/hurd/seekdir.c
index d13561cf5e..ccbef320f6 100644
--- a/sysdeps/mach/hurd/seekdir.c
+++ b/sysdeps/mach/hurd/seekdir.c
@@ -24,9 +24,7 @@
/* Seek to position POS in DIRP. */
/* XXX should be __seekdir ? */
void
-seekdir (dirp, pos)
- DIR *dirp;
- long int pos;
+seekdir (DIR *dirp, long int pos)
{
__libc_lock_lock (dirp->__lock);
/* Change our entry index pointer to POS and discard any data already
diff --git a/sysdeps/mach/hurd/send.c b/sysdeps/mach/hurd/send.c
index 4ba85e1988..78de0f2c9b 100644
--- a/sysdeps/mach/hurd/send.c
+++ b/sysdeps/mach/hurd/send.c
@@ -23,11 +23,7 @@
/* Send N bytes of BUF to socket FD. Returns the number sent or -1. */
ssize_t
-__send (fd, buf, n, flags)
- int fd;
- const void *buf;
- size_t n;
- int flags;
+__send (int fd, const void *buf, size_t n, int flags)
{
error_t err;
size_t wrote;
diff --git a/sysdeps/mach/hurd/setdomain.c b/sysdeps/mach/hurd/setdomain.c
index 8f786d46c5..3949d1a7f2 100644
--- a/sysdeps/mach/hurd/setdomain.c
+++ b/sysdeps/mach/hurd/setdomain.c
@@ -21,9 +21,7 @@
/* Set the name of the current YP domain to NAME, which is LEN bytes long.
This call is restricted to the super-user. */
int
-setdomainname (name, len)
- const char *name;
- size_t len;
+setdomainname (const char *name, size_t len)
{
/* The NIS domain name is just the contents of the file /etc/nisdomain. */
ssize_t n = _hurd_set_host_config ("/etc/nisdomain", name, len);
diff --git a/sysdeps/mach/hurd/setegid.c b/sysdeps/mach/hurd/setegid.c
index 23a780db29..aee4a3da11 100644
--- a/sysdeps/mach/hurd/setegid.c
+++ b/sysdeps/mach/hurd/setegid.c
@@ -24,8 +24,7 @@
/* Set the effective user ID of the calling process to GID. */
int
-setegid (gid)
- gid_t gid;
+setegid (gid_t gid)
{
auth_t newauth;
error_t err;
diff --git a/sysdeps/mach/hurd/seteuid.c b/sysdeps/mach/hurd/seteuid.c
index dad9ffd68d..e2db6c5fc8 100644
--- a/sysdeps/mach/hurd/seteuid.c
+++ b/sysdeps/mach/hurd/seteuid.c
@@ -24,8 +24,7 @@
/* Set the effective user ID of the calling process to UID. */
int
-seteuid (uid)
- uid_t uid;
+seteuid (uid_t uid)
{
auth_t newauth;
error_t err;
diff --git a/sysdeps/mach/hurd/setgid.c b/sysdeps/mach/hurd/setgid.c
index 49d598e6d4..bb354ad8a7 100644
--- a/sysdeps/mach/hurd/setgid.c
+++ b/sysdeps/mach/hurd/setgid.c
@@ -27,8 +27,7 @@
and effective group IDs, and the saved set-group-ID to UID;
if not, the effective group ID is set to GID. */
int
-__setgid (gid)
- gid_t gid;
+__setgid (gid_t gid)
{
auth_t newauth;
error_t err;
diff --git a/sysdeps/mach/hurd/setgroups.c b/sysdeps/mach/hurd/setgroups.c
index 3c75d7c4a6..43260859d2 100644
--- a/sysdeps/mach/hurd/setgroups.c
+++ b/sysdeps/mach/hurd/setgroups.c
@@ -23,9 +23,7 @@
/* Set the group set for the current user to GROUPS (N of them). */
int
-setgroups (n, groups)
- size_t n;
- const gid_t *groups;
+setgroups (size_t n, const gid_t *groups)
{
error_t err;
auth_t newauth;
diff --git a/sysdeps/mach/hurd/sethostid.c b/sysdeps/mach/hurd/sethostid.c
index 727a83c2ea..51d5bdb33e 100644
--- a/sysdeps/mach/hurd/sethostid.c
+++ b/sysdeps/mach/hurd/sethostid.c
@@ -25,8 +25,7 @@
/* XXX should be __sethostid?
isn't hostid supposed to be hardwired and unchangeable? */
int
-sethostid (id)
- long int id;
+sethostid (long int id)
{
char buf[8], *bp;
ssize_t n;
diff --git a/sysdeps/mach/hurd/sethostname.c b/sysdeps/mach/hurd/sethostname.c
index 21b64e9686..469975eea0 100644
--- a/sysdeps/mach/hurd/sethostname.c
+++ b/sysdeps/mach/hurd/sethostname.c
@@ -22,9 +22,7 @@
This call is restricted to the super-user. */
/* XXX should be __sethostname ? */
int
-sethostname (name, len)
- const char *name;
- size_t len;
+sethostname (const char *name, size_t len)
{
/* The host name is just the contents of the file /etc/hostname. */
ssize_t n = _hurd_set_host_config ("/etc/hostname", name, len);
diff --git a/sysdeps/mach/hurd/setlogin.c b/sysdeps/mach/hurd/setlogin.c
index d9bfcb1c06..58176ad873 100644
--- a/sysdeps/mach/hurd/setlogin.c
+++ b/sysdeps/mach/hurd/setlogin.c
@@ -21,8 +21,7 @@
/* Set the login name returned by `getlogin'. */
int
-setlogin (name)
- const char *name;
+setlogin (const char *name)
{
error_t err;
if (err = __USEPORT (PROC, __proc_setlogin (port, name)))
diff --git a/sysdeps/mach/hurd/setpgid.c b/sysdeps/mach/hurd/setpgid.c
index 24b640f249..0b539d0bb6 100644
--- a/sysdeps/mach/hurd/setpgid.c
+++ b/sysdeps/mach/hurd/setpgid.c
@@ -24,9 +24,7 @@
If PID is zero, the current process's process group ID is set.
If PGID is zero, the process ID of the process is used. */
int
-__setpgid (pid, pgid)
- pid_t pid;
- pid_t pgid;
+__setpgid (pid_t pid, pid_t pgid)
{
error_t err;
unsigned int stamp;
diff --git a/sysdeps/mach/hurd/setregid.c b/sysdeps/mach/hurd/setregid.c
index c2b3daf41e..28b7855211 100644
--- a/sysdeps/mach/hurd/setregid.c
+++ b/sysdeps/mach/hurd/setregid.c
@@ -23,9 +23,7 @@
#include <string.h>
int
-__setregid (rgid, egid)
- gid_t rgid;
- gid_t egid;
+__setregid (gid_t rgid, gid_t egid)
{
auth_t newauth;
error_t err;
diff --git a/sysdeps/mach/hurd/setreuid.c b/sysdeps/mach/hurd/setreuid.c
index 070e93deb6..2ca6bb3458 100644
--- a/sysdeps/mach/hurd/setreuid.c
+++ b/sysdeps/mach/hurd/setreuid.c
@@ -23,9 +23,7 @@
#include <string.h>
int
-__setreuid (ruid, euid)
- uid_t ruid;
- uid_t euid;
+__setreuid (uid_t ruid, uid_t euid)
{
auth_t newauth;
error_t err;
diff --git a/sysdeps/mach/hurd/settimeofday.c b/sysdeps/mach/hurd/settimeofday.c
index b866fc772b..6fa4ae93e2 100644
--- a/sysdeps/mach/hurd/settimeofday.c
+++ b/sysdeps/mach/hurd/settimeofday.c
@@ -23,9 +23,7 @@
/* Set the current time of day and timezone information.
This call is restricted to the super-user. */
int
-__settimeofday (tv, tz)
- const struct timeval *tv;
- const struct timezone *tz;
+__settimeofday (const struct timeval *tv, const struct timezone *tz)
{
error_t err;
mach_port_t hostpriv;
diff --git a/sysdeps/mach/hurd/setuid.c b/sysdeps/mach/hurd/setuid.c
index 4b757b9607..7cb1cf87cf 100644
--- a/sysdeps/mach/hurd/setuid.c
+++ b/sysdeps/mach/hurd/setuid.c
@@ -27,8 +27,7 @@
and effective user IDs, and the saved set-user-ID to UID;
if not, the effective user ID is set to UID. */
int
-__setuid (uid)
- uid_t uid;
+__setuid (uid_t uid)
{
auth_t newauth;
error_t err;
diff --git a/sysdeps/mach/hurd/shutdown.c b/sysdeps/mach/hurd/shutdown.c
index fdaddbecc0..2ae4613d3b 100644
--- a/sysdeps/mach/hurd/shutdown.c
+++ b/sysdeps/mach/hurd/shutdown.c
@@ -29,9 +29,7 @@
Returns 0 on success, -1 for errors. */
/* XXX should be __shutdown ? */
int
-shutdown (fd, how)
- int fd;
- int how;
+shutdown (int fd, int how)
{
error_t err = HURD_DPORT_USE (fd, __socket_shutdown (port, how));
if (err)
diff --git a/sysdeps/mach/hurd/sigaction.c b/sysdeps/mach/hurd/sigaction.c
index 34be28f5e1..aba740776f 100644
--- a/sysdeps/mach/hurd/sigaction.c
+++ b/sysdeps/mach/hurd/sigaction.c
@@ -24,10 +24,7 @@
/* If ACT is not NULL, change the action for SIG to *ACT.
If OACT is not NULL, put the old action for SIG in *OACT. */
int
-__sigaction (sig, act, oact)
- int sig;
- const struct sigaction *act;
- struct sigaction *oact;
+__sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
{
struct hurd_sigstate *ss;
struct sigaction a, old;
diff --git a/sysdeps/mach/hurd/sigaltstack.c b/sysdeps/mach/hurd/sigaltstack.c
index f573c5ce07..00f83e4be8 100644
--- a/sysdeps/mach/hurd/sigaltstack.c
+++ b/sysdeps/mach/hurd/sigaltstack.c
@@ -22,9 +22,7 @@
/* Run signals handlers on the stack specified by SS (if not NULL).
If OSS is not NULL, it is filled in with the old signal stack status. */
int
-__sigaltstack (argss, oss)
- const struct sigaltstack *argss;
- struct sigaltstack *oss;
+__sigaltstack (const struct sigaltstack *argss, struct sigaltstack *oss)
{
struct hurd_sigstate *s;
struct sigaltstack ss, old;
diff --git a/sysdeps/mach/hurd/sigpending.c b/sysdeps/mach/hurd/sigpending.c
index 254b055c8b..a941e1e59a 100644
--- a/sysdeps/mach/hurd/sigpending.c
+++ b/sysdeps/mach/hurd/sigpending.c
@@ -24,8 +24,7 @@
/* Store in SET all signals that are blocked and pending. */
/* XXX should be __sigpending ? */
int
-sigpending (set)
- sigset_t *set;
+sigpending (sigset_t *set)
{
struct hurd_sigstate *ss;
sigset_t pending;
diff --git a/sysdeps/mach/hurd/sigprocmask.c b/sysdeps/mach/hurd/sigprocmask.c
index 2e496dc63b..a1e8f444f8 100644
--- a/sysdeps/mach/hurd/sigprocmask.c
+++ b/sysdeps/mach/hurd/sigprocmask.c
@@ -25,10 +25,7 @@
according to HOW, which may be SIG_BLOCK, SIG_UNBLOCK or SIG_SETMASK.
If OSET is not NULL, store the old set of blocked signals in *OSET. */
int
-__sigprocmask (how, set, oset)
- int how;
- const sigset_t *set;
- sigset_t *oset;
+__sigprocmask (int how, const sigset_t *set, sigset_t *oset)
{
struct hurd_sigstate *ss;
sigset_t old, new;
diff --git a/sysdeps/mach/hurd/sigsuspend.c b/sysdeps/mach/hurd/sigsuspend.c
index 5bd7da9302..3e9e0f6387 100644
--- a/sysdeps/mach/hurd/sigsuspend.c
+++ b/sysdeps/mach/hurd/sigsuspend.c
@@ -24,8 +24,7 @@
/* Change the set of blocked signals to SET,
wait until a signal arrives, and restore the set of blocked signals. */
int
-__sigsuspend (set)
- const sigset_t *set;
+__sigsuspend (const sigset_t *set)
{
struct hurd_sigstate *ss;
sigset_t newmask, oldmask, pending;
diff --git a/sysdeps/mach/hurd/socket.c b/sysdeps/mach/hurd/socket.c
index bb7daddb5e..9cdaedb6a2 100644
--- a/sysdeps/mach/hurd/socket.c
+++ b/sysdeps/mach/hurd/socket.c
@@ -26,10 +26,7 @@
protocol PROTOCOL. If PROTOCOL is zero, one is chosen automatically.
Returns a file descriptor for the new socket, or -1 for errors. */
int
-__socket (domain, type, protocol)
- int domain;
- int type;
- int protocol;
+__socket (int domain, int type, int protocol)
{
error_t err;
socket_t sock, server;
diff --git a/sysdeps/mach/hurd/symlink.c b/sysdeps/mach/hurd/symlink.c
index bf1b0a0399..9ddd8d4018 100644
--- a/sysdeps/mach/hurd/symlink.c
+++ b/sysdeps/mach/hurd/symlink.c
@@ -23,9 +23,7 @@
/* Make a link to FROM called TO. */
int
-__symlink (from, to)
- const char *from;
- const char *to;
+__symlink (const char *from, const char *to)
{
error_t err;
file_t dir, node;
diff --git a/sysdeps/mach/hurd/symlinkat.c b/sysdeps/mach/hurd/symlinkat.c
index 0a6a9363a6..c72b3a4176 100644
--- a/sysdeps/mach/hurd/symlinkat.c
+++ b/sysdeps/mach/hurd/symlinkat.c
@@ -28,10 +28,7 @@
/* Make a link to FROM called TO relative to FD. */
int
-symlinkat (from, fd, to)
- const char *from;
- int fd;
- const char *to;
+symlinkat (const char *from, int fd, const char *to)
{
error_t err;
file_t dir, node;
diff --git a/sysdeps/mach/hurd/telldir.c b/sysdeps/mach/hurd/telldir.c
index 21fb8f2bc0..ed5a325828 100644
--- a/sysdeps/mach/hurd/telldir.c
+++ b/sysdeps/mach/hurd/telldir.c
@@ -25,8 +25,7 @@
/* Return the current position of DIRP. */
/* XXX should be __telldir ? */
long int
-telldir (dirp)
- DIR *dirp;
+telldir (DIR *dirp)
{
return dirp->__entry_ptr;
}
diff --git a/sysdeps/mach/hurd/truncate.c b/sysdeps/mach/hurd/truncate.c
index 89661e683d..bbbda6496e 100644
--- a/sysdeps/mach/hurd/truncate.c
+++ b/sysdeps/mach/hurd/truncate.c
@@ -23,9 +23,7 @@
/* Truncate FILE_NAME to LENGTH bytes. */
int
-__truncate (file_name, length)
- const char *file_name;
- off_t length;
+__truncate (const char *file_name, off_t length)
{
error_t err;
file_t file = __file_name_lookup (file_name, O_WRITE, 0);
diff --git a/sysdeps/mach/hurd/umask.c b/sysdeps/mach/hurd/umask.c
index 8e1a9bebaa..3dc367a52a 100644
--- a/sysdeps/mach/hurd/umask.c
+++ b/sysdeps/mach/hurd/umask.c
@@ -20,8 +20,7 @@
/* Set the file creation mask to MASK, returning the old mask. */
mode_t
-__umask (mask)
- mode_t mask;
+__umask (mode_t mask)
{
mode_t omask;
mask &= 0777;
diff --git a/sysdeps/mach/hurd/unlink.c b/sysdeps/mach/hurd/unlink.c
index 607eb3a422..03350a6c2e 100644
--- a/sysdeps/mach/hurd/unlink.c
+++ b/sysdeps/mach/hurd/unlink.c
@@ -23,8 +23,7 @@
/* Remove the link named NAME. */
int
-__unlink (name)
- const char *name;
+__unlink (const char *name)
{
error_t err;
file_t dir;
diff --git a/sysdeps/mach/hurd/unlinkat.c b/sysdeps/mach/hurd/unlinkat.c
index 95151e6c4f..050f21dde7 100644
--- a/sysdeps/mach/hurd/unlinkat.c
+++ b/sysdeps/mach/hurd/unlinkat.c
@@ -26,10 +26,7 @@
/* Remove the link named NAME. */
int
-unlinkat (fd, name, flag)
- int fd;
- const char *name;
- int flag;
+unlinkat (int fd, const char *name, int flag)
{
error_t err;
file_t dir;
diff --git a/sysdeps/mips/mips64/__longjmp.c b/sysdeps/mips/mips64/__longjmp.c
index 15d761b599..433e5f8ca8 100644
--- a/sysdeps/mips/mips64/__longjmp.c
+++ b/sysdeps/mips/mips64/__longjmp.c
@@ -25,9 +25,7 @@
#endif
void
-__longjmp (env_arg, val_arg)
- __jmp_buf env_arg;
- int val_arg;
+__longjmp (__jmp_buf env_arg, int val_arg)
{
/* gcc 1.39.19 miscompiled the longjmp routine (as it did setjmp before
the hack around it); force it to use $a1 for the longjmp value.
diff --git a/sysdeps/posix/alarm.c b/sysdeps/posix/alarm.c
index 002366462c..f7d97f1f33 100644
--- a/sysdeps/posix/alarm.c
+++ b/sysdeps/posix/alarm.c
@@ -26,8 +26,7 @@
to 0 and check its value after calling `alarm', and this might tell you.
The signal may come late due to processor scheduling. */
unsigned int
-alarm (seconds)
- unsigned int seconds;
+alarm (unsigned int seconds)
{
struct itimerval old, new;
unsigned int retval;
diff --git a/sysdeps/posix/cuserid.c b/sysdeps/posix/cuserid.c
index acdd20cd5e..d89e34edd0 100644
--- a/sysdeps/posix/cuserid.c
+++ b/sysdeps/posix/cuserid.c
@@ -25,8 +25,7 @@
If S is not NULL, it points to a buffer of at least L_cuserid bytes
into which the name is copied; otherwise, a static buffer is used. */
char *
-cuserid (s)
- char *s;
+cuserid (char *s)
{
static char name[L_cuserid];
char buf[NSS_BUFLEN_PASSWD];
diff --git a/sysdeps/posix/dirfd.c b/sysdeps/posix/dirfd.c
index 1630f8987b..e56a589438 100644
--- a/sysdeps/posix/dirfd.c
+++ b/sysdeps/posix/dirfd.c
@@ -22,8 +22,7 @@
#undef dirfd
int
-dirfd (dirp)
- DIR *dirp;
+dirfd (DIR *dirp)
{
return dirp->fd;
}
diff --git a/sysdeps/posix/dup.c b/sysdeps/posix/dup.c
index 02d7097b4c..27eff451bd 100644
--- a/sysdeps/posix/dup.c
+++ b/sysdeps/posix/dup.c
@@ -22,8 +22,7 @@
/* Duplicate FD, returning a new file descriptor open on the same file. */
int
-__dup (fd)
- int fd;
+__dup (int fd)
{
return fcntl (fd, F_DUPFD, 0);
}
diff --git a/sysdeps/posix/dup2.c b/sysdeps/posix/dup2.c
index ab983bcf74..f61eba5b5b 100644
--- a/sysdeps/posix/dup2.c
+++ b/sysdeps/posix/dup2.c
@@ -23,9 +23,7 @@
/* Duplicate FD to FD2, closing the old FD2 and making FD2 be
open the same file as FD is. Return FD2 or -1. */
int
-__dup2 (fd, fd2)
- int fd;
- int fd2;
+__dup2 (int fd, int fd2)
{
int save;
diff --git a/sysdeps/posix/euidaccess.c b/sysdeps/posix/euidaccess.c
index 15340572c3..3dbdc43047 100644
--- a/sysdeps/posix/euidaccess.c
+++ b/sysdeps/posix/euidaccess.c
@@ -117,9 +117,7 @@ int group_member ();
filesystem, text busy, etc. */
int
-euidaccess (path, mode)
- const char *path;
- int mode;
+euidaccess (const char *path, int mode)
{
struct stat64 stats;
int granted;
@@ -196,9 +194,7 @@ weak_alias (__euidaccess, eaccess)
char *program_name;
int
-main (argc, argv)
- int argc;
- char **argv;
+main (int argc, char **argv)
{
char *file;
int mode;
diff --git a/sysdeps/posix/flock.c b/sysdeps/posix/flock.c
index ba7078bdbc..fdac6a758c 100644
--- a/sysdeps/posix/flock.c
+++ b/sysdeps/posix/flock.c
@@ -27,9 +27,7 @@
/* Apply or remove an advisory lock, according to OPERATION,
on the file FD refers to. */
int
-__flock (fd, operation)
- int fd;
- int operation;
+__flock (int fd, int operation)
{
struct flock lbuf;
diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
index 088eb150ff..17ed92449e 100644
--- a/sysdeps/posix/fpathconf.c
+++ b/sysdeps/posix/fpathconf.c
@@ -26,9 +26,7 @@
/* Get file-specific information about descriptor FD. */
long int
-__fpathconf (fd, name)
- int fd;
- int name;
+__fpathconf (int fd, int name)
{
if (fd < 0)
{
diff --git a/sysdeps/posix/getcwd.c b/sysdeps/posix/getcwd.c
index afe696767a..ccb8e99c94 100644
--- a/sysdeps/posix/getcwd.c
+++ b/sysdeps/posix/getcwd.c
@@ -222,9 +222,7 @@ static int __rtld_have_atfcts;
unless SIZE == 0, in which case it is as big as necessary. */
GETCWD_RETURN_TYPE
-__getcwd (buf, size)
- char *buf;
- size_t size;
+__getcwd (char *buf, size_t size)
{
#ifndef __ASSUME_ATFCTS
static const char dots[]
diff --git a/sysdeps/posix/gethostname.c b/sysdeps/posix/gethostname.c
index 49177059c6..61e75e8b80 100644
--- a/sysdeps/posix/gethostname.c
+++ b/sysdeps/posix/gethostname.c
@@ -24,9 +24,7 @@
The result is null-terminated if LEN is large enough for the full
name and the terminator. */
int
-__gethostname (name, len)
- char *name;
- size_t len;
+__gethostname (char *name, size_t len)
{
struct utsname buf;
size_t node_len;
diff --git a/sysdeps/posix/gettimeofday.c b/sysdeps/posix/gettimeofday.c
index 018acdfd0a..08710237fd 100644
--- a/sysdeps/posix/gettimeofday.c
+++ b/sysdeps/posix/gettimeofday.c
@@ -23,9 +23,7 @@
putting it into *TV and *TZ. If TZ is NULL, *TZ is not filled.
Returns 0 on success, -1 on errors. */
int
-__gettimeofday (tv, tz)
- struct timeval *tv;
- struct timezone *tz;
+__gettimeofday (struct timeval *tv, struct timezone *tz)
{
if (tv == NULL)
{
diff --git a/sysdeps/posix/isatty.c b/sysdeps/posix/isatty.c
index 807631a484..10f19e4cb4 100644
--- a/sysdeps/posix/isatty.c
+++ b/sysdeps/posix/isatty.c
@@ -20,8 +20,7 @@
/* Return 1 if FD is a terminal, 0 if not. */
int
-__isatty (fd)
- int fd;
+__isatty (int fd)
{
struct termios term;
diff --git a/sysdeps/posix/killpg.c b/sysdeps/posix/killpg.c
index 77ffc7c1d8..8e3a3f055d 100644
--- a/sysdeps/posix/killpg.c
+++ b/sysdeps/posix/killpg.c
@@ -23,9 +23,7 @@
If PGRP is zero, send SIG to all processes in
the current process's process group. */
int
-killpg (pgrp, sig)
- __pid_t pgrp;
- int sig;
+killpg (__pid_t pgrp, int sig)
{
if (pgrp < 0)
{
diff --git a/sysdeps/posix/libc_fatal.c b/sysdeps/posix/libc_fatal.c
index 2d99c46cf8..6dc16c7cfc 100644
--- a/sysdeps/posix/libc_fatal.c
+++ b/sysdeps/posix/libc_fatal.c
@@ -178,8 +178,7 @@ __libc_message (int do_abort, const char *fmt, ...)
void
-__libc_fatal (message)
- const char *message;
+__libc_fatal (const char *message)
{
/* The loop is added only to keep gcc happy. */
while (1)
diff --git a/sysdeps/posix/mkfifoat.c b/sysdeps/posix/mkfifoat.c
index c7770eb60d..c929b1bc55 100644
--- a/sysdeps/posix/mkfifoat.c
+++ b/sysdeps/posix/mkfifoat.c
@@ -21,10 +21,7 @@
/* Create a new FIFO with permission bits MODE. But interpret
relative PATH names relative to the directory associated with FD. */
int
-mkfifoat (fd, file, mode)
- int fd;
- const char *file;
- mode_t mode;
+mkfifoat (int fd, const char *file, mode_t mode)
{
dev_t dev = 0;
return __xmknodat (_MKNOD_VER, fd, file, mode | S_IFIFO, &dev);
diff --git a/sysdeps/posix/raise.c b/sysdeps/posix/raise.c
index 008f87b556..54d79dca7f 100644
--- a/sysdeps/posix/raise.c
+++ b/sysdeps/posix/raise.c
@@ -20,8 +20,7 @@
/* Raise the signal SIG. */
int
-raise (sig)
- int sig;
+raise (int sig)
{
return __kill (__getpid (), sig);
}
diff --git a/sysdeps/posix/remove.c b/sysdeps/posix/remove.c
index 4ae3cfb4ba..6e0d9d855f 100644
--- a/sysdeps/posix/remove.c
+++ b/sysdeps/posix/remove.c
@@ -27,8 +27,7 @@
int
-remove (file)
- const char *file;
+remove (const char *file)
{
/* First try to unlink since this is more frequently the necessary action. */
if (__unlink (file) != 0
diff --git a/sysdeps/posix/rename.c b/sysdeps/posix/rename.c
index 0f13abbf5d..8eda76513c 100644
--- a/sysdeps/posix/rename.c
+++ b/sysdeps/posix/rename.c
@@ -21,9 +21,7 @@
/* Rename the file OLD to NEW. */
int
-rename (old, new)
- const char *old;
- const char *new;
+rename (const char *old, const char *new)
{
int save = errno;
if (__link (old, new) < 0)
diff --git a/sysdeps/posix/rewinddir.c b/sysdeps/posix/rewinddir.c
index 5ac4897f7d..c7c127a1b5 100644
--- a/sysdeps/posix/rewinddir.c
+++ b/sysdeps/posix/rewinddir.c
@@ -23,8 +23,7 @@
/* Rewind DIRP to the beginning of the directory. */
void
-__rewinddir (dirp)
- DIR *dirp;
+__rewinddir (DIR *dirp)
{
#if IS_IN (libc)
__libc_lock_lock (dirp->lock);
diff --git a/sysdeps/posix/seekdir.c b/sysdeps/posix/seekdir.c
index f15a57cf70..7119fe7258 100644
--- a/sysdeps/posix/seekdir.c
+++ b/sysdeps/posix/seekdir.c
@@ -24,9 +24,7 @@
/* Seek to position POS in DIRP. */
/* XXX should be __seekdir ? */
void
-seekdir (dirp, pos)
- DIR *dirp;
- long int pos;
+seekdir (DIR *dirp, long int pos)
{
__libc_lock_lock (dirp->lock);
(void) __lseek (dirp->fd, pos, SEEK_SET);
diff --git a/sysdeps/posix/sigblock.c b/sysdeps/posix/sigblock.c
index 3392fbf3ea..0236e97a15 100644
--- a/sysdeps/posix/sigblock.c
+++ b/sysdeps/posix/sigblock.c
@@ -22,8 +22,7 @@
/* Block signals in MASK, returning the old mask. */
int
-__sigblock (mask)
- int mask;
+__sigblock (int mask)
{
sigset_t set, oset;
diff --git a/sysdeps/posix/sigignore.c b/sysdeps/posix/sigignore.c
index 0c8c10dbc5..6cf3233ad7 100644
--- a/sysdeps/posix/sigignore.c
+++ b/sysdeps/posix/sigignore.c
@@ -25,8 +25,7 @@
int
-sigignore (sig)
- int sig;
+sigignore (int sig)
{
struct sigaction act;
diff --git a/sysdeps/posix/sigintr.c b/sysdeps/posix/sigintr.c
index 28c9052d47..c6681d5676 100644
--- a/sysdeps/posix/sigintr.c
+++ b/sysdeps/posix/sigintr.c
@@ -23,9 +23,7 @@
(causing them to fail with EINTR); if INTERRUPT is zero, make system
calls be restarted after signal SIG. */
int
-siginterrupt (sig, interrupt)
- int sig;
- int interrupt;
+siginterrupt (int sig, int interrupt)
{
#ifdef SA_RESTART
extern sigset_t _sigintr attribute_hidden; /* Defined in signal.c. */
diff --git a/sysdeps/posix/signal.c b/sysdeps/posix/signal.c
index 0c588238f3..d85c08aa22 100644
--- a/sysdeps/posix/signal.c
+++ b/sysdeps/posix/signal.c
@@ -26,9 +26,7 @@ sigset_t _sigintr attribute_hidden; /* Set by siginterrupt. */
/* Set the handler for the signal SIG to HANDLER,
returning the old handler, or SIG_ERR on error. */
__sighandler_t
-__bsd_signal (sig, handler)
- int sig;
- __sighandler_t handler;
+__bsd_signal (int sig, __sighandler_t handler)
{
struct sigaction act, oact;
diff --git a/sysdeps/posix/sigset.c b/sysdeps/posix/sigset.c
index 35c9fcd607..e6cd1a8ea0 100644
--- a/sysdeps/posix/sigset.c
+++ b/sysdeps/posix/sigset.c
@@ -24,9 +24,7 @@
/* Set the disposition for SIG. */
__sighandler_t
-sigset (sig, disp)
- int sig;
- __sighandler_t disp;
+sigset (int sig, __sighandler_t disp)
{
struct sigaction act;
struct sigaction oact;
diff --git a/sysdeps/posix/sigsuspend.c b/sysdeps/posix/sigsuspend.c
index 1ac689f6fb..2ef9506188 100644
--- a/sysdeps/posix/sigsuspend.c
+++ b/sysdeps/posix/sigsuspend.c
@@ -24,8 +24,7 @@
/* Change the set of blocked signals to SET,
wait until a signal arrives, and restore the set of blocked signals. */
int
-__sigsuspend (set)
- const sigset_t *set;
+__sigsuspend (const sigset_t *set)
{
sigset_t oset;
int save;
diff --git a/sysdeps/posix/sysconf.c b/sysdeps/posix/sysconf.c
index 502fe94909..c4832f4424 100644
--- a/sysdeps/posix/sysconf.c
+++ b/sysdeps/posix/sysconf.c
@@ -48,8 +48,7 @@ static long int __sysconf_check_spec (const char *spec);
/* Get the value of the system variable NAME. */
long int
-__sysconf (name)
- int name;
+__sysconf (int name)
{
switch (name)
{
diff --git a/sysdeps/posix/sysv_signal.c b/sysdeps/posix/sysv_signal.c
index 434a3e3176..6365bbbb0c 100644
--- a/sysdeps/posix/sysv_signal.c
+++ b/sysdeps/posix/sysv_signal.c
@@ -34,9 +34,7 @@
/* Set the handler for the signal SIG to HANDLER,
returning the old handler, or SIG_ERR on error. */
__sighandler_t
-__sysv_signal (sig, handler)
- int sig;
- __sighandler_t handler;
+__sysv_signal (int sig, __sighandler_t handler)
{
struct sigaction act, oact;
diff --git a/sysdeps/posix/time.c b/sysdeps/posix/time.c
index 52bc14acaf..11f224419e 100644
--- a/sysdeps/posix/time.c
+++ b/sysdeps/posix/time.c
@@ -23,8 +23,7 @@
/* Return the current time as a `time_t' and also put it in *T if T is
not NULL. Time is represented as seconds from Jan 1 00:00:00 1970. */
time_t
-time (t)
- time_t *t;
+time (time_t *t)
{
struct timeval tv;
time_t result;
diff --git a/sysdeps/posix/ttyname.c b/sysdeps/posix/ttyname.c
index e2f17ac394..60851c2035 100644
--- a/sysdeps/posix/ttyname.c
+++ b/sysdeps/posix/ttyname.c
@@ -35,12 +35,7 @@ libc_freeres_ptr (static char *getttyname_name);
static char *
internal_function
-getttyname (fd, mydev, myino, save, dostat)
- int fd;
- dev_t mydev;
- ino_t myino;
- int save;
- int *dostat;
+getttyname (int fd, dev_t mydev, ino_t myino, int save, int *dostat)
{
static const char dev[] = "/dev";
static size_t namelen;
@@ -101,8 +96,7 @@ getttyname (fd, mydev, myino, save, dostat)
/* Return the pathname of the terminal FD is open on, or NULL on errors.
The returned storage is good only until the next call to this function. */
char *
-ttyname (fd)
- int fd;
+ttyname (int fd)
{
struct stat st;
int dostat = 0;
diff --git a/sysdeps/posix/ttyname_r.c b/sysdeps/posix/ttyname_r.c
index 483b78516e..7fa85334cf 100644
--- a/sysdeps/posix/ttyname_r.c
+++ b/sysdeps/posix/ttyname_r.c
@@ -101,10 +101,7 @@ getttyname_r (fd, buf, buflen, mydev, myino, save, dostat)
/* Store at most BUFLEN character of the pathname of the terminal FD is
open on in BUF. Return 0 on success, otherwise an error number. */
int
-__ttyname_r (fd, buf, buflen)
- int fd;
- char *buf;
- size_t buflen;
+__ttyname_r (int fd, char *buf, size_t buflen)
{
struct stat st;
int dostat = 0;
diff --git a/sysdeps/posix/utime.c b/sysdeps/posix/utime.c
index d618bf2814..08dcc0468c 100644
--- a/sysdeps/posix/utime.c
+++ b/sysdeps/posix/utime.c
@@ -26,9 +26,7 @@
/* Set the access and modification times of FILE to those given in TIMES.
If TIMES is NULL, set them to the current time. */
int
-utime (file, times)
- const char *file;
- const struct utimbuf *times;
+utime (const char *file, const struct utimbuf *times)
{
struct timeval timevals[2];
struct timeval *tvp;
diff --git a/sysdeps/powerpc/fpu/s_isnan.c b/sysdeps/powerpc/fpu/s_isnan.c
index 412b47771a..0ad8969b1f 100644
--- a/sysdeps/powerpc/fpu/s_isnan.c
+++ b/sysdeps/powerpc/fpu/s_isnan.c
@@ -36,8 +36,7 @@ hidden_proto (__isnanf)
int
-__isnan (x)
- double x;
+__isnan (double x)
{
fenv_t savedstate;
int result;
diff --git a/sysdeps/powerpc/nptl/pthread_spin_lock.c b/sysdeps/powerpc/nptl/pthread_spin_lock.c
index cc081f888c..d7d4cae6fa 100644
--- a/sysdeps/powerpc/nptl/pthread_spin_lock.c
+++ b/sysdeps/powerpc/nptl/pthread_spin_lock.c
@@ -19,8 +19,7 @@
#include "pthreadP.h"
int
-pthread_spin_lock (lock)
- pthread_spinlock_t *lock;
+pthread_spin_lock (pthread_spinlock_t *lock)
{
unsigned int __tmp;
diff --git a/sysdeps/powerpc/nptl/pthread_spin_trylock.c b/sysdeps/powerpc/nptl/pthread_spin_trylock.c
index 77a46152ef..c485aa4bf9 100644
--- a/sysdeps/powerpc/nptl/pthread_spin_trylock.c
+++ b/sysdeps/powerpc/nptl/pthread_spin_trylock.c
@@ -20,8 +20,7 @@
#include "pthreadP.h"
int
-pthread_spin_trylock (lock)
- pthread_spinlock_t *lock;
+pthread_spin_trylock (pthread_spinlock_t *lock)
{
unsigned int old;
int err = EBUSY;
diff --git a/sysdeps/pthread/aio_error.c b/sysdeps/pthread/aio_error.c
index ebe1378b2a..6925f723df 100644
--- a/sysdeps/pthread/aio_error.c
+++ b/sysdeps/pthread/aio_error.c
@@ -32,8 +32,7 @@
int
-aio_error (aiocbp)
- const struct aiocb *aiocbp;
+aio_error (const struct aiocb *aiocbp)
{
int ret;
diff --git a/sysdeps/pthread/aio_read.c b/sysdeps/pthread/aio_read.c
index a54e7fee2f..a26cea9397 100644
--- a/sysdeps/pthread/aio_read.c
+++ b/sysdeps/pthread/aio_read.c
@@ -23,8 +23,7 @@
int
-aio_read (aiocbp)
- struct aiocb *aiocbp;
+aio_read (struct aiocb *aiocbp)
{
return (__aio_enqueue_request ((aiocb_union *) aiocbp, LIO_READ) == NULL
? -1 : 0);
diff --git a/sysdeps/pthread/aio_read64.c b/sysdeps/pthread/aio_read64.c
index 2a71c0a0c2..e0b4408fc6 100644
--- a/sysdeps/pthread/aio_read64.c
+++ b/sysdeps/pthread/aio_read64.c
@@ -23,8 +23,7 @@
int
-aio_read64 (aiocbp)
- struct aiocb64 *aiocbp;
+aio_read64 (struct aiocb64 *aiocbp)
{
return (__aio_enqueue_request ((aiocb_union *) aiocbp, LIO_READ64) == NULL
? -1 : 0);
diff --git a/sysdeps/pthread/aio_write.c b/sysdeps/pthread/aio_write.c
index 0c69f14cc3..8bcc1467a2 100644
--- a/sysdeps/pthread/aio_write.c
+++ b/sysdeps/pthread/aio_write.c
@@ -23,8 +23,7 @@
int
-aio_write (aiocbp)
- struct aiocb *aiocbp;
+aio_write (struct aiocb *aiocbp)
{
return (__aio_enqueue_request ((aiocb_union *) aiocbp, LIO_WRITE) == NULL
? -1 : 0);
diff --git a/sysdeps/pthread/aio_write64.c b/sysdeps/pthread/aio_write64.c
index 04c0d0254e..87412b9c25 100644
--- a/sysdeps/pthread/aio_write64.c
+++ b/sysdeps/pthread/aio_write64.c
@@ -23,8 +23,7 @@
int
-aio_write64 (aiocbp)
- struct aiocb64 *aiocbp;
+aio_write64 (struct aiocb64 *aiocbp)
{
return (__aio_enqueue_request ((aiocb_union *) aiocbp, LIO_WRITE64) == NULL
? -1 : 0);
diff --git a/sysdeps/pthread/flockfile.c b/sysdeps/pthread/flockfile.c
index 3894656747..ee04d39fd8 100644
--- a/sysdeps/pthread/flockfile.c
+++ b/sysdeps/pthread/flockfile.c
@@ -23,8 +23,7 @@
void
-__flockfile (stream)
- FILE *stream;
+__flockfile (FILE *stream)
{
_IO_lock_lock (*stream->_lock);
}
diff --git a/sysdeps/pthread/ftrylockfile.c b/sysdeps/pthread/ftrylockfile.c
index 9ee0839882..3d6ce10039 100644
--- a/sysdeps/pthread/ftrylockfile.c
+++ b/sysdeps/pthread/ftrylockfile.c
@@ -23,8 +23,7 @@
int
-__ftrylockfile (stream)
- FILE *stream;
+__ftrylockfile (FILE *stream)
{
return _IO_lock_trylock (*stream->_lock);
}
diff --git a/sysdeps/pthread/funlockfile.c b/sysdeps/pthread/funlockfile.c
index d33f7b0a56..f9c7ec81c1 100644
--- a/sysdeps/pthread/funlockfile.c
+++ b/sysdeps/pthread/funlockfile.c
@@ -23,8 +23,7 @@
void
-__funlockfile (stream)
- FILE *stream;
+__funlockfile (FILE *stream)
{
_IO_lock_unlock (*stream->_lock);
}
diff --git a/sysdeps/pthread/timer_create.c b/sysdeps/pthread/timer_create.c
index 1ab53ab151..a4240dd81a 100644
--- a/sysdeps/pthread/timer_create.c
+++ b/sysdeps/pthread/timer_create.c
@@ -27,10 +27,7 @@
/* Create new per-process timer using CLOCK. */
int
-timer_create (clock_id, evp, timerid)
- clockid_t clock_id;
- struct sigevent *evp;
- timer_t *timerid;
+timer_create (clockid_t clock_id, struct sigevent *evp, timer_t *timerid)
{
int retval = -1;
struct timer_node *newtimer = NULL;
diff --git a/sysdeps/pthread/timer_getoverr.c b/sysdeps/pthread/timer_getoverr.c
index 12433c63a8..5b540673a6 100644
--- a/sysdeps/pthread/timer_getoverr.c
+++ b/sysdeps/pthread/timer_getoverr.c
@@ -25,8 +25,7 @@
/* Get expiration overrun for timer TIMERID. */
int
-timer_getoverrun (timerid)
- timer_t timerid;
+timer_getoverrun (timer_t timerid)
{
struct timer_node *timer;
int retval = -1;
diff --git a/sysdeps/pthread/timer_gettime.c b/sysdeps/pthread/timer_gettime.c
index 07f2f0cde4..db5fd9eade 100644
--- a/sysdeps/pthread/timer_gettime.c
+++ b/sysdeps/pthread/timer_gettime.c
@@ -25,9 +25,7 @@
/* Get current value of timer TIMERID and store it in VLAUE. */
int
-timer_gettime (timerid, value)
- timer_t timerid;
- struct itimerspec *value;
+timer_gettime (timer_t timerid, struct itimerspec *value)
{
struct timer_node *timer;
struct timespec now, expiry;
diff --git a/sysdeps/s390/ffs.c b/sysdeps/s390/ffs.c
index 645e40ddd0..a5d102549a 100644
--- a/sysdeps/s390/ffs.c
+++ b/sysdeps/s390/ffs.c
@@ -29,8 +29,7 @@
differs in spirit from the above ffz (man ffs). */
int
-__ffs (x)
- int x;
+__ffs (int x)
{
int r;
diff --git a/sysdeps/s390/nptl/pthread_spin_lock.c b/sysdeps/s390/nptl/pthread_spin_lock.c
index b255b38975..f6bca3de4d 100644
--- a/sysdeps/s390/nptl/pthread_spin_lock.c
+++ b/sysdeps/s390/nptl/pthread_spin_lock.c
@@ -19,8 +19,7 @@
#include "pthreadP.h"
int
-pthread_spin_lock (lock)
- pthread_spinlock_t *lock;
+pthread_spin_lock (pthread_spinlock_t *lock)
{
int oldval;
diff --git a/sysdeps/s390/nptl/pthread_spin_trylock.c b/sysdeps/s390/nptl/pthread_spin_trylock.c
index 144cc77051..210a2c6500 100644
--- a/sysdeps/s390/nptl/pthread_spin_trylock.c
+++ b/sysdeps/s390/nptl/pthread_spin_trylock.c
@@ -20,8 +20,7 @@
#include "pthreadP.h"
int
-pthread_spin_trylock (lock)
- pthread_spinlock_t *lock;
+pthread_spin_trylock (pthread_spinlock_t *lock)
{
int old;
diff --git a/sysdeps/sh/nptl/pthread_spin_lock.c b/sysdeps/sh/nptl/pthread_spin_lock.c
index 1bb439d916..d22002345b 100644
--- a/sysdeps/sh/nptl/pthread_spin_lock.c
+++ b/sysdeps/sh/nptl/pthread_spin_lock.c
@@ -18,8 +18,7 @@
#include "pthreadP.h"
int
-pthread_spin_lock (lock)
- pthread_spinlock_t *lock;
+pthread_spin_lock (pthread_spinlock_t *lock)
{
unsigned int val;
diff --git a/sysdeps/sparc/nptl/pthread_barrier_destroy.c b/sysdeps/sparc/nptl/pthread_barrier_destroy.c
index e8044a757c..d6fec348f9 100644
--- a/sysdeps/sparc/nptl/pthread_barrier_destroy.c
+++ b/sysdeps/sparc/nptl/pthread_barrier_destroy.c
@@ -22,8 +22,7 @@
#include <sparc-nptl.h>
int
-pthread_barrier_destroy (barrier)
- pthread_barrier_t *barrier;
+pthread_barrier_destroy (pthread_barrier_t *barrier)
{
union sparc_pthread_barrier *ibarrier;
int result = EBUSY;
diff --git a/sysdeps/sparc/nptl/pthread_barrier_wait.c b/sysdeps/sparc/nptl/pthread_barrier_wait.c
index 9e9806a31a..cb0aa469de 100644
--- a/sysdeps/sparc/nptl/pthread_barrier_wait.c
+++ b/sysdeps/sparc/nptl/pthread_barrier_wait.c
@@ -25,8 +25,7 @@
/* Wait on barrier. */
int
-__pthread_barrier_wait (barrier)
- pthread_barrier_t *barrier;
+__pthread_barrier_wait (pthread_barrier_t *barrier)
{
union sparc_pthread_barrier *ibarrier
= (union sparc_pthread_barrier *) barrier;
diff --git a/sysdeps/sparc/sparc32/e_sqrt.c b/sysdeps/sparc/sparc32/e_sqrt.c
index 587fd1ee6a..1defe1d8dc 100644
--- a/sysdeps/sparc/sparc32/e_sqrt.c
+++ b/sysdeps/sparc/sparc32/e_sqrt.c
@@ -24,8 +24,7 @@
/* Return the square root of X. */
double
-__ieee754_sqrt (x)
- double x;
+__ieee754_sqrt (double x)
{
register double result;
asm ("fsqrtd %1, %0" : "=f" (result) : "f" (x));
diff --git a/sysdeps/sparc/sparc32/pthread_barrier_wait.c b/sysdeps/sparc/sparc32/pthread_barrier_wait.c
index 5e1aa1159c..33f9e9a679 100644
--- a/sysdeps/sparc/sparc32/pthread_barrier_wait.c
+++ b/sysdeps/sparc/sparc32/pthread_barrier_wait.c
@@ -25,8 +25,7 @@
/* Wait on barrier. */
int
-__pthread_barrier_wait (barrier)
- pthread_barrier_t *barrier;
+__pthread_barrier_wait (pthread_barrier_t *barrier)
{
union sparc_pthread_barrier *ibarrier
= (union sparc_pthread_barrier *) barrier;
diff --git a/sysdeps/sparc/sparc32/sem_init.c b/sysdeps/sparc/sparc32/sem_init.c
index 1c7c455617..9911c25b3c 100644
--- a/sysdeps/sparc/sparc32/sem_init.c
+++ b/sysdeps/sparc/sparc32/sem_init.c
@@ -61,10 +61,7 @@ versioned_symbol (libpthread, __new_sem_init, sem_init, GLIBC_2_1);
#if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)
int
attribute_compat_text_section
-__old_sem_init (sem, pshared, value)
- sem_t *sem;
- int pshared;
- unsigned int value;
+__old_sem_init (sem_t *sem, int pshared, unsigned int value)
{
/* Parameter sanity check. */
if (__glibc_unlikely (value > SEM_VALUE_MAX))
diff --git a/sysdeps/tile/memcmp.c b/sysdeps/tile/memcmp.c
index 7ce9247546..d27ebc381c 100644
--- a/sysdeps/tile/memcmp.c
+++ b/sysdeps/tile/memcmp.c
@@ -95,10 +95,7 @@ static int memcmp_common_alignment (long, long, size_t) __THROW;
objects (not LEN bytes!). Both SRCP1 and SRCP2 should be aligned for
memory operations on `op_t's. */
static int
-memcmp_common_alignment (srcp1, srcp2, len)
- long int srcp1;
- long int srcp2;
- size_t len;
+memcmp_common_alignment (long int srcp1, long int srcp2, size_t len)
{
op_t a0, a1;
op_t b0, b1;
@@ -190,10 +187,7 @@ static int memcmp_not_common_alignment (long, long, size_t) __THROW;
`op_t' objects (not LEN bytes!). SRCP2 should be aligned for memory
operations on `op_t', but SRCP1 *should be unaligned*. */
static int
-memcmp_not_common_alignment (srcp1, srcp2, len)
- long int srcp1;
- long int srcp2;
- size_t len;
+memcmp_not_common_alignment (long int srcp1, long int srcp2, size_t len)
{
void * srcp1i;
op_t a0, a1, a2, a3;
@@ -300,10 +294,7 @@ memcmp_not_common_alignment (srcp1, srcp2, len)
}
int
-MEMCMP (s1, s2, len)
- const __ptr_t s1;
- const __ptr_t s2;
- size_t len;
+MEMCMP (const __ptr_t s1, const __ptr_t s2, size_t len)
{
op_t a0;
op_t b0;
diff --git a/sysdeps/tile/wordcopy.c b/sysdeps/tile/wordcopy.c
index 80c79eb719..1fc6831803 100644
--- a/sysdeps/tile/wordcopy.c
+++ b/sysdeps/tile/wordcopy.c
@@ -42,10 +42,7 @@
Both SRCP and DSTP should be aligned for memory operations on `op_t's. */
void
-_wordcopy_fwd_aligned (dstp, srcp, len)
- long int dstp;
- long int srcp;
- size_t len;
+_wordcopy_fwd_aligned (long int dstp, long int srcp, size_t len)
{
op_t a0, a1;
@@ -156,10 +153,7 @@ _wordcopy_fwd_aligned (dstp, srcp, len)
*not* be aligned. */
void
-_wordcopy_fwd_dest_aligned (dstp, srcp, len)
- long int dstp;
- long int srcp;
- size_t len;
+_wordcopy_fwd_dest_aligned (long int dstp, long int srcp, size_t len)
{
void * srci;
op_t a0, a1, a2, a3;
@@ -246,10 +240,7 @@ _wordcopy_fwd_dest_aligned (dstp, srcp, len)
operations on `op_t's. */
void
-_wordcopy_bwd_aligned (dstp, srcp, len)
- long int dstp;
- long int srcp;
- size_t len;
+_wordcopy_bwd_aligned (long int dstp, long int srcp, size_t len)
{
op_t a0, a1;
long int srcp1;
@@ -357,10 +348,7 @@ _wordcopy_bwd_aligned (dstp, srcp, len)
operations on `op_t', but SRCP must *not* be aligned. */
void
-_wordcopy_bwd_dest_aligned (dstp, srcp, len)
- long int dstp;
- long int srcp;
- size_t len;
+_wordcopy_bwd_dest_aligned (long int dstp, long int srcp, size_t len)
{
void * srci;
op_t a0, a1, a2, a3;
diff --git a/sysdeps/unix/bsd/ftime.c b/sysdeps/unix/bsd/ftime.c
index 20aba7931f..186bed5dff 100644
--- a/sysdeps/unix/bsd/ftime.c
+++ b/sysdeps/unix/bsd/ftime.c
@@ -19,8 +19,7 @@
#include <sys/time.h>
int
-ftime (timebuf)
- struct timeb *timebuf;
+ftime (struct timeb *timebuf)
{
struct timeval tv;
struct timezone tz;
diff --git a/sysdeps/unix/bsd/gtty.c b/sysdeps/unix/bsd/gtty.c
index 005ec4e0de..8862c4cf4d 100644
--- a/sysdeps/unix/bsd/gtty.c
+++ b/sysdeps/unix/bsd/gtty.c
@@ -20,9 +20,7 @@
/* Fill in *PARAMS with terminal parameters associated with FD. */
int
-gtty (fd, params)
- int fd;
- struct sgttyb *params;
+gtty (int fd, struct sgttyb *params)
{
return ioctl (fd, TIOCGETP, (void *) params);
}
diff --git a/sysdeps/unix/bsd/stty.c b/sysdeps/unix/bsd/stty.c
index 0f434e29a1..a8ac0e63a1 100644
--- a/sysdeps/unix/bsd/stty.c
+++ b/sysdeps/unix/bsd/stty.c
@@ -20,9 +20,7 @@
/* Set the terminal parameters associated with FD to *PARAMS. */
int
-stty (fd, params)
- int fd;
- const struct sgttyb *params;
+stty (int fd, const struct sgttyb *params)
{
return ioctl (fd, TIOCSETP, (void *) params);
}
diff --git a/sysdeps/unix/bsd/tcflow.c b/sysdeps/unix/bsd/tcflow.c
index 5f2f61442f..d8f346ebdf 100644
--- a/sysdeps/unix/bsd/tcflow.c
+++ b/sysdeps/unix/bsd/tcflow.c
@@ -24,9 +24,7 @@
/* Suspend or restart transmission on FD. */
int
-tcflow (fd, action)
- int fd;
- int action;
+tcflow (int fd, int action)
{
switch (action)
{
diff --git a/sysdeps/unix/bsd/tcflush.c b/sysdeps/unix/bsd/tcflush.c
index 46b4f823b2..96413b93fd 100644
--- a/sysdeps/unix/bsd/tcflush.c
+++ b/sysdeps/unix/bsd/tcflush.c
@@ -24,9 +24,7 @@
/* Flush pending data on FD. */
int
-tcflush (fd, queue_selector)
- int fd;
- int queue_selector;
+tcflush (int fd, int queue_selector)
{
int arg;
diff --git a/sysdeps/unix/bsd/tcgetattr.c b/sysdeps/unix/bsd/tcgetattr.c
index 03e1d11b12..dca430eabb 100644
--- a/sysdeps/unix/bsd/tcgetattr.c
+++ b/sysdeps/unix/bsd/tcgetattr.c
@@ -30,9 +30,7 @@
/* Put the state of FD into *TERMIOS_P. */
int
-__tcgetattr (fd, termios_p)
- int fd;
- struct termios *termios_p;
+__tcgetattr (int fd, struct termios *termios_p)
{
return __ioctl (fd, TIOCGETA, termios_p);
}
diff --git a/sysdeps/unix/bsd/tcgetpgrp.c b/sysdeps/unix/bsd/tcgetpgrp.c
index ef891fee0f..59e8db366c 100644
--- a/sysdeps/unix/bsd/tcgetpgrp.c
+++ b/sysdeps/unix/bsd/tcgetpgrp.c
@@ -22,8 +22,7 @@
/* Return the foreground process group ID of FD. */
pid_t
-tcgetpgrp (fd)
- int fd;
+tcgetpgrp (int fd)
{
int pgrp;
diff --git a/sysdeps/unix/bsd/tcsendbrk.c b/sysdeps/unix/bsd/tcsendbrk.c
index 2035aed76b..470a96effe 100644
--- a/sysdeps/unix/bsd/tcsendbrk.c
+++ b/sysdeps/unix/bsd/tcsendbrk.c
@@ -27,9 +27,7 @@
/* Send zero bits on FD. */
int
-tcsendbreak (fd, duration)
- int fd;
- int duration;
+tcsendbreak (int fd, int duration)
{
struct timeval delay;
diff --git a/sysdeps/unix/bsd/tcsetattr.c b/sysdeps/unix/bsd/tcsetattr.c
index 7c5f6e5829..17114633f0 100644
--- a/sysdeps/unix/bsd/tcsetattr.c
+++ b/sysdeps/unix/bsd/tcsetattr.c
@@ -32,10 +32,7 @@
/* Set the state of FD to *TERMIOS_P. */
int
-tcsetattr (fd, optional_actions, termios_p)
- int fd;
- int optional_actions;
- const struct termios *termios_p;
+tcsetattr (int fd, int optional_actions, const struct termios *termios_p)
{
struct termios myt;
diff --git a/sysdeps/unix/bsd/tcsetpgrp.c b/sysdeps/unix/bsd/tcsetpgrp.c
index a79958c77d..5e1c789def 100644
--- a/sysdeps/unix/bsd/tcsetpgrp.c
+++ b/sysdeps/unix/bsd/tcsetpgrp.c
@@ -22,9 +22,7 @@
/* Set the foreground process group ID of FD set PGRP_ID. */
int
-tcsetpgrp (fd, pgrp_id)
- int fd;
- pid_t pgrp_id;
+tcsetpgrp (int fd, pid_t pgrp_id)
{
return __ioctl (fd, TIOCSPGRP, &pgrp_id);
}
diff --git a/sysdeps/unix/bsd/ualarm.c b/sysdeps/unix/bsd/ualarm.c
index 9f29ba3f8e..fd3ed66679 100644
--- a/sysdeps/unix/bsd/ualarm.c
+++ b/sysdeps/unix/bsd/ualarm.c
@@ -24,9 +24,7 @@
Returns the number of microseconds remaining before the alarm. */
useconds_t
-ualarm (value, interval)
- useconds_t value;
- useconds_t interval;
+ualarm (useconds_t value, useconds_t interval)
{
struct itimerval timer, otimer;
diff --git a/sysdeps/unix/bsd/wait3.c b/sysdeps/unix/bsd/wait3.c
index 37df456834..c7a4096799 100644
--- a/sysdeps/unix/bsd/wait3.c
+++ b/sysdeps/unix/bsd/wait3.c
@@ -25,10 +25,7 @@
there. If the WUNTRACED bit is set in OPTIONS, return status for stopped
children; otherwise don't. */
pid_t
-__wait3 (stat_loc, options, usage)
- __WAIT_STATUS stat_loc;
- int options;
- struct rusage *usage;
+__wait3 (__WAIT_STATUS stat_loc, int options, struct rusage *usage)
{
return __wait4 (WAIT_ANY, stat_loc, options, usage);
}
diff --git a/sysdeps/unix/getlogin_r.c b/sysdeps/unix/getlogin_r.c
index 8bb3de5e75..2d90d42bfb 100644
--- a/sysdeps/unix/getlogin_r.c
+++ b/sysdeps/unix/getlogin_r.c
@@ -34,9 +34,7 @@
STATIC
#endif
int
-__getlogin_r (name, name_len)
- char *name;
- size_t name_len;
+__getlogin_r (char *name, size_t name_len)
{
char tty_pathname[2 + 2 * NAME_MAX];
char *real_tty_path = tty_pathname;
diff --git a/sysdeps/unix/sockatmark.c b/sysdeps/unix/sockatmark.c
index cb73f3ae80..929069d3b8 100644
--- a/sysdeps/unix/sockatmark.c
+++ b/sysdeps/unix/sockatmark.c
@@ -20,8 +20,7 @@
/* Determine wheter socket is at a out-of-band mark. */
int
-sockatmark (fd)
- int fd;
+sockatmark (int fd)
{
int answ;
diff --git a/sysdeps/unix/stime.c b/sysdeps/unix/stime.c
index 8c7eb80ebf..010b0bd4da 100644
--- a/sysdeps/unix/stime.c
+++ b/sysdeps/unix/stime.c
@@ -23,8 +23,7 @@
/* Set the system clock to *WHEN. */
int
-stime (when)
- const time_t *when;
+stime (const time_t *when)
{
struct timeval tv;
diff --git a/sysdeps/unix/sysv/linux/_exit.c b/sysdeps/unix/sysv/linux/_exit.c
index 2294c80c32..902dca9b1c 100644
--- a/sysdeps/unix/sysv/linux/_exit.c
+++ b/sysdeps/unix/sysv/linux/_exit.c
@@ -23,8 +23,7 @@
void
-_exit (status)
- int status;
+_exit (int status)
{
while (1)
{
diff --git a/sysdeps/unix/sysv/linux/aio_sigqueue.c b/sysdeps/unix/sysv/linux/aio_sigqueue.c
index 6a48e6251b..375a329aa0 100644
--- a/sysdeps/unix/sysv/linux/aio_sigqueue.c
+++ b/sysdeps/unix/sysv/linux/aio_sigqueue.c
@@ -30,10 +30,8 @@
/* Return any pending signal or wait for one for the given time. */
int
-__aio_sigqueue (sig, val, caller_pid)
- int sig;
- const union sigval val;
- pid_t caller_pid;
+internal_function
+__aio_sigqueue (int sig, const union sigval val, pid_t caller_pid)
{
siginfo_t info;
diff --git a/sysdeps/unix/sysv/linux/arm/sigaction.c b/sysdeps/unix/sysv/linux/arm/sigaction.c
index f11a6f95dc..4ecd69fc30 100644
--- a/sysdeps/unix/sysv/linux/arm/sigaction.c
+++ b/sysdeps/unix/sysv/linux/arm/sigaction.c
@@ -40,10 +40,7 @@ extern void __default_rt_sa_restorer (void);
/* If ACT is not NULL, change the action for SIG to *ACT.
If OACT is not NULL, put the old action for SIG in *OACT. */
int
-__libc_sigaction (sig, act, oact)
- int sig;
- const struct sigaction *act;
- struct sigaction *oact;
+__libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
{
int result;
diff --git a/sysdeps/unix/sysv/linux/faccessat.c b/sysdeps/unix/sysv/linux/faccessat.c
index 10ae62d6f9..4908e5649b 100644
--- a/sysdeps/unix/sysv/linux/faccessat.c
+++ b/sysdeps/unix/sysv/linux/faccessat.c
@@ -28,11 +28,7 @@
int
-faccessat (fd, file, mode, flag)
- int fd;
- const char *file;
- int mode;
- int flag;
+faccessat (int fd, const char *file, int mode, int flag)
{
if (flag & ~(AT_SYMLINK_NOFOLLOW | AT_EACCESS))
return INLINE_SYSCALL_ERROR_RETURN_VALUE (EINVAL);
diff --git a/sysdeps/unix/sysv/linux/fchmodat.c b/sysdeps/unix/sysv/linux/fchmodat.c
index 8df57cd3df..228dd333ea 100644
--- a/sysdeps/unix/sysv/linux/fchmodat.c
+++ b/sysdeps/unix/sysv/linux/fchmodat.c
@@ -27,11 +27,7 @@
#include <sysdep.h>
int
-fchmodat (fd, file, mode, flag)
- int fd;
- const char *file;
- mode_t mode;
- int flag;
+fchmodat (int fd, const char *file, mode_t mode, int flag)
{
if (flag & ~AT_SYMLINK_NOFOLLOW)
return INLINE_SYSCALL_ERROR_RETURN_VALUE (EINVAL);
diff --git a/sysdeps/unix/sysv/linux/fpathconf.c b/sysdeps/unix/sysv/linux/fpathconf.c
index f422d95b3f..da131727c8 100644
--- a/sysdeps/unix/sysv/linux/fpathconf.c
+++ b/sysdeps/unix/sysv/linux/fpathconf.c
@@ -28,9 +28,7 @@ static long int posix_fpathconf (int fd, int name);
/* Get file-specific information about descriptor FD. */
long int
-__fpathconf (fd, name)
- int fd;
- int name;
+__fpathconf (int fd, int name)
{
struct statfs fsbuf;
diff --git a/sysdeps/unix/sysv/linux/gai_sigqueue.c b/sysdeps/unix/sysv/linux/gai_sigqueue.c
index 404dd68fa9..cb02036bf0 100644
--- a/sysdeps/unix/sysv/linux/gai_sigqueue.c
+++ b/sysdeps/unix/sysv/linux/gai_sigqueue.c
@@ -30,10 +30,8 @@
/* Return any pending signal or wait for one for the given time. */
int
-__gai_sigqueue (sig, val, caller_pid)
- int sig;
- const union sigval val;
- pid_t caller_pid;
+internal_function
+__gai_sigqueue (int sig, const union sigval val, pid_t caller_pid)
{
siginfo_t info;
diff --git a/sysdeps/unix/sysv/linux/gethostid.c b/sysdeps/unix/sysv/linux/gethostid.c
index 26e4692700..7896612a5e 100644
--- a/sysdeps/unix/sysv/linux/gethostid.c
+++ b/sysdeps/unix/sysv/linux/gethostid.c
@@ -26,8 +26,7 @@
#ifdef SET_PROCEDURE
int
-sethostid (id)
- long int id;
+sethostid (long int id)
{
int fd;
ssize_t written;
diff --git a/sysdeps/unix/sysv/linux/getlogin_r.c b/sysdeps/unix/sysv/linux/getlogin_r.c
index aa61f6134d..edfe0c68dd 100644
--- a/sysdeps/unix/sysv/linux/getlogin_r.c
+++ b/sysdeps/unix/sysv/linux/getlogin_r.c
@@ -32,9 +32,7 @@ static int getlogin_r_fd0 (char *name, size_t namesize);
int
attribute_hidden
-__getlogin_r_loginuid (name, namesize)
- char *name;
- size_t namesize;
+__getlogin_r_loginuid (char *name, size_t namesize)
{
int fd = open_not_cancel_2 ("/proc/self/loginuid", O_RDONLY);
if (fd == -1)
@@ -109,9 +107,7 @@ __getlogin_r_loginuid (name, namesize)
code. Otherwise return 0. */
int
-__getlogin_r (name, namesize)
- char *name;
- size_t namesize;
+__getlogin_r (char *name, size_t namesize)
{
int res = __getlogin_r_loginuid (name, namesize);
if (res >= 0)
diff --git a/sysdeps/unix/sysv/linux/getpt.c b/sysdeps/unix/sysv/linux/getpt.c
index d4b5745ef7..0c2367caa8 100644
--- a/sysdeps/unix/sysv/linux/getpt.c
+++ b/sysdeps/unix/sysv/linux/getpt.c
@@ -35,8 +35,7 @@ int __bsd_getpt (void);
/* Open a master pseudo terminal and return its file descriptor. */
int
-__posix_openpt (oflag)
- int oflag;
+__posix_openpt (int oflag)
{
static int have_no_dev_ptmx;
int fd;
diff --git a/sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c b/sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
index 80fad30255..97a4e1ca6d 100644
--- a/sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
+++ b/sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
@@ -25,8 +25,7 @@
# include <internaltypes.h>
# include <shlib-compat.h>
int
-__pthread_cond_broadcast (cond)
- pthread_cond_t *cond;
+__pthread_cond_broadcast (pthread_cond_t *cond)
{
cond_compat_check_and_clear (cond);
return __pthread_cond_broadcast_internal (cond);
diff --git a/sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c b/sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
index 21b9ab37c2..14007fa096 100644
--- a/sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
+++ b/sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
@@ -25,8 +25,7 @@
# include <internaltypes.h>
# include <shlib-compat.h>
int
-__pthread_cond_destroy (cond)
- pthread_cond_t *cond;
+__pthread_cond_destroy (pthread_cond_t *cond)
{
cond_compat_check_and_clear (cond);
return __pthread_cond_destroy_internal (cond);
diff --git a/sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c b/sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
index 86938c8258..31a87d21d7 100644
--- a/sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
+++ b/sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
@@ -25,9 +25,7 @@
# include <internaltypes.h>
# include <shlib-compat.h>
int
-__pthread_cond_init (cond, cond_attr)
- pthread_cond_t *cond;
- const pthread_condattr_t *cond_attr;
+__pthread_cond_init (pthread_cond_t *cond, const pthread_condattr_t *cond_attr)
{
cond_compat_clear (cond);
return __pthread_cond_init_internal (cond, cond_attr);
diff --git a/sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c b/sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
index 06ac33f8d8..0276fd7148 100644
--- a/sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
+++ b/sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
@@ -25,8 +25,7 @@
# include <internaltypes.h>
# include <shlib-compat.h>
int
-__pthread_cond_signal (cond)
- pthread_cond_t *cond;
+__pthread_cond_signal (pthread_cond_t *cond)
{
cond_compat_check_and_clear (cond);
return __pthread_cond_signal_internal (cond);
diff --git a/sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c b/sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
index 5e1506f002..b707dc24dd 100644
--- a/sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
+++ b/sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
@@ -25,9 +25,7 @@
# include <internaltypes.h>
# include <shlib-compat.h>
int
-__pthread_cond_wait (cond, mutex)
- pthread_cond_t *cond;
- pthread_mutex_t *mutex;
+__pthread_cond_wait (pthread_cond_t *cond, pthread_mutex_t *mutex)
{
cond_compat_check_and_clear (cond);
return __pthread_cond_wait_internal (cond, mutex);
diff --git a/sysdeps/unix/sysv/linux/i386/getmsg.c b/sysdeps/unix/sysv/linux/i386/getmsg.c
index 255b867b28..039eb6383e 100644
--- a/sysdeps/unix/sysv/linux/i386/getmsg.c
+++ b/sysdeps/unix/sysv/linux/i386/getmsg.c
@@ -24,11 +24,7 @@
#ifdef __NR_getpmsg
int
-getmsg (fildes, ctlptr, dataptr, flagsp)
- int fildes;
- struct strbuf *ctlptr;
- struct strbuf *dataptr;
- int *flagsp;
+getmsg (int fildes, struct strbuf *ctlptr, struct strbuf *dataptr, int *flagsp)
{
return INLINE_SYSCALL (getpmsg, 5, fildes, ctlptr, dataptr, NULL, flagsp);
}
diff --git a/sysdeps/unix/sysv/linux/i386/setegid.c b/sysdeps/unix/sysv/linux/i386/setegid.c
index c74e982806..f3b12f9745 100644
--- a/sysdeps/unix/sysv/linux/i386/setegid.c
+++ b/sysdeps/unix/sysv/linux/i386/setegid.c
@@ -21,8 +21,7 @@
int
-setegid (gid)
- gid_t gid;
+setegid (gid_t gid)
{
int result;
diff --git a/sysdeps/unix/sysv/linux/ia64/sigaction.c b/sysdeps/unix/sysv/linux/ia64/sigaction.c
index 0967b2c358..2c2b4788a3 100644
--- a/sysdeps/unix/sysv/linux/ia64/sigaction.c
+++ b/sysdeps/unix/sysv/linux/ia64/sigaction.c
@@ -34,10 +34,7 @@
/* If ACT is not NULL, change the action for SIG to *ACT.
If OACT is not NULL, put the old action for SIG in *OACT. */
int
-__libc_sigaction (sig, act, oact)
- int sig;
- const struct sigaction *act;
- struct sigaction *oact;
+__libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
{
/* XXX The size argument hopefully will have to be changed to the
real size of the user-level sigset_t. */
diff --git a/sysdeps/unix/sysv/linux/ia64/sigpending.c b/sysdeps/unix/sysv/linux/ia64/sigpending.c
index f426368d8a..f164756cd5 100644
--- a/sysdeps/unix/sysv/linux/ia64/sigpending.c
+++ b/sysdeps/unix/sysv/linux/ia64/sigpending.c
@@ -28,8 +28,7 @@
/* Change the set of blocked signals to SET,
wait until a signal arrives, and restore the set of blocked signals. */
int
-sigpending (set)
- sigset_t *set;
+sigpending (sigset_t *set)
{
/* XXX The size argument hopefully will have to be changed to the
real size of the user-level sigset_t. */
diff --git a/sysdeps/unix/sysv/linux/ia64/sigprocmask.c b/sysdeps/unix/sysv/linux/ia64/sigprocmask.c
index c3c53642d7..97a182fd1f 100644
--- a/sysdeps/unix/sysv/linux/ia64/sigprocmask.c
+++ b/sysdeps/unix/sysv/linux/ia64/sigprocmask.c
@@ -29,10 +29,7 @@
/* Get and/or change the set of blocked signals. */
int
-__sigprocmask (how, set, oset)
- int how;
- const sigset_t *set;
- sigset_t *oset;
+__sigprocmask (int how, const sigset_t *set, sigset_t *oset)
{
/* XXX The size argument hopefully will have to be changed to the
diff --git a/sysdeps/unix/sysv/linux/mips/sigaction.c b/sysdeps/unix/sysv/linux/mips/sigaction.c
index a7d811f04d..eef0eeff21 100644
--- a/sysdeps/unix/sysv/linux/mips/sigaction.c
+++ b/sysdeps/unix/sysv/linux/mips/sigaction.c
@@ -43,10 +43,7 @@ static void restore (void) asm ("__restore");
/* If ACT is not NULL, change the action for SIG to *ACT.
If OACT is not NULL, put the old action for SIG in *OACT. */
int
-__libc_sigaction (sig, act, oact)
- int sig;
- const struct sigaction *act;
- struct sigaction *oact;
+__libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
{
int result;
diff --git a/sysdeps/unix/sysv/linux/msgget.c b/sysdeps/unix/sysv/linux/msgget.c
index ca8932ca8a..a206b84672 100644
--- a/sysdeps/unix/sysv/linux/msgget.c
+++ b/sysdeps/unix/sysv/linux/msgget.c
@@ -28,9 +28,7 @@
parameter describes how to proceed with clashing of key values. */
int
-msgget (key, msgflg)
- key_t key;
- int msgflg;
+msgget (key_t key, int msgflg)
{
return INLINE_SYSCALL (ipc, 5, IPCOP_msgget, key, msgflg, 0, NULL);
}
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c b/sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
index 9ba5b768e2..54b569c2e8 100644
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
@@ -24,9 +24,7 @@
/* Truncate the file referenced by FD to LENGTH bytes. */
int
-__ftruncate64 (fd, length)
- int fd;
- off64_t length;
+__ftruncate64 (int fd, off64_t length)
{
/* On PPC32 64bit values are aligned in odd/even register pairs. */
int result = INLINE_SYSCALL (ftruncate64, 4, fd, 0,
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c b/sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
index deb7004ce7..52bbff1d5f 100644
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
@@ -24,9 +24,7 @@
/* Truncate the file referenced by FD to LENGTH bytes. */
int
-truncate64 (path, length)
- const char *path;
- off64_t length;
+truncate64 (const char *path, off64_t length)
{
/* On PPC32 64bit values are aligned in odd/even register pairs. */
int result = INLINE_SYSCALL (truncate64, 4, path, 0,
diff --git a/sysdeps/unix/sysv/linux/pt-raise.c b/sysdeps/unix/sysv/linux/pt-raise.c
index 307b9dca08..1025f9ea16 100644
--- a/sysdeps/unix/sysv/linux/pt-raise.c
+++ b/sysdeps/unix/sysv/linux/pt-raise.c
@@ -23,8 +23,7 @@
int
-raise (sig)
- int sig;
+raise (int sig)
{
/* raise is an async-safe function. It could be called while the
fork function temporarily invalidated the PID field. Adjust for
diff --git a/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c b/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
index 3ec1a5e73e..82b793e09f 100644
--- a/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
+++ b/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
@@ -24,9 +24,7 @@
int
-pthread_getcpuclockid (threadid, clockid)
- pthread_t threadid;
- clockid_t *clockid;
+pthread_getcpuclockid (pthread_t threadid, clockid_t *clockid)
{
struct pthread *pd = (struct pthread *) threadid;
diff --git a/sysdeps/unix/sysv/linux/pthread_getname.c b/sysdeps/unix/sysv/linux/pthread_getname.c
index 88ad8a104b..43444b911b 100644
--- a/sysdeps/unix/sysv/linux/pthread_getname.c
+++ b/sysdeps/unix/sysv/linux/pthread_getname.c
@@ -28,10 +28,7 @@
int
-pthread_getname_np (th, buf, len)
- pthread_t th;
- char *buf;
- size_t len;
+pthread_getname_np (pthread_t th, char *buf, size_t len)
{
const struct pthread *pd = (const struct pthread *) th;
diff --git a/sysdeps/unix/sysv/linux/pthread_setname.c b/sysdeps/unix/sysv/linux/pthread_setname.c
index db185527aa..c3825ebb2f 100644
--- a/sysdeps/unix/sysv/linux/pthread_setname.c
+++ b/sysdeps/unix/sysv/linux/pthread_setname.c
@@ -28,9 +28,7 @@
int
-pthread_setname_np (th, name)
- pthread_t th;
- const char *name;
+pthread_setname_np (pthread_t th, const char *name)
{
const struct pthread *pd = (const struct pthread *) th;
diff --git a/sysdeps/unix/sysv/linux/pthread_sigmask.c b/sysdeps/unix/sysv/linux/pthread_sigmask.c
index 764bda192d..3d792318e7 100644
--- a/sysdeps/unix/sysv/linux/pthread_sigmask.c
+++ b/sysdeps/unix/sysv/linux/pthread_sigmask.c
@@ -23,10 +23,7 @@
int
-pthread_sigmask (how, newmask, oldmask)
- int how;
- const sigset_t *newmask;
- sigset_t *oldmask;
+pthread_sigmask (int how, const sigset_t *newmask, sigset_t *oldmask)
{
sigset_t local_newmask;
diff --git a/sysdeps/unix/sysv/linux/pthread_sigqueue.c b/sysdeps/unix/sysv/linux/pthread_sigqueue.c
index 37830ce838..95ac4da29b 100644
--- a/sysdeps/unix/sysv/linux/pthread_sigqueue.c
+++ b/sysdeps/unix/sysv/linux/pthread_sigqueue.c
@@ -26,10 +26,7 @@
int
-pthread_sigqueue (threadid, signo, value)
- pthread_t threadid;
- int signo;
- const union sigval value;
+pthread_sigqueue (pthread_t threadid, int signo, const union sigval value)
{
#ifdef __NR_rt_tgsigqueueinfo
struct pthread *pd = (struct pthread *) threadid;
diff --git a/sysdeps/unix/sysv/linux/raise.c b/sysdeps/unix/sysv/linux/raise.c
index e2810634d6..bfcec8630a 100644
--- a/sysdeps/unix/sysv/linux/raise.c
+++ b/sysdeps/unix/sysv/linux/raise.c
@@ -24,8 +24,7 @@
int
-raise (sig)
- int sig;
+raise (int sig)
{
struct pthread *pd = THREAD_SELF;
pid_t pid = THREAD_GETMEM (pd, pid);
diff --git a/sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c b/sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
index 5f5e836364..73f79170fa 100644
--- a/sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
+++ b/sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
@@ -32,10 +32,7 @@
/* If ACT is not NULL, change the action for SIG to *ACT.
If OACT is not NULL, put the old action for SIG in *OACT. */
int
-__libc_sigaction (sig, act, oact)
- int sig;
- const struct sigaction *act;
- struct sigaction *oact;
+__libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
{
/* XXX The size argument hopefully will have to be changed to the
real size of the user-level sigset_t. */
diff --git a/sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c b/sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c
index 173c775cc8..d39bcebf74 100644
--- a/sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c
+++ b/sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c
@@ -28,8 +28,7 @@
/* Change the set of blocked signals to SET,
wait until a signal arrives, and restore the set of blocked signals. */
int
-sigpending (set)
- sigset_t *set;
+sigpending (sigset_t *set)
{
/* XXX The size argument hopefully will have to be changed to the
real size of the user-level sigset_t. */
diff --git a/sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c b/sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
index ef7db5c715..ca0c58a42f 100644
--- a/sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
+++ b/sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
@@ -27,10 +27,7 @@
/* Get and/or change the set of blocked signals. */
int
-__sigprocmask (how, set, oset)
- int how;
- const sigset_t *set;
- sigset_t *oset;
+__sigprocmask (int how, const sigset_t *set, sigset_t *oset)
{
/* XXX The size argument hopefully will have to be changed to the
diff --git a/sysdeps/unix/sysv/linux/semget.c b/sysdeps/unix/sysv/linux/semget.c
index 7221ff22d8..29ca0ae52a 100644
--- a/sysdeps/unix/sysv/linux/semget.c
+++ b/sysdeps/unix/sysv/linux/semget.c
@@ -28,10 +28,7 @@
KEY. */
int
-semget (key, nsems, semflg)
- key_t key;
- int nsems;
- int semflg;
+semget (key_t key, int nsems, int semflg)
{
return INLINE_SYSCALL (ipc, 5, IPCOP_semget, key, nsems, semflg, NULL);
}
diff --git a/sysdeps/unix/sysv/linux/semop.c b/sysdeps/unix/sysv/linux/semop.c
index dc936be856..18a292876b 100644
--- a/sysdeps/unix/sysv/linux/semop.c
+++ b/sysdeps/unix/sysv/linux/semop.c
@@ -26,10 +26,7 @@
/* Perform user-defined atomical operation of array of semaphores. */
int
-semop (semid, sops, nsops)
- int semid;
- struct sembuf *sops;
- size_t nsops;
+semop (int semid, struct sembuf *sops, size_t nsops)
{
return INLINE_SYSCALL (ipc, 5, IPCOP_semop, semid, (int) nsops, 0, sops);
}
diff --git a/sysdeps/unix/sysv/linux/setrlimit64.c b/sysdeps/unix/sysv/linux/setrlimit64.c
index 17f95cbdfc..5b1f657c4f 100644
--- a/sysdeps/unix/sysv/linux/setrlimit64.c
+++ b/sysdeps/unix/sysv/linux/setrlimit64.c
@@ -25,9 +25,7 @@
Only the super-user can increase hard limits.
Return 0 if successful, -1 if not (and sets errno). */
int
-setrlimit64 (resource, rlimits)
- enum __rlimit_resource resource;
- const struct rlimit64 *rlimits;
+setrlimit64 (enum __rlimit_resource resource, const struct rlimit64 *rlimits)
{
#ifdef __ASSUME_PRLIMIT64
return INLINE_SYSCALL (prlimit64, 4, 0, resource, rlimits, NULL);
diff --git a/sysdeps/unix/sysv/linux/shmat.c b/sysdeps/unix/sysv/linux/shmat.c
index 69bcf77793..b75bb9e23c 100644
--- a/sysdeps/unix/sysv/linux/shmat.c
+++ b/sysdeps/unix/sysv/linux/shmat.c
@@ -29,10 +29,7 @@
and where the segment is attached. */
void *
-shmat (shmid, shmaddr, shmflg)
- int shmid;
- const void *shmaddr;
- int shmflg;
+shmat (int shmid, const void *shmaddr, int shmflg)
{
INTERNAL_SYSCALL_DECL(err);
unsigned long resultvar;
diff --git a/sysdeps/unix/sysv/linux/shmdt.c b/sysdeps/unix/sysv/linux/shmdt.c
index 51bad719c0..e7f4196c5c 100644
--- a/sysdeps/unix/sysv/linux/shmdt.c
+++ b/sysdeps/unix/sysv/linux/shmdt.c
@@ -27,8 +27,7 @@
from the caller's data segment. */
int
-shmdt (shmaddr)
- const void *shmaddr;
+shmdt (const void *shmaddr)
{
return INLINE_SYSCALL (ipc, 5, IPCOP_shmdt, 0, 0, 0, (void *) shmaddr);
}
diff --git a/sysdeps/unix/sysv/linux/shmget.c b/sysdeps/unix/sysv/linux/shmget.c
index b3d74e69e5..0cc2650602 100644
--- a/sysdeps/unix/sysv/linux/shmget.c
+++ b/sysdeps/unix/sysv/linux/shmget.c
@@ -28,10 +28,7 @@
which is associated with KEY. */
int
-shmget (key, size, shmflg)
- key_t key;
- size_t size;
- int shmflg;
+shmget (key_t key, size_t size, int shmflg)
{
return INLINE_SYSCALL (ipc, 5, IPCOP_shmget, key, size, shmflg, NULL);
}
diff --git a/sysdeps/unix/sysv/linux/sigaction.c b/sysdeps/unix/sysv/linux/sigaction.c
index 66081d4d7f..c95bc75a3c 100644
--- a/sysdeps/unix/sysv/linux/sigaction.c
+++ b/sysdeps/unix/sysv/linux/sigaction.c
@@ -31,10 +31,7 @@
/* If ACT is not NULL, change the action for SIG to *ACT.
If OACT is not NULL, put the old action for SIG in *OACT. */
int
-__libc_sigaction (sig, act, oact)
- int sig;
- const struct sigaction *act;
- struct sigaction *oact;
+__libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
{
int result;
diff --git a/sysdeps/unix/sysv/linux/sigpending.c b/sysdeps/unix/sysv/linux/sigpending.c
index c8f3a8e395..df9c926560 100644
--- a/sysdeps/unix/sysv/linux/sigpending.c
+++ b/sysdeps/unix/sysv/linux/sigpending.c
@@ -26,8 +26,7 @@
/* Change the set of blocked signals to SET,
wait until a signal arrives, and restore the set of blocked signals. */
int
-sigpending (set)
- sigset_t *set;
+sigpending (sigset_t *set)
{
return INLINE_SYSCALL (rt_sigpending, 2, set, _NSIG / 8);
}
diff --git a/sysdeps/unix/sysv/linux/sigprocmask.c b/sysdeps/unix/sysv/linux/sigprocmask.c
index 574f0d2232..c0eca99b9c 100644
--- a/sysdeps/unix/sysv/linux/sigprocmask.c
+++ b/sysdeps/unix/sysv/linux/sigprocmask.c
@@ -28,10 +28,7 @@
/* Get and/or change the set of blocked signals. */
int
-__sigprocmask (how, set, oset)
- int how;
- const sigset_t *set;
- sigset_t *oset;
+__sigprocmask (int how, const sigset_t *set, sigset_t *oset)
{
#ifdef SIGCANCEL
sigset_t local_newmask;
diff --git a/sysdeps/unix/sysv/linux/sigqueue.c b/sysdeps/unix/sysv/linux/sigqueue.c
index 7970a7c997..cf8a79aae7 100644
--- a/sysdeps/unix/sysv/linux/sigqueue.c
+++ b/sysdeps/unix/sysv/linux/sigqueue.c
@@ -26,10 +26,7 @@
#ifdef __NR_rt_sigqueueinfo
/* Return any pending signal or wait for one for the given time. */
int
-__sigqueue (pid, sig, val)
- pid_t pid;
- int sig;
- const union sigval val;
+__sigqueue (pid_t pid, int sig, const union sigval val)
{
siginfo_t info;
diff --git a/sysdeps/unix/sysv/linux/sigstack.c b/sysdeps/unix/sysv/linux/sigstack.c
index e5e07ec04c..2d86b0335a 100644
--- a/sysdeps/unix/sysv/linux/sigstack.c
+++ b/sysdeps/unix/sysv/linux/sigstack.c
@@ -24,9 +24,7 @@
#ifdef __NR_sigaltstack
int
-sigstack (ss, oss)
- struct sigstack *ss;
- struct sigstack *oss;
+sigstack (struct sigstack *ss, struct sigstack *oss)
{
stack_t sas;
stack_t *sasp = NULL;
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c b/sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c
index 61b5089d0e..8e1c8a6594 100644
--- a/sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c
+++ b/sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c
@@ -25,8 +25,7 @@
/* Change the set of blocked signals to SET,
wait until a signal arrives, and restore the set of blocked signals. */
int
-sigpending (set)
- sigset_t *set;
+sigpending (sigset_t *set)
{
/* XXX The size argument hopefully will have to be changed to the
real size of the user-level sigset_t. */
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c b/sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
index 74ccf55c53..db7d0fdb40 100644
--- a/sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
+++ b/sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
@@ -24,10 +24,7 @@
/* Get and/or change the set of blocked signals. */
int
-__sigprocmask (how, set, oset)
- int how;
- const sigset_t *set;
- sigset_t *oset;
+__sigprocmask (int how, const sigset_t *set, sigset_t *oset)
{
/* XXX The size argument hopefully will have to be changed to the
real size of the user-level sigset_t. */
diff --git a/sysdeps/unix/sysv/linux/speed.c b/sysdeps/unix/sysv/linux/speed.c
index 43f1e77d62..70d893f7d9 100644
--- a/sysdeps/unix/sysv/linux/speed.c
+++ b/sysdeps/unix/sysv/linux/speed.c
@@ -34,8 +34,7 @@
/* Return the output baud rate stored in *TERMIOS_P. */
speed_t
-cfgetospeed (termios_p)
- const struct termios *termios_p;
+cfgetospeed (const struct termios *termios_p)
{
return termios_p->c_cflag & (CBAUD | CBAUDEX);
}
@@ -45,8 +44,7 @@ cfgetospeed (termios_p)
speed, the numerical 0 is a special case for the input baud rate. It
should set the input baud rate to the output baud rate. */
speed_t
-cfgetispeed (termios_p)
- const struct termios *termios_p;
+cfgetispeed (const struct termios *termios_p)
{
return ((termios_p->c_iflag & IBAUD0)
? 0 : termios_p->c_cflag & (CBAUD | CBAUDEX));
@@ -54,9 +52,7 @@ cfgetispeed (termios_p)
/* Set the output baud rate stored in *TERMIOS_P to SPEED. */
int
-cfsetospeed (termios_p, speed)
- struct termios *termios_p;
- speed_t speed;
+cfsetospeed (struct termios *termios_p, speed_t speed)
{
if ((speed & ~CBAUD) != 0
&& (speed < B57600 || speed > __MAX_BAUD))
@@ -78,9 +74,7 @@ libc_hidden_def (cfsetospeed)
speed, the numerical 0 is a special case for the input baud rate. It
should set the input baud rate to the output baud rate. */
int
-cfsetispeed (termios_p, speed)
- struct termios *termios_p;
- speed_t speed;
+cfsetispeed (struct termios *termios_p, speed_t speed)
{
if ((speed & ~CBAUD) != 0
&& (speed < B57600 || speed > __MAX_BAUD))
diff --git a/sysdeps/unix/sysv/linux/tcflow.c b/sysdeps/unix/sysv/linux/tcflow.c
index cbf82c9761..c1c7163d32 100644
--- a/sysdeps/unix/sysv/linux/tcflow.c
+++ b/sysdeps/unix/sysv/linux/tcflow.c
@@ -22,9 +22,7 @@
/* Suspend or restart transmission on FD. */
int
-tcflow (fd, action)
- int fd;
- int action;
+tcflow (int fd, int action)
{
return __ioctl (fd, TCXONC, action);
}
diff --git a/sysdeps/unix/sysv/linux/tcflush.c b/sysdeps/unix/sysv/linux/tcflush.c
index 2fd81586db..fcb334e771 100644
--- a/sysdeps/unix/sysv/linux/tcflush.c
+++ b/sysdeps/unix/sysv/linux/tcflush.c
@@ -22,9 +22,7 @@
/* Flush pending data on FD. */
int
-tcflush (fd, queue_selector)
- int fd;
- int queue_selector;
+tcflush (int fd, int queue_selector)
{
return __ioctl (fd, TCFLSH, queue_selector);
}
diff --git a/sysdeps/unix/sysv/linux/tcgetattr.c b/sysdeps/unix/sysv/linux/tcgetattr.c
index 6f71b9eebd..489401ef4a 100644
--- a/sysdeps/unix/sysv/linux/tcgetattr.c
+++ b/sysdeps/unix/sysv/linux/tcgetattr.c
@@ -30,9 +30,7 @@
/* Put the state of FD into *TERMIOS_P. */
int
-__tcgetattr (fd, termios_p)
- int fd;
- struct termios *termios_p;
+__tcgetattr (int fd, struct termios *termios_p)
{
struct __kernel_termios k_termios;
int retval;
diff --git a/sysdeps/unix/sysv/linux/tcsetattr.c b/sysdeps/unix/sysv/linux/tcsetattr.c
index 59016b5c2c..f7866ead98 100644
--- a/sysdeps/unix/sysv/linux/tcsetattr.c
+++ b/sysdeps/unix/sysv/linux/tcsetattr.c
@@ -41,10 +41,7 @@
/* Set the state of FD to *TERMIOS_P. */
int
-tcsetattr (fd, optional_actions, termios_p)
- int fd;
- int optional_actions;
- const struct termios *termios_p;
+tcsetattr (int fd, int optional_actions, const struct termios *termios_p)
{
struct __kernel_termios k_termios;
unsigned long int cmd;
diff --git a/sysdeps/unix/sysv/linux/time.c b/sysdeps/unix/sysv/linux/time.c
index 8ca2d2b2df..a20efb4363 100644
--- a/sysdeps/unix/sysv/linux/time.c
+++ b/sysdeps/unix/sysv/linux/time.c
@@ -23,8 +23,7 @@
#ifdef __NR_time
time_t
-time (t)
- time_t *t;
+time (time_t *t)
{
INTERNAL_SYSCALL_DECL (err);
time_t res = INTERNAL_SYSCALL (time, err, 1, NULL);
diff --git a/sysdeps/unix/sysv/linux/timer_create.c b/sysdeps/unix/sysv/linux/timer_create.c
index 121c708bc2..400030200b 100644
--- a/sysdeps/unix/sysv/linux/timer_create.c
+++ b/sysdeps/unix/sysv/linux/timer_create.c
@@ -35,10 +35,7 @@
int
-timer_create (clock_id, evp, timerid)
- clockid_t clock_id;
- struct sigevent *evp;
- timer_t *timerid;
+timer_create (clockid_t clock_id, struct sigevent *evp, timer_t *timerid)
{
#undef timer_create
{
diff --git a/sysdeps/unix/sysv/linux/timer_delete.c b/sysdeps/unix/sysv/linux/timer_delete.c
index 0c24dade4b..1db9cbd7f3 100644
--- a/sysdeps/unix/sysv/linux/timer_delete.c
+++ b/sysdeps/unix/sysv/linux/timer_delete.c
@@ -29,8 +29,7 @@
int
-timer_delete (timerid)
- timer_t timerid;
+timer_delete (timer_t timerid)
{
#undef timer_delete
struct timer *kt = (struct timer *) timerid;
diff --git a/sysdeps/unix/sysv/linux/timer_getoverr.c b/sysdeps/unix/sysv/linux/timer_getoverr.c
index 8f00192287..073f53676e 100644
--- a/sysdeps/unix/sysv/linux/timer_getoverr.c
+++ b/sysdeps/unix/sysv/linux/timer_getoverr.c
@@ -28,8 +28,7 @@
int
-timer_getoverrun (timerid)
- timer_t timerid;
+timer_getoverrun (timer_t timerid)
{
#undef timer_getoverrun
struct timer *kt = (struct timer *) timerid;
diff --git a/sysdeps/unix/sysv/linux/timer_gettime.c b/sysdeps/unix/sysv/linux/timer_gettime.c
index 79705cf5e8..12667d9551 100644
--- a/sysdeps/unix/sysv/linux/timer_gettime.c
+++ b/sysdeps/unix/sysv/linux/timer_gettime.c
@@ -29,9 +29,7 @@
int
-timer_gettime (timerid, value)
- timer_t timerid;
- struct itimerspec *value;
+timer_gettime (timer_t timerid, struct itimerspec *value)
{
#undef timer_gettime
struct timer *kt = (struct timer *) timerid;
diff --git a/sysdeps/unix/sysv/linux/x86_64/sigpending.c b/sysdeps/unix/sysv/linux/x86_64/sigpending.c
index c4139e899a..6ae975892e 100644
--- a/sysdeps/unix/sysv/linux/x86_64/sigpending.c
+++ b/sysdeps/unix/sysv/linux/x86_64/sigpending.c
@@ -28,8 +28,7 @@
/* Change the set of blocked signals to SET,
wait until a signal arrives, and restore the set of blocked signals. */
int
-sigpending (set)
- sigset_t *set;
+sigpending (sigset_t *set)
{
/* XXX The size argument hopefully will have to be changed to the
real size of the user-level sigset_t. */
diff --git a/sysdeps/unix/sysv/linux/x86_64/sigprocmask.c b/sysdeps/unix/sysv/linux/x86_64/sigprocmask.c
index 251a59b390..145508297a 100644
--- a/sysdeps/unix/sysv/linux/x86_64/sigprocmask.c
+++ b/sysdeps/unix/sysv/linux/x86_64/sigprocmask.c
@@ -28,10 +28,7 @@
/* Get and/or change the set of blocked signals. */
int
-__sigprocmask (how, set, oset)
- int how;
- const sigset_t *set;
- sigset_t *oset;
+__sigprocmask (int how, const sigset_t *set, sigset_t *oset)
{
/* XXX The size argument hopefully will have to be changed to the
diff --git a/sysdeps/x86_64/backtrace.c b/sysdeps/x86_64/backtrace.c
index 04a4e82436..49fe8ec84d 100644
--- a/sysdeps/x86_64/backtrace.c
+++ b/sysdeps/x86_64/backtrace.c
@@ -92,9 +92,7 @@ backtrace_helper (struct _Unwind_Context *ctx, void *a)
}
int
-__backtrace (array, size)
- void **array;
- int size;
+__backtrace (void **array, int size)
{
struct trace_arg arg = { .array = array, .cfa = 0, .size = size, .cnt = -1 };