From bd2260a2069993cdb14cffcbb2b0dc04b9888aee Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 19 Oct 2015 12:04:33 +0000 Subject: 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 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 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. --- ChangeLog | 277 +++++++++++++++++++++ sysdeps/arm/backtrace.c | 4 +- sysdeps/i386/backtrace.c | 4 +- sysdeps/i386/ffs.c | 3 +- sysdeps/i386/i686/ffs.c | 3 +- sysdeps/ia64/nptl/pthread_spin_lock.c | 3 +- sysdeps/ia64/nptl/pthread_spin_trylock.c | 3 +- sysdeps/ieee754/ldbl-128/e_log2l.c | 3 +- sysdeps/ieee754/ldbl-128ibm/e_log2l.c | 3 +- sysdeps/m68k/ffs.c | 3 +- sysdeps/m68k/m680x0/fpu/e_acos.c | 3 +- sysdeps/m68k/m680x0/fpu/e_fmod.c | 4 +- sysdeps/mach/adjtime.c | 4 +- sysdeps/mach/gettimeofday.c | 4 +- sysdeps/mach/hurd/_exit.c | 3 +- sysdeps/mach/hurd/access.c | 4 +- sysdeps/mach/hurd/adjtime.c | 4 +- sysdeps/mach/hurd/chdir.c | 3 +- sysdeps/mach/hurd/chmod.c | 4 +- sysdeps/mach/hurd/chown.c | 5 +- sysdeps/mach/hurd/cthreads.c | 14 +- sysdeps/mach/hurd/euidaccess.c | 4 +- sysdeps/mach/hurd/faccessat.c | 6 +- sysdeps/mach/hurd/fchdir.c | 3 +- sysdeps/mach/hurd/fchmod.c | 4 +- sysdeps/mach/hurd/fchmodat.c | 6 +- sysdeps/mach/hurd/fchown.c | 5 +- sysdeps/mach/hurd/fchownat.c | 7 +- sysdeps/mach/hurd/flock.c | 4 +- sysdeps/mach/hurd/fsync.c | 3 +- sysdeps/mach/hurd/ftruncate.c | 4 +- sysdeps/mach/hurd/getgroups.c | 4 +- sysdeps/mach/hurd/gethostname.c | 4 +- sysdeps/mach/hurd/getitimer.c | 4 +- sysdeps/mach/hurd/getlogin_r.c | 4 +- sysdeps/mach/hurd/getpgid.c | 3 +- sysdeps/mach/hurd/getrusage.c | 4 +- sysdeps/mach/hurd/getsockname.c | 5 +- sysdeps/mach/hurd/group_member.c | 3 +- sysdeps/mach/hurd/isatty.c | 3 +- sysdeps/mach/hurd/lchown.c | 5 +- sysdeps/mach/hurd/link.c | 4 +- sysdeps/mach/hurd/linkat.c | 7 +- sysdeps/mach/hurd/listen.c | 4 +- sysdeps/mach/hurd/mkdir.c | 4 +- sysdeps/mach/hurd/mkdirat.c | 5 +- sysdeps/mach/hurd/openat.c | 5 +- sysdeps/mach/hurd/poll.c | 5 +- sysdeps/mach/hurd/readlink.c | 5 +- sysdeps/mach/hurd/readlinkat.c | 6 +- sysdeps/mach/hurd/recv.c | 6 +- sysdeps/mach/hurd/rename.c | 4 +- sysdeps/mach/hurd/renameat.c | 6 +- sysdeps/mach/hurd/revoke.c | 3 +- sysdeps/mach/hurd/rewinddir.c | 3 +- sysdeps/mach/hurd/rmdir.c | 3 +- sysdeps/mach/hurd/seekdir.c | 4 +- sysdeps/mach/hurd/send.c | 6 +- sysdeps/mach/hurd/setdomain.c | 4 +- sysdeps/mach/hurd/setegid.c | 3 +- sysdeps/mach/hurd/seteuid.c | 3 +- sysdeps/mach/hurd/setgid.c | 3 +- sysdeps/mach/hurd/setgroups.c | 4 +- sysdeps/mach/hurd/sethostid.c | 3 +- sysdeps/mach/hurd/sethostname.c | 4 +- sysdeps/mach/hurd/setlogin.c | 3 +- sysdeps/mach/hurd/setpgid.c | 4 +- sysdeps/mach/hurd/setregid.c | 4 +- sysdeps/mach/hurd/setreuid.c | 4 +- sysdeps/mach/hurd/settimeofday.c | 4 +- sysdeps/mach/hurd/setuid.c | 3 +- sysdeps/mach/hurd/shutdown.c | 4 +- sysdeps/mach/hurd/sigaction.c | 5 +- sysdeps/mach/hurd/sigaltstack.c | 4 +- sysdeps/mach/hurd/sigpending.c | 3 +- sysdeps/mach/hurd/sigprocmask.c | 5 +- sysdeps/mach/hurd/sigsuspend.c | 3 +- sysdeps/mach/hurd/socket.c | 5 +- sysdeps/mach/hurd/symlink.c | 4 +- sysdeps/mach/hurd/symlinkat.c | 5 +- sysdeps/mach/hurd/telldir.c | 3 +- sysdeps/mach/hurd/truncate.c | 4 +- sysdeps/mach/hurd/umask.c | 3 +- sysdeps/mach/hurd/unlink.c | 3 +- sysdeps/mach/hurd/unlinkat.c | 5 +- sysdeps/mips/mips64/__longjmp.c | 4 +- sysdeps/posix/alarm.c | 3 +- sysdeps/posix/cuserid.c | 3 +- sysdeps/posix/dirfd.c | 3 +- sysdeps/posix/dup.c | 3 +- sysdeps/posix/dup2.c | 4 +- sysdeps/posix/euidaccess.c | 8 +- sysdeps/posix/flock.c | 4 +- sysdeps/posix/fpathconf.c | 4 +- sysdeps/posix/getcwd.c | 4 +- sysdeps/posix/gethostname.c | 4 +- sysdeps/posix/gettimeofday.c | 4 +- sysdeps/posix/isatty.c | 3 +- sysdeps/posix/killpg.c | 4 +- sysdeps/posix/libc_fatal.c | 3 +- sysdeps/posix/mkfifoat.c | 5 +- sysdeps/posix/raise.c | 3 +- sysdeps/posix/remove.c | 3 +- sysdeps/posix/rename.c | 4 +- sysdeps/posix/rewinddir.c | 3 +- sysdeps/posix/seekdir.c | 4 +- sysdeps/posix/sigblock.c | 3 +- sysdeps/posix/sigignore.c | 3 +- sysdeps/posix/sigintr.c | 4 +- sysdeps/posix/signal.c | 4 +- sysdeps/posix/sigset.c | 4 +- sysdeps/posix/sigsuspend.c | 3 +- sysdeps/posix/sysconf.c | 3 +- sysdeps/posix/sysv_signal.c | 4 +- sysdeps/posix/time.c | 3 +- sysdeps/posix/ttyname.c | 10 +- sysdeps/posix/ttyname_r.c | 5 +- sysdeps/posix/utime.c | 4 +- sysdeps/powerpc/fpu/s_isnan.c | 3 +- sysdeps/powerpc/nptl/pthread_spin_lock.c | 3 +- sysdeps/powerpc/nptl/pthread_spin_trylock.c | 3 +- sysdeps/pthread/aio_error.c | 3 +- sysdeps/pthread/aio_read.c | 3 +- sysdeps/pthread/aio_read64.c | 3 +- sysdeps/pthread/aio_write.c | 3 +- sysdeps/pthread/aio_write64.c | 3 +- sysdeps/pthread/flockfile.c | 3 +- sysdeps/pthread/ftrylockfile.c | 3 +- sysdeps/pthread/funlockfile.c | 3 +- sysdeps/pthread/timer_create.c | 5 +- sysdeps/pthread/timer_getoverr.c | 3 +- sysdeps/pthread/timer_gettime.c | 4 +- sysdeps/s390/ffs.c | 3 +- sysdeps/s390/nptl/pthread_spin_lock.c | 3 +- sysdeps/s390/nptl/pthread_spin_trylock.c | 3 +- sysdeps/sh/nptl/pthread_spin_lock.c | 3 +- sysdeps/sparc/nptl/pthread_barrier_destroy.c | 3 +- sysdeps/sparc/nptl/pthread_barrier_wait.c | 3 +- sysdeps/sparc/sparc32/e_sqrt.c | 3 +- sysdeps/sparc/sparc32/pthread_barrier_wait.c | 3 +- sysdeps/sparc/sparc32/sem_init.c | 5 +- sysdeps/tile/memcmp.c | 15 +- sysdeps/tile/wordcopy.c | 20 +- sysdeps/unix/bsd/ftime.c | 3 +- sysdeps/unix/bsd/gtty.c | 4 +- sysdeps/unix/bsd/stty.c | 4 +- sysdeps/unix/bsd/tcflow.c | 4 +- sysdeps/unix/bsd/tcflush.c | 4 +- sysdeps/unix/bsd/tcgetattr.c | 4 +- sysdeps/unix/bsd/tcgetpgrp.c | 3 +- sysdeps/unix/bsd/tcsendbrk.c | 4 +- sysdeps/unix/bsd/tcsetattr.c | 5 +- sysdeps/unix/bsd/tcsetpgrp.c | 4 +- sysdeps/unix/bsd/ualarm.c | 4 +- sysdeps/unix/bsd/wait3.c | 5 +- sysdeps/unix/getlogin_r.c | 4 +- sysdeps/unix/sockatmark.c | 3 +- sysdeps/unix/stime.c | 3 +- sysdeps/unix/sysv/linux/_exit.c | 3 +- sysdeps/unix/sysv/linux/aio_sigqueue.c | 6 +- sysdeps/unix/sysv/linux/arm/sigaction.c | 5 +- sysdeps/unix/sysv/linux/faccessat.c | 6 +- sysdeps/unix/sysv/linux/fchmodat.c | 6 +- sysdeps/unix/sysv/linux/fpathconf.c | 4 +- sysdeps/unix/sysv/linux/gai_sigqueue.c | 6 +- sysdeps/unix/sysv/linux/gethostid.c | 3 +- sysdeps/unix/sysv/linux/getlogin_r.c | 8 +- sysdeps/unix/sysv/linux/getpt.c | 3 +- .../unix/sysv/linux/hppa/pthread_cond_broadcast.c | 3 +- .../unix/sysv/linux/hppa/pthread_cond_destroy.c | 3 +- sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c | 4 +- sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c | 3 +- sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c | 4 +- sysdeps/unix/sysv/linux/i386/getmsg.c | 6 +- sysdeps/unix/sysv/linux/i386/setegid.c | 3 +- sysdeps/unix/sysv/linux/ia64/sigaction.c | 5 +- sysdeps/unix/sysv/linux/ia64/sigpending.c | 3 +- sysdeps/unix/sysv/linux/ia64/sigprocmask.c | 5 +- sysdeps/unix/sysv/linux/mips/sigaction.c | 5 +- sysdeps/unix/sysv/linux/msgget.c | 4 +- .../sysv/linux/powerpc/powerpc32/ftruncate64.c | 4 +- .../unix/sysv/linux/powerpc/powerpc32/truncate64.c | 4 +- sysdeps/unix/sysv/linux/pt-raise.c | 3 +- sysdeps/unix/sysv/linux/pthread_getcpuclockid.c | 4 +- sysdeps/unix/sysv/linux/pthread_getname.c | 5 +- sysdeps/unix/sysv/linux/pthread_setname.c | 4 +- sysdeps/unix/sysv/linux/pthread_sigmask.c | 5 +- sysdeps/unix/sysv/linux/pthread_sigqueue.c | 5 +- sysdeps/unix/sysv/linux/raise.c | 3 +- sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c | 5 +- sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c | 3 +- sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c | 5 +- sysdeps/unix/sysv/linux/semget.c | 5 +- sysdeps/unix/sysv/linux/semop.c | 5 +- sysdeps/unix/sysv/linux/setrlimit64.c | 4 +- sysdeps/unix/sysv/linux/shmat.c | 5 +- sysdeps/unix/sysv/linux/shmdt.c | 3 +- sysdeps/unix/sysv/linux/shmget.c | 5 +- sysdeps/unix/sysv/linux/sigaction.c | 5 +- sysdeps/unix/sysv/linux/sigpending.c | 3 +- sysdeps/unix/sysv/linux/sigprocmask.c | 5 +- sysdeps/unix/sysv/linux/sigqueue.c | 5 +- sysdeps/unix/sysv/linux/sigstack.c | 4 +- sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c | 3 +- .../unix/sysv/linux/sparc/sparc64/sigprocmask.c | 5 +- sysdeps/unix/sysv/linux/speed.c | 14 +- sysdeps/unix/sysv/linux/tcflow.c | 4 +- sysdeps/unix/sysv/linux/tcflush.c | 4 +- sysdeps/unix/sysv/linux/tcgetattr.c | 4 +- sysdeps/unix/sysv/linux/tcsetattr.c | 5 +- sysdeps/unix/sysv/linux/time.c | 3 +- sysdeps/unix/sysv/linux/timer_create.c | 5 +- sysdeps/unix/sysv/linux/timer_delete.c | 3 +- sysdeps/unix/sysv/linux/timer_getoverr.c | 3 +- sysdeps/unix/sysv/linux/timer_gettime.c | 4 +- sysdeps/unix/sysv/linux/x86_64/sigpending.c | 3 +- sysdeps/unix/sysv/linux/x86_64/sigprocmask.c | 5 +- sysdeps/x86_64/backtrace.c | 4 +- 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 + + * 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 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 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 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 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 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 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 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 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/hur