1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

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.
This commit is contained in:
Joseph Myers
2015-10-19 12:04:33 +00:00
parent 4e1665024a
commit bd2260a206
218 changed files with 510 additions and 678 deletions

277
ChangeLog
View File

@ -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> 2015-10-17 Florian Weimer <fweimer@redhat.com>
sunrpc: Rewrite with explicit TLS access using __thread. sunrpc: Rewrite with explicit TLS access using __thread.

View File

@ -87,9 +87,7 @@ backtrace_helper (struct _Unwind_Context *ctx, void *a)
} }
int int
__backtrace (array, size) __backtrace (void **array, int size)
void **array;
int size;
{ {
struct trace_arg arg = { .array = array, .size = size, .cnt = -1 }; struct trace_arg arg = { .array = array, .size = size, .cnt = -1 };

View File

@ -109,9 +109,7 @@ struct layout
int int
__backtrace (array, size) __backtrace (void **array, int size)
void **array;
int size;
{ {
struct trace_arg arg = { .array = array, .size = size, .cnt = -1 }; struct trace_arg arg = { .array = array, .size = size, .cnt = -1 };

View File

@ -26,8 +26,7 @@
#ifdef __GNUC__ #ifdef __GNUC__
int int
__ffs (x) __ffs (int x)
int x;
{ {
int cnt; int cnt;
int tmp; int tmp;

View File

@ -26,8 +26,7 @@
#ifdef __GNUC__ #ifdef __GNUC__
int int
__ffs (x) __ffs (int x)
int x;
{ {
int cnt; int cnt;
int tmp; int tmp;

View File

@ -19,8 +19,7 @@
#include "pthreadP.h" #include "pthreadP.h"
int int
pthread_spin_lock (lock) pthread_spin_lock (pthread_spinlock_t *lock)
pthread_spinlock_t *lock;
{ {
int *p = (int *) lock; int *p = (int *) lock;

View File

@ -20,8 +20,7 @@
#include "pthreadP.h" #include "pthreadP.h"
int int
pthread_spin_trylock (lock) pthread_spin_trylock (pthread_spinlock_t *lock)
pthread_spinlock_t *lock;
{ {
return __sync_val_compare_and_swap ((int *) lock, 0, 1) == 0 ? 0 : EBUSY; return __sync_val_compare_and_swap ((int *) lock, 0, 1) == 0 ? 0 : EBUSY;
} }

View File

@ -171,8 +171,7 @@ deval (long double x, const long double *p, int n)
long double long double
__ieee754_log2l (x) __ieee754_log2l (long double x)
long double x;
{ {
long double z; long double z;
long double y; long double y;

View File

@ -171,8 +171,7 @@ deval (long double x, const long double *p, int n)
long double long double
__ieee754_log2l (x) __ieee754_log2l (long double x)
long double x;
{ {
long double z; long double z;
long double y; long double y;

View File

@ -26,8 +26,7 @@
#if defined (__GNUC__) && defined (__mc68020__) #if defined (__GNUC__) && defined (__mc68020__)
int int
__ffs (x) __ffs (int x)
int x;
{ {
int cnt; int cnt;

View File

@ -28,8 +28,7 @@
#endif #endif
float_type float_type
FUNC (x) FUNC (float_type x)
float_type x;
{ {
return __m81_u(FUNC)(x); return __m81_u(FUNC)(x);
} }

View File

@ -28,9 +28,7 @@
#endif #endif
float_type float_type
FUNC (x, y) FUNC (float_type x, float_type y)
float_type x;
float_type y;
{ {
return __m81_u(FUNC)(x, y); return __m81_u(FUNC)(x, y);
} }

View File

@ -24,9 +24,7 @@
of time adjustment remaining to be done from the last `__adjtime' call. of time adjustment remaining to be done from the last `__adjtime' call.
This call is restricted to the super-user. */ This call is restricted to the super-user. */
int int
__adjtime (delta, olddelta) __adjtime (const struct timeval *delta, struct timeval *olddelta)
const struct timeval *delta;
struct timeval *olddelta;
{ {
error_t err; error_t err;
mach_port_t hostpriv; mach_port_t hostpriv;

View File

@ -24,9 +24,7 @@
putting it into *TV and *TZ. If TZ is NULL, *TZ is not filled. putting it into *TV and *TZ. If TZ is NULL, *TZ is not filled.
Returns 0 on success, -1 on errors. */ Returns 0 on success, -1 on errors. */
int int
__gettimeofday (tv, tz) __gettimeofday (struct timeval *tv, struct timezone *tz)
struct timeval *tv;
struct timezone *tz;
{ {
kern_return_t err; kern_return_t err;

View File

@ -46,8 +46,7 @@ _hurd_exit (int status)
} }
void void
_exit (status) _exit (int status)
int status;
{ {
_hurd_exit (W_EXITCODE (status, 0)); _hurd_exit (W_EXITCODE (status, 0));
} }

View File

@ -24,9 +24,7 @@
/* Test for access to FILE by our real user and group IDs. */ /* Test for access to FILE by our real user and group IDs. */
int int
__access (file, type) __access (const char *file, int type)
const char *file;
int type;
{ {
error_t err; error_t err;
file_t rcrdir, rcwdir, io; file_t rcrdir, rcwdir, io;

View File

@ -24,9 +24,7 @@
of time adjustment remaining to be done from the last `__adjtime' call. of time adjustment remaining to be done from the last `__adjtime' call.
This call is restricted to the super-user. */ This call is restricted to the super-user. */
int int
__adjtime (delta, olddelta) __adjtime (const struct timeval *delta, struct timeval *olddelta)
const struct timeval *delta;
struct timeval *olddelta;
{ {
error_t err; error_t err;
mach_port_t hostpriv; mach_port_t hostpriv;

View File

@ -22,8 +22,7 @@
/* Change the current directory to FILE_NAME. */ /* Change the current directory to FILE_NAME. */
int int
__chdir (file_name) __chdir (const char *file_name)
const char *file_name;
{ {
return _hurd_change_directory_port_from_name (&_hurd_ports[INIT_PORT_CWDIR], return _hurd_change_directory_port_from_name (&_hurd_ports[INIT_PORT_CWDIR],
file_name); file_name);

View File

@ -22,9 +22,7 @@
/* Change the protections of FILE to MODE. */ /* Change the protections of FILE to MODE. */
int int
__chmod (file, mode) __chmod (const char *file, mode_t mode)
const char *file;
mode_t mode;
{ {
error_t err; error_t err;
file_t port = __file_name_lookup (file, 0, 0); file_t port = __file_name_lookup (file, 0, 0);

View File

@ -22,10 +22,7 @@
/* Change the owner and group of FILE. */ /* Change the owner and group of FILE. */
int int
__chown (file, owner, group) __chown (const char *file, uid_t owner, gid_t group)
const char *file;
uid_t owner;
gid_t group;
{ {
error_t err; error_t err;
file_t port = __file_name_lookup (file, 0, 0); file_t port = __file_name_lookup (file, 0, 0);

View File

@ -22,8 +22,7 @@
/* Placeholder for key creation routine from Hurd cthreads library. */ /* Placeholder for key creation routine from Hurd cthreads library. */
int int
weak_function weak_function
cthread_keycreate (key) cthread_keycreate (cthread_key_t *key)
cthread_key_t *key;
{ {
__set_errno (ENOSYS); __set_errno (ENOSYS);
*key = -1; *key = -1;
@ -33,9 +32,7 @@ cthread_keycreate (key)
/* Placeholder for key retrieval routine from Hurd cthreads library. */ /* Placeholder for key retrieval routine from Hurd cthreads library. */
int int
weak_function weak_function
cthread_getspecific (key, pval) cthread_getspecific (cthread_key_t key, void **pval)
cthread_key_t key;
void **pval;
{ {
*pval = NULL; *pval = NULL;
__set_errno (ENOSYS); __set_errno (ENOSYS);
@ -45,9 +42,7 @@ cthread_getspecific (key, pval)
/* Placeholder for key setting routine from Hurd cthreads library. */ /* Placeholder for key setting routine from Hurd cthreads library. */
int int
weak_function weak_function
cthread_setspecific (key, val) cthread_setspecific (cthread_key_t key, void *val)
cthread_key_t key;
void *val;
{ {
__set_errno (ENOSYS); __set_errno (ENOSYS);
return -1; return -1;
@ -56,8 +51,7 @@ cthread_setspecific (key, val)
/* Call cthread_getspecific which gets a pointer to the return value instead /* Call cthread_getspecific which gets a pointer to the return value instead
of just returning it. */ of just returning it. */
void * void *
__libc_getspecific (key) __libc_getspecific (cthread_key_t key)
cthread_key_t key;
{ {
void *val; void *val;
cthread_getspecific (key, &val); cthread_getspecific (key, &val);

View File

@ -23,9 +23,7 @@
#include <hurd.h> #include <hurd.h>
int int
__euidaccess (file, type) __euidaccess (const char *file, int type)
const char *file;
int type;
{ {
error_t err; error_t err;
file_t port; file_t port;

View File

@ -25,11 +25,7 @@
#include <hurd/fd.h> #include <hurd/fd.h>
int int
faccessat (fd, file, type, flag) faccessat (int fd, const char *file, int type, int flag)
int fd;
const char *file;
int type;
int flag;
{ {
error_t err; error_t err;
file_t port; file_t port;

View File

@ -24,8 +24,7 @@
/* Change the current directory to FD. */ /* Change the current directory to FD. */
int int
__fchdir (fd) __fchdir (int fd)
int fd;
{ {
return _hurd_change_directory_port_from_fd (&_hurd_ports[INIT_PORT_CWDIR], return _hurd_change_directory_port_from_fd (&_hurd_ports[INIT_PORT_CWDIR],
fd); fd);

View File

@ -23,9 +23,7 @@
/* Change the permissions of the file referenced by FD to MODE. */ /* Change the permissions of the file referenced by FD to MODE. */
int int
__fchmod (fd, mode) __fchmod (int fd, mode_t mode)
int fd;
mode_t mode;
{ {
error_t err; error_t err;

View File

@ -25,11 +25,7 @@
#include <hurd/fd.h> #include <hurd/fd.h>
int int
fchmodat (fd, file, mode, flag) fchmodat (int fd, const char *file, mode_t mode, int flag)
int fd;
const char *file;
mode_t mode;
int flag;
{ {
error_t err; error_t err;
file_t port = __file_name_lookup_at (fd, flag, file, 0, 0); file_t port = __file_name_lookup_at (fd, flag, file, 0, 0);

View File

@ -23,10 +23,7 @@
/* Change the owner and group of the file referred to by FD. */ /* Change the owner and group of the file referred to by FD. */
int int
__fchown (fd, owner, group) __fchown (int fd, uid_t owner, gid_t group)
int fd;
uid_t owner;
gid_t group;
{ {
error_t err; error_t err;

View File

@ -26,12 +26,7 @@
/* Change the owner and group of FILE. */ /* Change the owner and group of FILE. */
int int
fchownat (fd, file, owner, group, flag) fchownat (int fd, const char *file, uid_t owner, gid_t group, int flag)
int fd;
const char *file;
uid_t owner;
gid_t group;
int flag;
{ {
error_t err; error_t err;
file_t port = __file_name_lookup_at (fd, flag, file, 0, 0); file_t port = __file_name_lookup_at (fd, flag, file, 0, 0);

View File

@ -23,9 +23,7 @@
/* Apply or remove an advisory lock, according to OPERATION, /* Apply or remove an advisory lock, according to OPERATION,
on the file FD refers to. */ on the file FD refers to. */
int int
__flock (fd, operation) __flock (int fd, int operation)
int fd;
int operation;
{ {
error_t err; error_t err;

View File

@ -22,8 +22,7 @@
/* Make all changes done to FD actually appear on disk. */ /* Make all changes done to FD actually appear on disk. */
int int
fsync (fd) fsync (int fd)
int fd;
{ {
error_t err = HURD_DPORT_USE (fd, __file_sync (port, 1, 0)); error_t err = HURD_DPORT_USE (fd, __file_sync (port, 1, 0));
if (err) if (err)

View File

@ -23,9 +23,7 @@
/* Truncate the file referenced by FD to LENGTH bytes. */ /* Truncate the file referenced by FD to LENGTH bytes. */
int int
__ftruncate (fd, length) __ftruncate (int fd, __off_t length)
int fd;
__off_t length;
{ {
error_t err; error_t err;
if (err = HURD_DPORT_USE (fd, __file_set_size (port, length))) if (err = HURD_DPORT_USE (fd, __file_set_size (port, length)))

View File

@ -22,9 +22,7 @@
#include <string.h> #include <string.h>
int int
__getgroups (n, gidset) __getgroups (int n, gid_t *gidset)
int n;
gid_t *gidset;
{ {
error_t err; error_t err;
int ngids; int ngids;

View File

@ -22,9 +22,7 @@
The result is null-terminated if LEN is large enough for the full The result is null-terminated if LEN is large enough for the full
name and the terminator. */ name and the terminator. */
int int
__gethostname (name, len) __gethostname (char *name, size_t len)
char *name;
size_t len;
{ {
/* The host name is just the contents of the file /etc/hostname. */ /* The host name is just the contents of the file /etc/hostname. */
ssize_t n = _hurd_get_host_config ("/etc/hostname", name, len); ssize_t n = _hurd_get_host_config ("/etc/hostname", name, len);

View File

@ -42,9 +42,7 @@ subtract_timeval (struct timeval *from, const struct timeval *subtract)
/* Set *VALUE to the current setting of timer WHICH. /* Set *VALUE to the current setting of timer WHICH.
Return 0 on success, -1 on errors. */ Return 0 on success, -1 on errors. */
int int
__getitimer (which, value) __getitimer (enum __itimer_which which, struct itimerval *value)
enum __itimer_which which;
struct itimerval *value;
{ {
struct itimerval val; struct itimerval val;
struct timeval elapsed; struct timeval elapsed;

View File

@ -25,9 +25,7 @@
If it cannot be determined or some other error occurred, return the error If it cannot be determined or some other error occurred, return the error
code. Otherwise return 0. */ code. Otherwise return 0. */
int int
__getlogin_r (name, name_len) __getlogin_r (char *name, size_t name_len)
char *name;
size_t name_len;
{ {
string_t login; string_t login;
error_t err; error_t err;

View File

@ -22,8 +22,7 @@
/* Get the process group ID of process PID. */ /* Get the process group ID of process PID. */
int int
__getpgid (pid) __getpgid (pid_t pid)
pid_t pid;
{ {
error_t err; error_t err;
pid_t pgrp; pid_t pgrp;

View File

@ -26,9 +26,7 @@
/* Return resource usage information on process indicated by WHO /* Return resource usage information on process indicated by WHO
and put it in *USAGE. Returns 0 for success, -1 for failure. */ and put it in *USAGE. Returns 0 for success, -1 for failure. */
int int
__getrusage (who, usage) __getrusage (enum __rusage_who who, struct rusage *usage)
enum __rusage_who who;
struct rusage *usage;
{ {
struct task_basic_info bi; struct task_basic_info bi;
struct task_events_info ei; struct task_events_info ei;

View File

@ -24,10 +24,7 @@
/* Put the local address of FD into *ADDR and its length in *LEN. */ /* Put the local address of FD into *ADDR and its length in *LEN. */
int int
__getsockname (fd, addrarg, len) __getsockname (int fd, __SOCKADDR_ARG addrarg, socklen_t *len)
int fd;
__SOCKADDR_ARG addrarg;
socklen_t *len;
{ {
error_t err; error_t err;
struct sockaddr *addr = addrarg.__sockaddr__; struct sockaddr *addr = addrarg.__sockaddr__;

View File

@ -22,8 +22,7 @@
#include <hurd/id.h> #include <hurd/id.h>
int int
__group_member (gid) __group_member (gid_t gid)
gid_t gid;
{ {
int member = 0; int member = 0;
error_t err; error_t err;

View File

@ -22,8 +22,7 @@
/* Return 1 if FD is a terminal, 0 if not. */ /* Return 1 if FD is a terminal, 0 if not. */
int int
__isatty (fd) __isatty (int fd)
int fd;
{ {
error_t err; error_t err;
mach_port_t id; mach_port_t id;

View File

@ -24,10 +24,7 @@
/* Change the owner and group of FILE; if it's a link, do the link and /* Change the owner and group of FILE; if it's a link, do the link and
not the target. */ not the target. */
int int
__lchown (file, owner, group) __lchown (const char *file, uid_t owner, gid_t group)
const char *file;
uid_t owner;
gid_t group;
{ {
error_t err; error_t err;
file_t port = __file_name_lookup (file, O_NOLINK, 0); file_t port = __file_name_lookup (file, O_NOLINK, 0);

View File

@ -22,9 +22,7 @@
/* Make a link to FROM called TO. */ /* Make a link to FROM called TO. */
int int
__link (from, to) __link (const char *from, const char *to)
const char *from;
const char *to;
{ {
error_t err; error_t err;
file_t oldfile, linknode, todir; file_t oldfile, linknode, todir;

View File

@ -26,12 +26,7 @@
/* Make a link to FROM relative to FROMFD called TO relative to TOFD. */ /* Make a link to FROM relative to FROMFD called TO relative to TOFD. */
int int
linkat (fromfd, from, tofd, to, flags) linkat (int fromfd, const char *from, int tofd, const char *to, int flags)
int fromfd;
const char *from;
int tofd;
const char *to;
int flags;
{ {
error_t err; error_t err;
file_t oldfile, linknode, todir; file_t oldfile, linknode, todir;

View File

@ -26,9 +26,7 @@
Returns 0 on success, -1 for errors. */ Returns 0 on success, -1 for errors. */
int int
__listen (fd, n) __listen (int fd, int n)
int fd;
int n;
{ {
error_t err = HURD_DPORT_USE (fd, __socket_listen (port, n)); error_t err = HURD_DPORT_USE (fd, __socket_listen (port, n));
if (err) if (err)

View File

@ -23,9 +23,7 @@
/* Create a directory named FILE_NAME with protections MODE. */ /* Create a directory named FILE_NAME with protections MODE. */
int int
__mkdir (file_name, mode) __mkdir (const char *file_name, mode_t mode)
const char *file_name;
mode_t mode;
{ {
error_t err; error_t err;
const char *name; const char *name;

View File

@ -24,10 +24,7 @@
#include <string.h> #include <string.h>
int int
mkdirat (fd, path, mode) mkdirat (int fd, const char *path, mode_t mode)
int fd;
const char *path;
mode_t mode;
{ {
error_t err; error_t err;
const char *name; const char *name;

View File

@ -29,10 +29,7 @@
the directory associated with FD. If O_CREAT or O_TMPFILE is in OFLAG, a the directory associated with FD. If O_CREAT or O_TMPFILE is in OFLAG, a
third argument is the file protection. */ third argument is the file protection. */
int int
__openat (fd, file, oflag) __openat (int fd, const char *file, int oflag)
int fd;
const char *file;
int oflag;
{ {
mode_t mode; mode_t mode;
io_t port; io_t port;

View File

@ -28,10 +28,7 @@
or -1 for errors. */ or -1 for errors. */
int int
__poll (fds, nfds, timeout) __poll (struct pollfd *fds, nfds_t nfds, int timeout)
struct pollfd *fds;
nfds_t nfds;
int timeout;
{ {
struct timespec ts, *to; struct timespec ts, *to;

View File

@ -25,10 +25,7 @@
LEN bytes of BUF. The contents are not null-terminated. LEN bytes of BUF. The contents are not null-terminated.
Returns the number of characters read, or -1 for errors. */ Returns the number of characters read, or -1 for errors. */
ssize_t ssize_t
__readlink (file_name, buf, len) __readlink (const char *file_name, char *buf, size_t len)
const char *file_name;
char *buf;
size_t len;
{ {
error_t err; error_t err;
file_t file; file_t file;

View File

@ -26,11 +26,7 @@
than LEN bytes of BUF. The contents are not null-terminated. than LEN bytes of BUF. The contents are not null-terminated.
Returns the number of characters read, or -1 for errors. */ Returns the number of characters read, or -1 for errors. */
ssize_t ssize_t
readlinkat (fd, file_name, buf, len) readlinkat (int fd, const char *file_name, char *buf, size_t len)
int fd;
const char *file_name;
char *buf;
size_t len;
{ {
error_t err; error_t err;
file_t file; file_t file;

View File

@ -26,11 +26,7 @@
Returns the number read or -1 for errors. */ Returns the number read or -1 for errors. */
ssize_t ssize_t
__recv (fd, buf, n, flags) __recv (int fd, void *buf, size_t n, int flags)
int fd;
void *buf;
size_t n;
int flags;
{ {
error_t err; error_t err;
mach_port_t addrport; mach_port_t addrport;

View File

@ -20,9 +20,7 @@
/* Rename the file OLD to NEW. */ /* Rename the file OLD to NEW. */
int int
rename (old, new) rename (const char *old, const char *new)
const char *old;
const char *new;
{ {
error_t err; error_t err;
file_t olddir, newdir; file_t olddir, newdir;

View File

@ -22,11 +22,7 @@
/* Rename the file OLD relative to OLDFD to NEW relative to NEWFD. */ /* Rename the file OLD relative to OLDFD to NEW relative to NEWFD. */
int int
renameat (oldfd, old, newfd, new) renameat (int oldfd, const char *old, int newfd, const char *new)
int oldfd;
const char *old;
int newfd;
const char *new;
{ {
error_t err; error_t err;
file_t olddir, newdir; file_t olddir, newdir;

View File

@ -21,8 +21,7 @@
#include <hurd.h> #include <hurd.h>
int int
revoke (file_name) revoke (const char *file_name)
const char *file_name;
{ {
error_t err; error_t err;
file_t file = __file_name_lookup (file_name, 0, 0); file_t file = __file_name_lookup (file_name, 0, 0);

View File

@ -22,8 +22,7 @@
/* Rewind DIRP to the beginning of the directory. */ /* Rewind DIRP to the beginning of the directory. */
void void
__rewinddir (dirp) __rewinddir (DIR *dirp)
DIR *dirp;
{ {
seekdir (dirp, (off_t) 0L); seekdir (dirp, (off_t) 0L);
} }

View File

@ -22,8 +22,7 @@
/* Remove the directory FILE_NAME. */ /* Remove the directory FILE_NAME. */
int int
__rmdir (file_name) __rmdir (const char *file_name)
const char *file_name;
{ {
error_t err; error_t err;
const char *name; const char *name;

View File

@ -24,9 +24,7 @@
/* Seek to position POS in DIRP. */ /* Seek to position POS in DIRP. */
/* XXX should be __seekdir ? */ /* XXX should be __seekdir ? */
void void
seekdir (dirp, pos) seekdir (DIR *dirp, long int pos)
DIR *dirp;
long int pos;
{ {
__libc_lock_lock (dirp->__lock); __libc_lock_lock (dirp->__lock);
/* Change our entry index pointer to POS and discard any data already /* Change our entry index pointer to POS and discard any data already

View File

@ -23,11 +23,7 @@
/* Send N bytes of BUF to socket FD. Returns the number sent or -1. */ /* Send N bytes of BUF to socket FD. Returns the number sent or -1. */
ssize_t ssize_t
__send (fd, buf, n, flags) __send (int fd, const void *buf, size_t n, int flags)
int fd;
const void *buf;
size_t n;
int flags;
{ {
error_t err; error_t err;
size_t wrote; size_t wrote;

View File

@ -21,9 +21,7 @@
/* Set the name of the current YP domain to NAME, which is LEN bytes long. /* Set the name of the current YP domain to NAME, which is LEN bytes long.
This call is restricted to the super-user. */ This call is restricted to the super-user. */
int int
setdomainname (name, len) setdomainname (const char *name, size_t len)
const char *name;
size_t len;
{ {
/* The NIS domain name is just the contents of the file /etc/nisdomain. */ /* The NIS domain name is just the contents of the file /etc/nisdomain. */
ssize_t n = _hurd_set_host_config ("/etc/nisdomain", name, len); ssize_t n = _hurd_set_host_config ("/etc/nisdomain", name, len);

View File

@ -24,8 +24,7 @@
/* Set the effective user ID of the calling process to GID. */ /* Set the effective user ID of the calling process to GID. */
int int
setegid (gid) setegid (gid_t gid)
gid_t gid;
{ {
auth_t newauth; auth_t newauth;
error_t err; error_t err;

View File

@ -24,8 +24,7 @@
/* Set the effective user ID of the calling process to UID. */ /* Set the effective user ID of the calling process to UID. */
int int
seteuid (uid) seteuid (uid_t uid)
uid_t uid;
{ {
auth_t newauth; auth_t newauth;
error_t err; error_t err;

View File

@ -27,8 +27,7 @@
and effective group IDs, and the saved set-group-ID to UID; and effective group IDs, and the saved set-group-ID to UID;
if not, the effective group ID is set to GID. */ if not, the effective group ID is set to GID. */
int int
__setgid (gid) __setgid (gid_t gid)
gid_t gid;
{ {
auth_t newauth; auth_t newauth;
error_t err; error_t err;

View File

@ -23,9 +23,7 @@
/* Set the group set for the current user to GROUPS (N of them). */ /* Set the group set for the current user to GROUPS (N of them). */
int int
setgroups (n, groups) setgroups (size_t n, const gid_t *groups)
size_t n;
const gid_t *groups;
{ {
error_t err; error_t err;
auth_t newauth; auth_t newauth;

View File

@ -25,8 +25,7 @@
/* XXX should be __sethostid? /* XXX should be __sethostid?
isn't hostid supposed to be hardwired and unchangeable? */ isn't hostid supposed to be hardwired and unchangeable? */
int int
sethostid (id) sethostid (long int id)
long int id;
{ {
char buf[8], *bp; char buf[8], *bp;
ssize_t n; ssize_t n;

View File

@ -22,9 +22,7 @@
This call is restricted to the super-user. */ This call is restricted to the super-user. */
/* XXX should be __sethostname ? */ /* XXX should be __sethostname ? */
int int
sethostname (name, len) sethostname (const char *name, size_t len)
const char *name;
size_t len;
{ {
/* The host name is just the contents of the file /etc/hostname. */ /* The host name is just the contents of the file /etc/hostname. */
ssize_t n = _hurd_set_host_config ("/etc/hostname", name, len); ssize_t n = _hurd_set_host_config ("/etc/hostname", name, len);

View File

@ -21,8 +21,7 @@
/* Set the login name returned by `getlogin'. */ /* Set the login name returned by `getlogin'. */
int int
setlogin (name) setlogin (const char *name)
const char *name;
{ {
error_t err; error_t err;
if (err = __USEPORT (PROC, __proc_setlogin (port, name))) if (err = __USEPORT (PROC, __proc_setlogin (port, name)))

View File

@ -24,9 +24,7 @@
If PID is zero, the current process's process group ID is set. 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. */ If PGID is zero, the process ID of the process is used. */
int int
__setpgid (pid, pgid) __setpgid (pid_t pid, pid_t pgid)
pid_t pid;
pid_t pgid;
{ {
error_t err; error_t err;
unsigned int stamp; unsigned int stamp;

View File

@ -23,9 +23,7 @@
#include <string.h> #include <string.h>
int int
__setregid (rgid, egid) __setregid (gid_t rgid, gid_t egid)
gid_t rgid;
gid_t egid;
{ {
auth_t newauth; auth_t newauth;
error_t err; error_t err;

View File

@ -23,9 +23,7 @@
#include <string.h> #include <string.h>
int int
__setreuid (ruid, euid) __setreuid (uid_t ruid, uid_t euid)
uid_t ruid;
uid_t euid;
{ {
auth_t newauth; auth_t newauth;
error_t err; error_t err;

View File

@ -23,9 +23,7 @@
/* Set the current time of day and timezone information. /* Set the current time of day and timezone information.
This call is restricted to the super-user. */ This call is restricted to the super-user. */
int int
__settimeofday (tv, tz) __settimeofday (const struct timeval *tv, const struct timezone *tz)
const struct timeval *tv;
const struct timezone *tz;
{ {
error_t err; error_t err;
mach_port_t hostpriv; mach_port_t hostpriv;

View File

@ -27,8 +27,7 @@
and effective user IDs, and the saved set-user-ID to UID; and effective user IDs, and the saved set-user-ID to UID;
if not, the effective user ID is set to UID. */ if not, the effective user ID is set to UID. */
int int
__setuid (uid) __setuid (uid_t uid)
uid_t uid;
{ {
auth_t newauth; auth_t newauth;
error_t err; error_t err;

View File

@ -29,9 +29,7 @@
Returns 0 on success, -1 for errors. */ Returns 0 on success, -1 for errors. */
/* XXX should be __shutdown ? */ /* XXX should be __shutdown ? */
int int
shutdown (fd, how) shutdown (int fd, int how)
int fd;
int how;
{ {
error_t err = HURD_DPORT_USE (fd, __socket_shutdown (port, how)); error_t err = HURD_DPORT_USE (fd, __socket_shutdown (port, how));
if (err) if (err)

View File

@ -24,10 +24,7 @@
/* If ACT is not NULL, change the action for SIG to *ACT. /* 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. */ If OACT is not NULL, put the old action for SIG in *OACT. */
int int
__sigaction (sig, act, oact) __sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
int sig;
const struct sigaction *act;
struct sigaction *oact;
{ {
struct hurd_sigstate *ss; struct hurd_sigstate *ss;
struct sigaction a, old; struct sigaction a, old;

View File

@ -22,9 +22,7 @@
/* Run signals handlers on the stack specified by SS (if not NULL). /* 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. */ If OSS is not NULL, it is filled in with the old signal stack status. */
int int
__sigaltstack (argss, oss) __sigaltstack (const struct sigaltstack *argss, struct sigaltstack *oss)
const struct sigaltstack *argss;
struct sigaltstack *oss;
{ {
struct hurd_sigstate *s; struct hurd_sigstate *s;
struct sigaltstack ss, old; struct sigaltstack ss, old;

View File

@ -24,8 +24,7 @@
/* Store in SET all signals that are blocked and pending. */ /* Store in SET all signals that are blocked and pending. */
/* XXX should be __sigpending ? */ /* XXX should be __sigpending ? */
int int
sigpending (set) sigpending (sigset_t *set)
sigset_t *set;
{ {
struct hurd_sigstate *ss; struct hurd_sigstate *ss;
sigset_t pending; sigset_t pending;

View File

@ -25,10 +25,7 @@
according to HOW, which may be SIG_BLOCK, SIG_UNBLOCK or SIG_SETMASK. 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. */ If OSET is not NULL, store the old set of blocked signals in *OSET. */
int int
__sigprocmask (how, set, oset) __sigprocmask (int how, const sigset_t *set, sigset_t *oset)
int how;
const sigset_t *set;
sigset_t *oset;
{ {
struct hurd_sigstate *ss; struct hurd_sigstate *ss;
sigset_t old, new; sigset_t old, new;

View File

@ -24,8 +24,7 @@
/* Change the set of blocked signals to SET, /* Change the set of blocked signals to SET,
wait until a signal arrives, and restore the set of blocked signals. */ wait until a signal arrives, and restore the set of blocked signals. */
int int
__sigsuspend (set) __sigsuspend (const sigset_t *set)
const sigset_t *set;
{ {
struct hurd_sigstate *ss; struct hurd_sigstate *ss;
sigset_t newmask, oldmask, pending; sigset_t newmask, oldmask, pending;

View File

@ -26,10 +26,7 @@
protocol PROTOCOL. If PROTOCOL is zero, one is chosen automatically. protocol PROTOCOL. If PROTOCOL is zero, one is chosen automatically.
Returns a file descriptor for the new socket, or -1 for errors. */ Returns a file descriptor for the new socket, or -1 for errors. */
int int
__socket (domain, type, protocol) __socket (int domain, int type, int protocol)
int domain;
int type;
int protocol;
{ {
error_t err; error_t err;
socket_t sock, server; socket_t sock, server;

View File

@ -23,9 +23,7 @@
/* Make a link to FROM called TO. */ /* Make a link to FROM called TO. */
int int
__symlink (from, to) __symlink (const char *from, const char *to)
const char *from;
const char *to;
{ {
error_t err; error_t err;
file_t dir, node; file_t dir, node;

View File

@ -28,10 +28,7 @@
/* Make a link to FROM called TO relative to FD. */ /* Make a link to FROM called TO relative to FD. */
int int
symlinkat (from, fd, to) symlinkat (const char *from, int fd, const char *to)
const char *from;
int fd;
const char *to;
{ {
error_t err; error_t err;
file_t dir, node; file_t dir, node;

View File

@ -25,8 +25,7 @@
/* Return the current position of DIRP. */ /* Return the current position of DIRP. */
/* XXX should be __telldir ? */ /* XXX should be __telldir ? */
long int long int
telldir (dirp) telldir (DIR *dirp)
DIR *dirp;
{ {
return dirp->__entry_ptr; return dirp->__entry_ptr;
} }

View File

@ -23,9 +23,7 @@
/* Truncate FILE_NAME to LENGTH bytes. */ /* Truncate FILE_NAME to LENGTH bytes. */
int int
__truncate (file_name, length) __truncate (const char *file_name, off_t length)
const char *file_name;
off_t length;
{ {
error_t err; error_t err;
file_t file = __file_name_lookup (file_name, O_WRITE, 0); file_t file = __file_name_lookup (file_name, O_WRITE, 0);

View File

@ -20,8 +20,7 @@
/* Set the file creation mask to MASK, returning the old mask. */ /* Set the file creation mask to MASK, returning the old mask. */
mode_t mode_t
__umask (mask) __umask (mode_t mask)
mode_t mask;
{ {
mode_t omask; mode_t omask;
mask &= 0777; mask &= 0777;

View File

@ -23,8 +23,7 @@
/* Remove the link named NAME. */ /* Remove the link named NAME. */
int int
__unlink (name) __unlink (const char *name)
const char *name;
{ {
error_t err; error_t err;
file_t dir; file_t dir;

View File

@ -26,10 +26,7 @@
/* Remove the link named NAME. */ /* Remove the link named NAME. */
int int
unlinkat (fd, name, flag) unlinkat (int fd, const char *name, int flag)
int fd;
const char *name;
int flag;
{ {
error_t err; error_t err;
file_t dir; file_t dir;

View File

@ -25,9 +25,7 @@
#endif #endif
void void
__longjmp (env_arg, val_arg) __longjmp (__jmp_buf env_arg, int val_arg)
__jmp_buf env_arg;
int val_arg;
{ {
/* gcc 1.39.19 miscompiled the longjmp routine (as it did setjmp before /* 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. the hack around it); force it to use $a1 for the longjmp value.

View File

@ -26,8 +26,7 @@
to 0 and check its value after calling `alarm', and this might tell you. to 0 and check its value after calling `alarm', and this might tell you.
The signal may come late due to processor scheduling. */ The signal may come late due to processor scheduling. */
unsigned int unsigned int
alarm (seconds) alarm (unsigned int seconds)
unsigned int seconds;
{ {
struct itimerval old, new; struct itimerval old, new;
unsigned int retval; unsigned int retval;

View File

@ -25,8 +25,7 @@
If S is not NULL, it points to a buffer of at least L_cuserid bytes 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. */ into which the name is copied; otherwise, a static buffer is used. */
char * char *
cuserid (s) cuserid (char *s)
char *s;
{ {
static char name[L_cuserid]; static char name[L_cuserid];
char buf[NSS_BUFLEN_PASSWD]; char buf[NSS_BUFLEN_PASSWD];

View File

@ -22,8 +22,7 @@
#undef dirfd #undef dirfd
int int
dirfd (dirp) dirfd (DIR *dirp)
DIR *dirp;
{ {
return dirp->fd; return dirp->fd;
} }

View File

@ -22,8 +22,7 @@
/* Duplicate FD, returning a new file descriptor open on the same file. */ /* Duplicate FD, returning a new file descriptor open on the same file. */
int int
__dup (fd) __dup (int fd)
int fd;
{ {
return fcntl (fd, F_DUPFD, 0); return fcntl (fd, F_DUPFD, 0);
} }

View File

@ -23,9 +23,7 @@
/* Duplicate FD to FD2, closing the old FD2 and making FD2 be /* Duplicate FD to FD2, closing the old FD2 and making FD2 be
open the same file as FD is. Return FD2 or -1. */ open the same file as FD is. Return FD2 or -1. */
int int
__dup2 (fd, fd2) __dup2 (int fd, int fd2)
int fd;
int fd2;
{ {
int save; int save;

View File

@ -117,9 +117,7 @@ int group_member ();
filesystem, text busy, etc. */ filesystem, text busy, etc. */
int int
euidaccess (path, mode) euidaccess (const char *path, int mode)
const char *path;
int mode;
{ {
struct stat64 stats; struct stat64 stats;
int granted; int granted;
@ -196,9 +194,7 @@ weak_alias (__euidaccess, eaccess)
char *program_name; char *program_name;
int int
main (argc, argv) main (int argc, char **argv)
int argc;
char **argv;
{ {
char *file; char *file;
int mode; int mode;

View File

@ -27,9 +27,7 @@
/* Apply or remove an advisory lock, according to OPERATION, /* Apply or remove an advisory lock, according to OPERATION,
on the file FD refers to. */ on the file FD refers to. */
int int
__flock (fd, operation) __flock (int fd, int operation)
int fd;
int operation;
{ {
struct flock lbuf; struct flock lbuf;

View File

@ -26,9 +26,7 @@
/* Get file-specific information about descriptor FD. */ /* Get file-specific information about descriptor FD. */
long int long int
__fpathconf (fd, name) __fpathconf (int fd, int name)
int fd;
int name;
{ {
if (fd < 0) if (fd < 0)
{ {

View File

@ -222,9 +222,7 @@ static int __rtld_have_atfcts;
unless SIZE == 0, in which case it is as big as necessary. */ unless SIZE == 0, in which case it is as big as necessary. */
GETCWD_RETURN_TYPE GETCWD_RETURN_TYPE
__getcwd (buf, size) __getcwd (char *buf, size_t size)
char *buf;
size_t size;
{ {
#ifndef __ASSUME_ATFCTS #ifndef __ASSUME_ATFCTS
static const char dots[] static const char dots[]

View File

@ -24,9 +24,7 @@
The result is null-terminated if LEN is large enough for the full The result is null-terminated if LEN is large enough for the full
name and the terminator. */ name and the terminator. */
int int
__gethostname (name, len) __gethostname (char *name, size_t len)
char *name;
size_t len;
{ {
struct utsname buf; struct utsname buf;
size_t node_len; size_t node_len;

View File

@ -23,9 +23,7 @@
putting it into *TV and *TZ. If TZ is NULL, *TZ is not filled. putting it into *TV and *TZ. If TZ is NULL, *TZ is not filled.
Returns 0 on success, -1 on errors. */ Returns 0 on success, -1 on errors. */
int int
__gettimeofday (tv, tz) __gettimeofday (struct timeval *tv, struct timezone *tz)
struct timeval *tv;
struct timezone *tz;
{ {
if (tv == NULL) if (tv == NULL)
{ {

View File

@ -20,8 +20,7 @@
/* Return 1 if FD is a terminal, 0 if not. */ /* Return 1 if FD is a terminal, 0 if not. */
int int
__isatty (fd) __isatty (int fd)
int fd;
{ {
struct termios term; struct termios term;

View File

@ -23,9 +23,7 @@
If PGRP is zero, send SIG to all processes in If PGRP is zero, send SIG to all processes in
the current process's process group. */ the current process's process group. */
int int
killpg (pgrp, sig) killpg (__pid_t pgrp, int sig)
__pid_t pgrp;
int sig;
{ {
if (pgrp < 0) if (pgrp < 0)
{ {

View File

@ -178,8 +178,7 @@ __libc_message (int do_abort, const char *fmt, ...)
void void
__libc_fatal (message) __libc_fatal (const char *message)
const char *message;
{ {
/* The loop is added only to keep gcc happy. */ /* The loop is added only to keep gcc happy. */
while (1) while (1)

Some files were not shown because too many files have changed in this diff Show More