|
|
c6d234 |
commit bd2260a2069993cdb14cffcbb2b0dc04b9888aee
|
|
|
c6d234 |
Author: Joseph Myers <joseph@codesourcery.com>
|
|
|
c6d234 |
Date: Mon Oct 19 12:04:33 2015 +0000
|
|
|
c6d234 |
|
|
|
c6d234 |
Convert 231 sysdeps function definitions to prototype style.
|
|
|
c6d234 |
|
|
|
c6d234 |
This mostly automatically-generated patch converts 231 sysdeps
|
|
|
c6d234 |
function definitions in glibc from old-style K&R to prototype-style.
|
|
|
c6d234 |
|
|
|
c6d234 |
For __aio_sigqueue and __gai_sigqueue I had to add internal_function
|
|
|
c6d234 |
to the definitions as noted by Florian in
|
|
|
c6d234 |
<https://sourceware.org/ml/libc-alpha/2015-10/msg00595.html> to keep
|
|
|
c6d234 |
the functions compiling on x86 after conversion to prototype
|
|
|
c6d234 |
definitions. Otherwise, the patch is automatically generated with all
|
|
|
c6d234 |
the same exclusions and caveats as in
|
|
|
c6d234 |
<https://sourceware.org/ml/libc-alpha/2015-10/msg00594.html> except
|
|
|
c6d234 |
that it's a patch for sysdeps files.
|
|
|
c6d234 |
|
|
|
c6d234 |
Tested for x86_64 and x86 (testsuite, and that installed stripped
|
|
|
c6d234 |
shared libraries are unchanged by the patch). Also tested for arm,
|
|
|
c6d234 |
mips64 and powerpc32 that installed stripped shared libraries are
|
|
|
c6d234 |
unchanged by the patch.
|
|
|
c6d234 |
|
|
|
c6d234 |
* sysdeps/arm/backtrace.c (__backtrace): Convert to
|
|
|
c6d234 |
prototype-style function definition.
|
|
|
c6d234 |
* sysdeps/i386/backtrace.c (__backtrace): Likewise.
|
|
|
c6d234 |
* sysdeps/i386/ffs.c (__ffs): Likewise.
|
|
|
c6d234 |
* sysdeps/i386/i686/ffs.c (__ffs): Likewise.
|
|
|
c6d234 |
* sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
|
|
|
c6d234 |
Likewise.
|
|
|
c6d234 |
* sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
|
|
|
c6d234 |
Likewise.
|
|
|
c6d234 |
* sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
|
|
|
c6d234 |
* sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
|
|
|
c6d234 |
Likewise.
|
|
|
c6d234 |
* sysdeps/m68k/ffs.c (__ffs): Likewise.
|
|
|
c6d234 |
* sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
|
|
|
c6d234 |
* sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/adjtime.c (__adjtime): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/_exit.c (_exit): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/access.c (__access): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/chown.c (__chown): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
|
|
|
c6d234 |
(cthread_getspecific): Likewise.
|
|
|
c6d234 |
(cthread_setspecific): Likewise.
|
|
|
c6d234 |
(__libc_getspecific): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/flock.c (__flock): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/fsync.c (fsync): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/link.c (__link): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/linkat.c (linkat): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/listen.c (__listen): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/openat.c (__openat): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/poll.c (__poll): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/recv.c (__recv): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/rename.c (rename): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/renameat.c (renameat): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/revoke.c (revoke): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/send.c (__send): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/setegid.c (setegid): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/socket.c (__socket): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/telldir.c (telldir): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/umask.c (__umask): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
|
|
|
c6d234 |
* sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
|
|
|
c6d234 |
* sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/alarm.c (alarm): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/cuserid.c (cuserid): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/dirfd.c (dirfd): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/dup.c (__dup): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/dup2.c (__dup2): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/euidaccess.c (euidaccess): Likewise.
|
|
|
c6d234 |
(main): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/flock.c (__flock): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/getcwd.c (__getcwd): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/gethostname.c (__gethostname): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/isatty.c (__isatty): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/killpg.c (killpg): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/raise.c (raise): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/remove.c (remove): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/rename.c (rename): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/seekdir.c (seekdir): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/sigblock.c (__sigblock): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/sigignore.c (sigignore): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/sigintr.c (siginterrupt): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/signal.c (__bsd_signal): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/sigset.c (sigset): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/sysconf.c (__sysconf): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/time.c (time): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/ttyname.c (getttyname): Likewise.
|
|
|
c6d234 |
(ttyname): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
|
|
|
c6d234 |
* sysdeps/posix/utime.c (utime): Likewise.
|
|
|
c6d234 |
* sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
|
|
|
c6d234 |
* sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
|
|
|
c6d234 |
Likewise.
|
|
|
c6d234 |
* sysdeps/powerpc/nptl/pthread_spin_trylock.c
|
|
|
c6d234 |
(pthread_spin_trylock): Likewise.
|
|
|
c6d234 |
* sysdeps/pthread/aio_error.c (aio_error): Likewise.
|
|
|
c6d234 |
* sysdeps/pthread/aio_read.c (aio_read): Likewise.
|
|
|
c6d234 |
* sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
|
|
|
c6d234 |
* sysdeps/pthread/aio_write.c (aio_write): Likewise.
|
|
|
c6d234 |
* sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
|
|
|
c6d234 |
* sysdeps/pthread/flockfile.c (__flockfile): Likewise.
|
|
|
c6d234 |
* sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
|
|
|
c6d234 |
* sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
|
|
|
c6d234 |
* sysdeps/pthread/timer_create.c (timer_create): Likewise.
|
|
|
c6d234 |
* sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
|
|
|
c6d234 |
* sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
|
|
|
c6d234 |
* sysdeps/s390/ffs.c (__ffs): Likewise.
|
|
|
c6d234 |
* sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
|
|
|
c6d234 |
Likewise.
|
|
|
c6d234 |
* sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
|
|
|
c6d234 |
Likewise.
|
|
|
c6d234 |
* sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
|
|
|
c6d234 |
Likewise.
|
|
|
c6d234 |
* sysdeps/sparc/nptl/pthread_barrier_destroy.c
|
|
|
c6d234 |
(pthread_barrier_destroy): Likewise.
|
|
|
c6d234 |
* sysdeps/sparc/nptl/pthread_barrier_wait.c
|
|
|
c6d234 |
(__pthread_barrier_wait): Likewise.
|
|
|
c6d234 |
* sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
|
|
|
c6d234 |
* sysdeps/sparc/sparc32/pthread_barrier_wait.c
|
|
|
c6d234 |
(__pthread_barrier_wait): Likewise.
|
|
|
c6d234 |
* sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
|
|
|
c6d234 |
* sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
|
|
|
c6d234 |
(memcmp_not_common_alignment): Likewise.
|
|
|
c6d234 |
(MEMCMP): Likewise.
|
|
|
c6d234 |
* sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
|
|
|
c6d234 |
(_wordcopy_fwd_dest_aligned): Likewise.
|
|
|
c6d234 |
(_wordcopy_bwd_aligned): Likewise.
|
|
|
c6d234 |
(_wordcopy_bwd_dest_aligned): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/bsd/ftime.c (ftime): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/bsd/gtty.c (gtty): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/bsd/stty.c (stty): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sockatmark.c (sockatmark): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/stime.c (stime): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
|
|
|
c6d234 |
Likewise. Use internal_function.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
|
|
|
c6d234 |
Convert to prototype-style function definition.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
|
|
|
c6d234 |
Likewise. Use internal_function.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
|
|
|
c6d234 |
prototype-style function definition
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
|
|
|
c6d234 |
Likewise.
|
|
|
c6d234 |
(__getlogin_r): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
|
|
|
c6d234 |
(__pthread_cond_broadcast): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
|
|
|
c6d234 |
(__pthread_cond_destroy): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
|
|
|
c6d234 |
(__pthread_cond_init): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
|
|
|
c6d234 |
(__pthread_cond_signal): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
|
|
|
c6d234 |
(__pthread_cond_wait): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
|
|
|
c6d234 |
Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
|
|
|
c6d234 |
Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
|
|
|
c6d234 |
Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
|
|
|
c6d234 |
Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
|
|
|
c6d234 |
(__ftruncate64): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
|
|
|
c6d234 |
(truncate64): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
|
|
|
c6d234 |
(pthread_getcpuclockid): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
|
|
|
c6d234 |
Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
|
|
|
c6d234 |
Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
|
|
|
c6d234 |
Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
|
|
|
c6d234 |
Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
|
|
|
c6d234 |
(__libc_sigaction): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
|
|
|
c6d234 |
Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
|
|
|
c6d234 |
(__sigprocmask): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
|
|
|
c6d234 |
Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
|
|
|
c6d234 |
Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
|
|
|
c6d234 |
(__sigprocmask): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
|
|
|
c6d234 |
(cfgetispeed): Likewise.
|
|
|
c6d234 |
(cfsetospeed): Likewise.
|
|
|
c6d234 |
(cfsetispeed): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/time.c (time): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
|
|
|
c6d234 |
Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
|
|
|
c6d234 |
Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
|
|
|
c6d234 |
Likewise.
|
|
|
c6d234 |
* sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
|
|
|
c6d234 |
Likewise.
|
|
|
c6d234 |
* sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
|
|
|
c6d234 |
|
|
|
c6d234 |
Conflicts:
|
|
|
c6d234 |
sysdeps/mach/hurd/getlogin_r.c
|
|
|
c6d234 |
(Missing backport of fix for swbz#18527.)
|
|
|
c6d234 |
sysdeps/mach/hurd/rewinddir.c
|
|
|
c6d234 |
sysdeps/posix/rewinddir.c
|
|
|
c6d234 |
(Missing backport of fix for swbz#17584.)
|
|
|
c6d234 |
sysdeps/powerpc/nptl/pthread_spin_lock.c
|
|
|
c6d234 |
(Applied to nptl/sysdeps/powerpc/pthread_spin_lock.c.)
|
|
|
c6d234 |
sysdeps/powerpc/nptl/pthread_spin_trylock.c
|
|
|
c6d234 |
(Applied to nptl/sysdeps/powerpc/pthread_spin_trylock.c.)
|
|
|
c6d234 |
sysdeps/pthread/aio_error.c
|
|
|
c6d234 |
(Missing backport of 1cdf2ea1fa44bae7d400b602399e30d490173bf3,
|
|
|
c6d234 |
Fix aio_error thread-safety.)
|
|
|
c6d234 |
sysdeps/pthread/flockfile.c
|
|
|
c6d234 |
(Applied to nptl/sysdeps/pthread/flockfile.c.)
|
|
|
c6d234 |
sysdeps/pthread/ftrylockfile.c
|
|
|
c6d234 |
(Applied to nptl/sysdeps/pthread/ftrylockfile.c.)
|
|
|
c6d234 |
sysdeps/pthread/funlockfile.c
|
|
|
c6d234 |
(Applied to nptl/sysdeps/pthread/funlockfile.c.)
|
|
|
c6d234 |
sysdeps/pthread/timer_create.c
|
|
|
c6d234 |
(Applied to nptl/sysdeps/pthread/timer_create.c.)
|
|
|
c6d234 |
sysdeps/pthread/timer_getoverr.c
|
|
|
c6d234 |
(Applied to nptl/sysdeps/pthread/timer_getoverr.c.)
|
|
|
c6d234 |
sysdeps/pthread/timer_gettime.c
|
|
|
c6d234 |
(Applied to nptl/sysdeps/pthread/timer_gettime.c.)
|
|
|
c6d234 |
sysdeps/s390/nptl/pthread_spin_lock.c
|
|
|
c6d234 |
(Applied to nptl/sysdeps/s390/pthread_spin_lock.c.)
|
|
|
c6d234 |
sysdeps/s390/nptl/pthread_spin_trylock.c
|
|
|
c6d234 |
(Applied to nptl/sysdeps/s390/pthread_spin_trylock.c.)
|
|
|
c6d234 |
sysdeps/sh/nptl/pthread_spin_lock.c
|
|
|
c6d234 |
(Applied to nptl/sysdeps/sh/pthread_spin_lock.c.)
|
|
|
c6d234 |
sysdeps/sparc/nptl/pthread_barrier_destroy.c
|
|
|
c6d234 |
(Applied to
|
|
|
c6d234 |
nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c.)
|
|
|
c6d234 |
sysdeps/sparc/nptl/pthread_barrier_wait.c
|
|
|
c6d234 |
(Applied to
|
|
|
c6d234 |
nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c.)
|
|
|
c6d234 |
sysdeps/sparc/sparc32/pthread_barrier_wait.c
|
|
|
c6d234 |
(Applied to
|
|
|
c6d234 |
nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c.)
|
|
|
c6d234 |
sysdeps/sparc/sparc32/sem_init.c
|
|
|
c6d234 |
(Applied to nptl/sysdeps/unix/sysv/linux/sparc/sem_init.)
|
|
|
c6d234 |
sysdeps/tile/memcmp.c
|
|
|
c6d234 |
(Missing backport of d9cd52e64d7b6b0fd56566de87c826cb6fe3677d,
|
|
|
c6d234 |
tile: optimize memcmp; file removed manually.)
|
|
|
c6d234 |
sysdeps/unix/getlogin_r.c
|
|
|
c6d234 |
sysdeps/unix/sysv/linux/getlogin_r.c
|
|
|
c6d234 |
(Missing backport of fix for swbz#18527.)
|
|
|
c6d234 |
sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
|
|
|
c6d234 |
sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
|
|
|
c6d234 |
sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
|
|
|
c6d234 |
sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
|
|
|
c6d234 |
sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
|
|
|
c6d234 |
(Missing backport of d83f0734e1522a5e5ea2494565f4dcd25a86d6a0,
|
|
|
c6d234 |
HPPA: Transition to new non-addon NPTL; files removed manually.)
|
|
|
c6d234 |
sysdeps/unix/sysv/linux/pt-raise.c
|
|
|
c6d234 |
(Applied to nptl/sysdeps/unix/sysv/linux/pt-raise.c.)
|
|
|
c6d234 |
sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
|
|
|
c6d234 |
(Applied to nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c.)
|
|
|
c6d234 |
sysdeps/unix/sysv/linux/pthread_getname.c
|
|
|
c6d234 |
(Applied to nptl/sysdeps/unix/sysv/linux/pthread_getname.c.)
|
|
|
c6d234 |
sysdeps/unix/sysv/linux/pthread_setname.c
|
|
|
c6d234 |
(Applied to nptl/sysdeps/unix/sysv/linux/pthread_setname.c.)
|
|
|
c6d234 |
sysdeps/unix/sysv/linux/pthread_sigmask.c
|
|
|
c6d234 |
(Applied to nptl/sysdeps/pthread/pthread_sigmask.c.)
|
|
|
c6d234 |
sysdeps/unix/sysv/linux/pthread_sigqueue.c
|
|
|
c6d234 |
(Applied to nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c.)
|
|
|
c6d234 |
sysdeps/unix/sysv/linux/raise.c
|
|
|
c6d234 |
(Applied to nptl/sysdeps/unix/sysv/linux/raise.c.)
|
|
|
c6d234 |
sysdeps/unix/sysv/linux/timer_create.c
|
|
|
c6d234 |
(Applied to nptl/sysdeps/unix/sysv/linux/timer_create.c.)
|
|
|
c6d234 |
sysdeps/unix/sysv/linux/timer_delete.c
|
|
|
c6d234 |
(Applied to nptl/sysdeps/unix/sysv/linux/timer_delete.c.)
|
|
|
c6d234 |
sysdeps/unix/sysv/linux/timer_getoverr.c
|
|
|
c6d234 |
(Applied to nptl/sysdeps/unix/sysv/linux/timer_getoverr.c.)
|
|
|
c6d234 |
sysdeps/unix/sysv/linux/timer_gettime.c
|
|
|
c6d234 |
(Applied to nptl/sysdeps/unix/sysv/linux/timer_gettime.c.)
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/powerpc/pthread_spin_lock.c b/nptl/sysdeps/powerpc/pthread_spin_lock.c
|
|
|
c6d234 |
index 629dad50cdb753a1..f684325c8e09e06e 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/powerpc/pthread_spin_lock.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/powerpc/pthread_spin_lock.c
|
|
|
c6d234 |
@@ -19,8 +19,7 @@
|
|
|
c6d234 |
#include "pthreadP.h"
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-pthread_spin_lock (lock)
|
|
|
c6d234 |
- pthread_spinlock_t *lock;
|
|
|
c6d234 |
+pthread_spin_lock (pthread_spinlock_t *lock)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
unsigned int __tmp;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/powerpc/pthread_spin_trylock.c b/nptl/sysdeps/powerpc/pthread_spin_trylock.c
|
|
|
c6d234 |
index a7956f8fce4109aa..aeb13416db48440e 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/powerpc/pthread_spin_trylock.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/powerpc/pthread_spin_trylock.c
|
|
|
c6d234 |
@@ -20,8 +20,7 @@
|
|
|
c6d234 |
#include "pthreadP.h"
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-pthread_spin_trylock (lock)
|
|
|
c6d234 |
- pthread_spinlock_t *lock;
|
|
|
c6d234 |
+pthread_spin_trylock (pthread_spinlock_t *lock)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
unsigned int old;
|
|
|
c6d234 |
int err = EBUSY;
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/pthread/flockfile.c b/nptl/sysdeps/pthread/flockfile.c
|
|
|
c6d234 |
index 538e368a082dcec5..1e7d1f0133ed4f40 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/pthread/flockfile.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/pthread/flockfile.c
|
|
|
c6d234 |
@@ -23,8 +23,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
void
|
|
|
c6d234 |
-__flockfile (stream)
|
|
|
c6d234 |
- FILE *stream;
|
|
|
c6d234 |
+__flockfile (FILE *stream)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
_IO_lock_lock (*stream->_lock);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/pthread/ftrylockfile.c b/nptl/sysdeps/pthread/ftrylockfile.c
|
|
|
c6d234 |
index d814258d893afd85..cd78c2812800b223 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/pthread/ftrylockfile.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/pthread/ftrylockfile.c
|
|
|
c6d234 |
@@ -23,8 +23,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__ftrylockfile (stream)
|
|
|
c6d234 |
- FILE *stream;
|
|
|
c6d234 |
+__ftrylockfile (FILE *stream)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return _IO_lock_trylock (*stream->_lock);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/pthread/funlockfile.c b/nptl/sysdeps/pthread/funlockfile.c
|
|
|
c6d234 |
index f45479936741a3ea..51530863671da481 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/pthread/funlockfile.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/pthread/funlockfile.c
|
|
|
c6d234 |
@@ -23,8 +23,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
void
|
|
|
c6d234 |
-__funlockfile (stream)
|
|
|
c6d234 |
- FILE *stream;
|
|
|
c6d234 |
+__funlockfile (FILE *stream)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
_IO_lock_unlock (*stream->_lock);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/pthread/pthread_sigmask.c b/nptl/sysdeps/pthread/pthread_sigmask.c
|
|
|
c6d234 |
index 8db7d18f4d9c2f3f..83d7d881e98d6af3 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/pthread/pthread_sigmask.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/pthread/pthread_sigmask.c
|
|
|
c6d234 |
@@ -23,10 +23,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-pthread_sigmask (how, newmask, oldmask)
|
|
|
c6d234 |
- int how;
|
|
|
c6d234 |
- const sigset_t *newmask;
|
|
|
c6d234 |
- sigset_t *oldmask;
|
|
|
c6d234 |
+pthread_sigmask (int how, const sigset_t *newmask, sigset_t *oldmask)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
sigset_t local_newmask;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/pthread/timer_create.c b/nptl/sysdeps/pthread/timer_create.c
|
|
|
c6d234 |
index f61c5a3eb6d391b7..90770f121fc2c0fc 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/pthread/timer_create.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/pthread/timer_create.c
|
|
|
c6d234 |
@@ -27,10 +27,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Create new per-process timer using CLOCK. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-timer_create (clock_id, evp, timerid)
|
|
|
c6d234 |
- clockid_t clock_id;
|
|
|
c6d234 |
- struct sigevent *evp;
|
|
|
c6d234 |
- timer_t *timerid;
|
|
|
c6d234 |
+timer_create (clockid_t clock_id, struct sigevent *evp, timer_t *timerid)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int retval = -1;
|
|
|
c6d234 |
struct timer_node *newtimer = NULL;
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/pthread/timer_getoverr.c b/nptl/sysdeps/pthread/timer_getoverr.c
|
|
|
c6d234 |
index 6d753e30d6839165..010fa73539bae653 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/pthread/timer_getoverr.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/pthread/timer_getoverr.c
|
|
|
c6d234 |
@@ -25,8 +25,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Get expiration overrun for timer TIMERID. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-timer_getoverrun (timerid)
|
|
|
c6d234 |
- timer_t timerid;
|
|
|
c6d234 |
+timer_getoverrun (timer_t timerid)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct timer_node *timer;
|
|
|
c6d234 |
int retval = -1;
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/pthread/timer_gettime.c b/nptl/sysdeps/pthread/timer_gettime.c
|
|
|
c6d234 |
index 6bd2b84e2d89f069..b48cc8ebf615bf8c 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/pthread/timer_gettime.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/pthread/timer_gettime.c
|
|
|
c6d234 |
@@ -25,9 +25,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Get current value of timer TIMERID and store it in VLAUE. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-timer_gettime (timerid, value)
|
|
|
c6d234 |
- timer_t timerid;
|
|
|
c6d234 |
- struct itimerspec *value;
|
|
|
c6d234 |
+timer_gettime (timer_t timerid, struct itimerspec *value)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct timer_node *timer;
|
|
|
c6d234 |
struct timespec now, expiry;
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/s390/pthread_spin_lock.c b/nptl/sysdeps/s390/pthread_spin_lock.c
|
|
|
c6d234 |
index 17c405a4cce18651..e3d5c1153f387475 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/s390/pthread_spin_lock.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/s390/pthread_spin_lock.c
|
|
|
c6d234 |
@@ -19,8 +19,7 @@
|
|
|
c6d234 |
#include "pthreadP.h"
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-pthread_spin_lock (lock)
|
|
|
c6d234 |
- pthread_spinlock_t *lock;
|
|
|
c6d234 |
+pthread_spin_lock (pthread_spinlock_t *lock)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int oldval;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/s390/pthread_spin_trylock.c b/nptl/sysdeps/s390/pthread_spin_trylock.c
|
|
|
c6d234 |
index 4a4e2cb1e7b73f65..f9e307882ab75651 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/s390/pthread_spin_trylock.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/s390/pthread_spin_trylock.c
|
|
|
c6d234 |
@@ -20,8 +20,7 @@
|
|
|
c6d234 |
#include "pthreadP.h"
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-pthread_spin_trylock (lock)
|
|
|
c6d234 |
- pthread_spinlock_t *lock;
|
|
|
c6d234 |
+pthread_spin_trylock (pthread_spinlock_t *lock)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int old;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/sh/pthread_spin_lock.c b/nptl/sysdeps/sh/pthread_spin_lock.c
|
|
|
c6d234 |
index 798c124ebbee8a98..48d3fc7eb495ea98 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/sh/pthread_spin_lock.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/sh/pthread_spin_lock.c
|
|
|
c6d234 |
@@ -18,8 +18,7 @@
|
|
|
c6d234 |
#include "pthreadP.h"
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-pthread_spin_lock (lock)
|
|
|
c6d234 |
- pthread_spinlock_t *lock;
|
|
|
c6d234 |
+pthread_spin_lock (pthread_spinlock_t *lock)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
unsigned int val;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/unix/sysv/linux/pt-raise.c b/nptl/sysdeps/unix/sysv/linux/pt-raise.c
|
|
|
c6d234 |
index 71face45acaacc52..519916a438c96874 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/unix/sysv/linux/pt-raise.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/unix/sysv/linux/pt-raise.c
|
|
|
c6d234 |
@@ -24,8 +24,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-raise (sig)
|
|
|
c6d234 |
- int sig;
|
|
|
c6d234 |
+raise (int sig)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
/* raise is an async-safe function. It could be called while the
|
|
|
c6d234 |
fork function temporarily invalidated the PID field. Adjust for
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c b/nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
|
|
|
c6d234 |
index 368f2c460517db4f..f2321e056f51e39a 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
|
|
|
c6d234 |
@@ -25,9 +25,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-pthread_getcpuclockid (threadid, clockid)
|
|
|
c6d234 |
- pthread_t threadid;
|
|
|
c6d234 |
- clockid_t *clockid;
|
|
|
c6d234 |
+pthread_getcpuclockid (pthread_t threadid, clockid_t *clockid)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct pthread *pd = (struct pthread *) threadid;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/unix/sysv/linux/pthread_getname.c b/nptl/sysdeps/unix/sysv/linux/pthread_getname.c
|
|
|
c6d234 |
index 2a41e1f94a422cc0..60ed6bf170804cdd 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/unix/sysv/linux/pthread_getname.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/unix/sysv/linux/pthread_getname.c
|
|
|
c6d234 |
@@ -28,10 +28,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-pthread_getname_np (th, buf, len)
|
|
|
c6d234 |
- pthread_t th;
|
|
|
c6d234 |
- char *buf;
|
|
|
c6d234 |
- size_t len;
|
|
|
c6d234 |
+pthread_getname_np (pthread_t th, char *buf, size_t len)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
const struct pthread *pd = (const struct pthread *) th;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/unix/sysv/linux/pthread_setname.c b/nptl/sysdeps/unix/sysv/linux/pthread_setname.c
|
|
|
c6d234 |
index 6ea406329bc6b6c1..7c945ac79da5491c 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/unix/sysv/linux/pthread_setname.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/unix/sysv/linux/pthread_setname.c
|
|
|
c6d234 |
@@ -28,9 +28,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-pthread_setname_np (th, name)
|
|
|
c6d234 |
- pthread_t th;
|
|
|
c6d234 |
- const char *name;
|
|
|
c6d234 |
+pthread_setname_np (pthread_t th, const char *name)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
const struct pthread *pd = (const struct pthread *) th;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c b/nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c
|
|
|
c6d234 |
index 2c0c25773733935f..dc12bb3749333ebc 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c
|
|
|
c6d234 |
@@ -27,10 +27,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-pthread_sigqueue (threadid, signo, value)
|
|
|
c6d234 |
- pthread_t threadid;
|
|
|
c6d234 |
- int signo;
|
|
|
c6d234 |
- const union sigval value;
|
|
|
c6d234 |
+pthread_sigqueue (pthread_t threadid, int signo, const union sigval value)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
#ifdef __NR_rt_tgsigqueueinfo
|
|
|
c6d234 |
struct pthread *pd = (struct pthread *) threadid;
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/unix/sysv/linux/raise.c b/nptl/sysdeps/unix/sysv/linux/raise.c
|
|
|
c6d234 |
index 268ab46d3f3805b8..378f03c7f2fc0195 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/unix/sysv/linux/raise.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/unix/sysv/linux/raise.c
|
|
|
c6d234 |
@@ -25,8 +25,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-raise (sig)
|
|
|
c6d234 |
- int sig;
|
|
|
c6d234 |
+raise (int sig)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct pthread *pd = THREAD_SELF;
|
|
|
c6d234 |
pid_t pid = THREAD_GETMEM (pd, pid);
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c b/nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c
|
|
|
c6d234 |
index c260d2aa0e6fc366..d0c07b939013d417 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c
|
|
|
c6d234 |
@@ -21,8 +21,7 @@
|
|
|
c6d234 |
#include <lowlevellock.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-pthread_barrier_destroy (barrier)
|
|
|
c6d234 |
- pthread_barrier_t *barrier;
|
|
|
c6d234 |
+pthread_barrier_destroy (pthread_barrier_t *barrier)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
union sparc_pthread_barrier *ibarrier;
|
|
|
c6d234 |
int result = EBUSY;
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c b/nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c
|
|
|
c6d234 |
index 8c5d9a9837360cdd..6ad85d7e232d5701 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c
|
|
|
c6d234 |
@@ -23,8 +23,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Wait on barrier. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-pthread_barrier_wait (barrier)
|
|
|
c6d234 |
- pthread_barrier_t *barrier;
|
|
|
c6d234 |
+pthread_barrier_wait (pthread_barrier_t *barrier)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
union sparc_pthread_barrier *ibarrier
|
|
|
c6d234 |
= (union sparc_pthread_barrier *) barrier;
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c b/nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c
|
|
|
c6d234 |
index aef2cc52c0daf0ad..ebbcca15cd7a476a 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c
|
|
|
c6d234 |
@@ -60,10 +60,7 @@ versioned_symbol (libpthread, __new_sem_init, sem_init, GLIBC_2_1);
|
|
|
c6d234 |
#if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)
|
|
|
c6d234 |
int
|
|
|
c6d234 |
attribute_compat_text_section
|
|
|
c6d234 |
-__old_sem_init (sem, pshared, value)
|
|
|
c6d234 |
- sem_t *sem;
|
|
|
c6d234 |
- int pshared;
|
|
|
c6d234 |
- unsigned int value;
|
|
|
c6d234 |
+__old_sem_init (sem_t *sem, int pshared, unsigned int value)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
/* Parameter sanity check. */
|
|
|
c6d234 |
if (__builtin_expect (value > SEM_VALUE_MAX, 0))
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c b/nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c
|
|
|
c6d234 |
index 157f34973984a4eb..9e8d993ad7f1d5a0 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c
|
|
|
c6d234 |
@@ -23,8 +23,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Wait on barrier. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-pthread_barrier_wait (barrier)
|
|
|
c6d234 |
- pthread_barrier_t *barrier;
|
|
|
c6d234 |
+pthread_barrier_wait (pthread_barrier_t *barrier)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
union sparc_pthread_barrier *ibarrier
|
|
|
c6d234 |
= (union sparc_pthread_barrier *) barrier;
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/unix/sysv/linux/timer_create.c b/nptl/sysdeps/unix/sysv/linux/timer_create.c
|
|
|
c6d234 |
index c2865fb4f3f1729e..5a2cacb73c34bd4f 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/unix/sysv/linux/timer_create.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/unix/sysv/linux/timer_create.c
|
|
|
c6d234 |
@@ -36,10 +36,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-timer_create (clock_id, evp, timerid)
|
|
|
c6d234 |
- clockid_t clock_id;
|
|
|
c6d234 |
- struct sigevent *evp;
|
|
|
c6d234 |
- timer_t *timerid;
|
|
|
c6d234 |
+timer_create (clockid_t clock_id, struct sigevent *evp, timer_t *timerid)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
#undef timer_create
|
|
|
c6d234 |
{
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/unix/sysv/linux/timer_delete.c b/nptl/sysdeps/unix/sysv/linux/timer_delete.c
|
|
|
c6d234 |
index 598be8343ef6edf1..f76d9eadd7d13a0a 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/unix/sysv/linux/timer_delete.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/unix/sysv/linux/timer_delete.c
|
|
|
c6d234 |
@@ -30,8 +30,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-timer_delete (timerid)
|
|
|
c6d234 |
- timer_t timerid;
|
|
|
c6d234 |
+timer_delete (timer_t timerid)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
#undef timer_delete
|
|
|
c6d234 |
struct timer *kt = (struct timer *) timerid;
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/unix/sysv/linux/timer_getoverr.c b/nptl/sysdeps/unix/sysv/linux/timer_getoverr.c
|
|
|
c6d234 |
index 6d48d4c14df23d6c..b80715e995918868 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/unix/sysv/linux/timer_getoverr.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/unix/sysv/linux/timer_getoverr.c
|
|
|
c6d234 |
@@ -29,8 +29,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-timer_getoverrun (timerid)
|
|
|
c6d234 |
- timer_t timerid;
|
|
|
c6d234 |
+timer_getoverrun (timer_t timerid)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
#undef timer_getoverrun
|
|
|
c6d234 |
struct timer *kt = (struct timer *) timerid;
|
|
|
c6d234 |
diff --git a/nptl/sysdeps/unix/sysv/linux/timer_gettime.c b/nptl/sysdeps/unix/sysv/linux/timer_gettime.c
|
|
|
c6d234 |
index 6d9933a99c2ccb2b..deee74a238e91aca 100644
|
|
|
c6d234 |
--- a/nptl/sysdeps/unix/sysv/linux/timer_gettime.c
|
|
|
c6d234 |
+++ b/nptl/sysdeps/unix/sysv/linux/timer_gettime.c
|
|
|
c6d234 |
@@ -30,9 +30,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-timer_gettime (timerid, value)
|
|
|
c6d234 |
- timer_t timerid;
|
|
|
c6d234 |
- struct itimerspec *value;
|
|
|
c6d234 |
+timer_gettime (timer_t timerid, struct itimerspec *value)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
#undef timer_gettime
|
|
|
c6d234 |
struct timer *kt = (struct timer *) timerid;
|
|
|
c6d234 |
diff --git a/sysdeps/arm/backtrace.c b/sysdeps/arm/backtrace.c
|
|
|
c6d234 |
index 3d839e628c1ff89b..ce7a0ceda42486e5 100644
|
|
|
c6d234 |
--- a/sysdeps/arm/backtrace.c
|
|
|
c6d234 |
+++ b/sysdeps/arm/backtrace.c
|
|
|
c6d234 |
@@ -87,9 +87,7 @@ backtrace_helper (struct _Unwind_Context *ctx, void *a)
|
|
|
c6d234 |
}
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__backtrace (array, size)
|
|
|
c6d234 |
- void **array;
|
|
|
c6d234 |
- int size;
|
|
|
c6d234 |
+__backtrace (void **array, int size)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct trace_arg arg = { .array = array, .size = size, .cnt = -1 };
|
|
|
c6d234 |
#ifdef SHARED
|
|
|
c6d234 |
diff --git a/sysdeps/i386/backtrace.c b/sysdeps/i386/backtrace.c
|
|
|
c6d234 |
index 13c7856249a2a1ea..c226814c17790e31 100644
|
|
|
c6d234 |
--- a/sysdeps/i386/backtrace.c
|
|
|
c6d234 |
+++ b/sysdeps/i386/backtrace.c
|
|
|
c6d234 |
@@ -109,9 +109,7 @@ struct layout
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__backtrace (array, size)
|
|
|
c6d234 |
- void **array;
|
|
|
c6d234 |
- int size;
|
|
|
c6d234 |
+__backtrace (void **array, int size)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct trace_arg arg = { .array = array, .size = size, .cnt = -1 };
|
|
|
c6d234 |
#ifdef SHARED
|
|
|
c6d234 |
diff --git a/sysdeps/i386/ffs.c b/sysdeps/i386/ffs.c
|
|
|
c6d234 |
index f53bdd1c160cd800..35fa6e91f0628269 100644
|
|
|
c6d234 |
--- a/sysdeps/i386/ffs.c
|
|
|
c6d234 |
+++ b/sysdeps/i386/ffs.c
|
|
|
c6d234 |
@@ -26,8 +26,7 @@
|
|
|
c6d234 |
#ifdef __GNUC__
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__ffs (x)
|
|
|
c6d234 |
- int x;
|
|
|
c6d234 |
+__ffs (int x)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int cnt;
|
|
|
c6d234 |
int tmp;
|
|
|
c6d234 |
diff --git a/sysdeps/i386/i686/ffs.c b/sysdeps/i386/i686/ffs.c
|
|
|
c6d234 |
index 452adbf288bdd342..aca1c5b69402877a 100644
|
|
|
c6d234 |
--- a/sysdeps/i386/i686/ffs.c
|
|
|
c6d234 |
+++ b/sysdeps/i386/i686/ffs.c
|
|
|
c6d234 |
@@ -26,8 +26,7 @@
|
|
|
c6d234 |
#ifdef __GNUC__
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__ffs (x)
|
|
|
c6d234 |
- int x;
|
|
|
c6d234 |
+__ffs (int x)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int cnt;
|
|
|
c6d234 |
int tmp;
|
|
|
c6d234 |
diff --git a/sysdeps/ia64/nptl/pthread_spin_lock.c b/sysdeps/ia64/nptl/pthread_spin_lock.c
|
|
|
c6d234 |
index 42b37882f5cb3da5..cfe71160c5716bf0 100644
|
|
|
c6d234 |
--- a/sysdeps/ia64/nptl/pthread_spin_lock.c
|
|
|
c6d234 |
+++ b/sysdeps/ia64/nptl/pthread_spin_lock.c
|
|
|
c6d234 |
@@ -19,8 +19,7 @@
|
|
|
c6d234 |
#include "pthreadP.h"
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-pthread_spin_lock (lock)
|
|
|
c6d234 |
- pthread_spinlock_t *lock;
|
|
|
c6d234 |
+pthread_spin_lock (pthread_spinlock_t *lock)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int *p = (int *) lock;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/ia64/nptl/pthread_spin_trylock.c b/sysdeps/ia64/nptl/pthread_spin_trylock.c
|
|
|
c6d234 |
index 9efd3b586be3bbe2..020d79e4aae8788d 100644
|
|
|
c6d234 |
--- a/sysdeps/ia64/nptl/pthread_spin_trylock.c
|
|
|
c6d234 |
+++ b/sysdeps/ia64/nptl/pthread_spin_trylock.c
|
|
|
c6d234 |
@@ -20,8 +20,7 @@
|
|
|
c6d234 |
#include "pthreadP.h"
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-pthread_spin_trylock (lock)
|
|
|
c6d234 |
- pthread_spinlock_t *lock;
|
|
|
c6d234 |
+pthread_spin_trylock (pthread_spinlock_t *lock)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return __sync_val_compare_and_swap ((int *) lock, 0, 1) == 0 ? 0 : EBUSY;
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/sysdeps/ieee754/ldbl-128/e_log2l.c b/sysdeps/ieee754/ldbl-128/e_log2l.c
|
|
|
c6d234 |
index 6c7da0e44b9e1997..ebb75a0754feed8b 100644
|
|
|
c6d234 |
--- a/sysdeps/ieee754/ldbl-128/e_log2l.c
|
|
|
c6d234 |
+++ b/sysdeps/ieee754/ldbl-128/e_log2l.c
|
|
|
c6d234 |
@@ -171,8 +171,7 @@ deval (long double x, const long double *p, int n)
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
long double
|
|
|
c6d234 |
-__ieee754_log2l (x)
|
|
|
c6d234 |
- long double x;
|
|
|
c6d234 |
+__ieee754_log2l (long double x)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
long double z;
|
|
|
c6d234 |
long double y;
|
|
|
c6d234 |
diff --git a/sysdeps/ieee754/ldbl-128ibm/e_log2l.c b/sysdeps/ieee754/ldbl-128ibm/e_log2l.c
|
|
|
c6d234 |
index 323ded0c0fa5e2e1..ad05678057f9072b 100644
|
|
|
c6d234 |
--- a/sysdeps/ieee754/ldbl-128ibm/e_log2l.c
|
|
|
c6d234 |
+++ b/sysdeps/ieee754/ldbl-128ibm/e_log2l.c
|
|
|
c6d234 |
@@ -171,8 +171,7 @@ deval (long double x, const long double *p, int n)
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
long double
|
|
|
c6d234 |
-__ieee754_log2l (x)
|
|
|
c6d234 |
- long double x;
|
|
|
c6d234 |
+__ieee754_log2l (long double x)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
long double z;
|
|
|
c6d234 |
long double y;
|
|
|
c6d234 |
diff --git a/sysdeps/m68k/ffs.c b/sysdeps/m68k/ffs.c
|
|
|
c6d234 |
index 3f45a03eaf624db1..2625596ed561feb6 100644
|
|
|
c6d234 |
--- a/sysdeps/m68k/ffs.c
|
|
|
c6d234 |
+++ b/sysdeps/m68k/ffs.c
|
|
|
c6d234 |
@@ -26,8 +26,7 @@
|
|
|
c6d234 |
#if defined (__GNUC__) && defined (__mc68020__)
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__ffs (x)
|
|
|
c6d234 |
- int x;
|
|
|
c6d234 |
+__ffs (int x)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int cnt;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/m68k/m680x0/fpu/e_acos.c b/sysdeps/m68k/m680x0/fpu/e_acos.c
|
|
|
c6d234 |
index f8a0a352a12260f0..94057e55be048a5b 100644
|
|
|
c6d234 |
--- a/sysdeps/m68k/m680x0/fpu/e_acos.c
|
|
|
c6d234 |
+++ b/sysdeps/m68k/m680x0/fpu/e_acos.c
|
|
|
c6d234 |
@@ -28,8 +28,7 @@
|
|
|
c6d234 |
#endif
|
|
|
c6d234 |
|
|
|
c6d234 |
float_type
|
|
|
c6d234 |
-FUNC (x)
|
|
|
c6d234 |
- float_type x;
|
|
|
c6d234 |
+FUNC (float_type x)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return __m81_u(FUNC)(x);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/sysdeps/m68k/m680x0/fpu/e_fmod.c b/sysdeps/m68k/m680x0/fpu/e_fmod.c
|
|
|
c6d234 |
index 671e3b83a404131d..db997ff08a88bded 100644
|
|
|
c6d234 |
--- a/sysdeps/m68k/m680x0/fpu/e_fmod.c
|
|
|
c6d234 |
+++ b/sysdeps/m68k/m680x0/fpu/e_fmod.c
|
|
|
c6d234 |
@@ -28,9 +28,7 @@
|
|
|
c6d234 |
#endif
|
|
|
c6d234 |
|
|
|
c6d234 |
float_type
|
|
|
c6d234 |
-FUNC (x, y)
|
|
|
c6d234 |
- float_type x;
|
|
|
c6d234 |
- float_type y;
|
|
|
c6d234 |
+FUNC (float_type x, float_type y)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return __m81_u(FUNC)(x, y);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/sysdeps/mach/adjtime.c b/sysdeps/mach/adjtime.c
|
|
|
c6d234 |
index dc043bbe085689af..3f31861cf5849068 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/adjtime.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/adjtime.c
|
|
|
c6d234 |
@@ -24,9 +24,7 @@
|
|
|
c6d234 |
of time adjustment remaining to be done from the last `__adjtime' call.
|
|
|
c6d234 |
This call is restricted to the super-user. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__adjtime (delta, olddelta)
|
|
|
c6d234 |
- const struct timeval *delta;
|
|
|
c6d234 |
- struct timeval *olddelta;
|
|
|
c6d234 |
+__adjtime (const struct timeval *delta, struct timeval *olddelta)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
mach_port_t hostpriv;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/gettimeofday.c b/sysdeps/mach/gettimeofday.c
|
|
|
c6d234 |
index 293a77595b417dfa..f1d783c53dfce0b8 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/gettimeofday.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/gettimeofday.c
|
|
|
c6d234 |
@@ -24,9 +24,7 @@
|
|
|
c6d234 |
putting it into *TV and *TZ. If TZ is NULL, *TZ is not filled.
|
|
|
c6d234 |
Returns 0 on success, -1 on errors. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__gettimeofday (tv, tz)
|
|
|
c6d234 |
- struct timeval *tv;
|
|
|
c6d234 |
- struct timezone *tz;
|
|
|
c6d234 |
+__gettimeofday (struct timeval *tv, struct timezone *tz)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
kern_return_t err;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/_exit.c b/sysdeps/mach/hurd/_exit.c
|
|
|
c6d234 |
index 667c57204877d7de..272dad329aaf9e6e 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/_exit.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/_exit.c
|
|
|
c6d234 |
@@ -46,8 +46,7 @@ _hurd_exit (int status)
|
|
|
c6d234 |
}
|
|
|
c6d234 |
|
|
|
c6d234 |
void
|
|
|
c6d234 |
-_exit (status)
|
|
|
c6d234 |
- int status;
|
|
|
c6d234 |
+_exit (int status)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
_hurd_exit (W_EXITCODE (status, 0));
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/access.c b/sysdeps/mach/hurd/access.c
|
|
|
c6d234 |
index 0a5dfade9901fa04..0ff6b29a5afabd54 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/access.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/access.c
|
|
|
c6d234 |
@@ -24,9 +24,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Test for access to FILE by our real user and group IDs. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__access (file, type)
|
|
|
c6d234 |
- const char *file;
|
|
|
c6d234 |
- int type;
|
|
|
c6d234 |
+__access (const char *file, int type)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
file_t rcrdir, rcwdir, io;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/adjtime.c b/sysdeps/mach/hurd/adjtime.c
|
|
|
c6d234 |
index feaa2b7b7c4ea06e..f917ed3d579b7c4e 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/adjtime.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/adjtime.c
|
|
|
c6d234 |
@@ -24,9 +24,7 @@
|
|
|
c6d234 |
of time adjustment remaining to be done from the last `__adjtime' call.
|
|
|
c6d234 |
This call is restricted to the super-user. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__adjtime (delta, olddelta)
|
|
|
c6d234 |
- const struct timeval *delta;
|
|
|
c6d234 |
- struct timeval *olddelta;
|
|
|
c6d234 |
+__adjtime (const struct timeval *delta, struct timeval *olddelta)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
mach_port_t hostpriv;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/chdir.c b/sysdeps/mach/hurd/chdir.c
|
|
|
c6d234 |
index 0369d7eaf6ccd739..1eee39608135b615 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/chdir.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/chdir.c
|
|
|
c6d234 |
@@ -22,8 +22,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Change the current directory to FILE_NAME. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__chdir (file_name)
|
|
|
c6d234 |
- const char *file_name;
|
|
|
c6d234 |
+__chdir (const char *file_name)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return _hurd_change_directory_port_from_name (&_hurd_ports[INIT_PORT_CWDIR],
|
|
|
c6d234 |
file_name);
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/chmod.c b/sysdeps/mach/hurd/chmod.c
|
|
|
c6d234 |
index 053f244efe982348..a54a631dd741962a 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/chmod.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/chmod.c
|
|
|
c6d234 |
@@ -22,9 +22,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Change the protections of FILE to MODE. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__chmod (file, mode)
|
|
|
c6d234 |
- const char *file;
|
|
|
c6d234 |
- mode_t mode;
|
|
|
c6d234 |
+__chmod (const char *file, mode_t mode)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
file_t port = __file_name_lookup (file, 0, 0);
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/chown.c b/sysdeps/mach/hurd/chown.c
|
|
|
c6d234 |
index b12a95972702da52..414a5f0a17d5b1e2 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/chown.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/chown.c
|
|
|
c6d234 |
@@ -22,10 +22,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Change the owner and group of FILE. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__chown (file, owner, group)
|
|
|
c6d234 |
- const char *file;
|
|
|
c6d234 |
- uid_t owner;
|
|
|
c6d234 |
- gid_t group;
|
|
|
c6d234 |
+__chown (const char *file, uid_t owner, gid_t group)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
file_t port = __file_name_lookup (file, 0, 0);
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/cthreads.c b/sysdeps/mach/hurd/cthreads.c
|
|
|
c6d234 |
index b9f8ab8b13409447..3831862b730aad76 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/cthreads.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/cthreads.c
|
|
|
c6d234 |
@@ -22,8 +22,7 @@
|
|
|
c6d234 |
/* Placeholder for key creation routine from Hurd cthreads library. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
weak_function
|
|
|
c6d234 |
-cthread_keycreate (key)
|
|
|
c6d234 |
- cthread_key_t *key;
|
|
|
c6d234 |
+cthread_keycreate (cthread_key_t *key)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
__set_errno (ENOSYS);
|
|
|
c6d234 |
*key = -1;
|
|
|
c6d234 |
@@ -33,9 +32,7 @@ cthread_keycreate (key)
|
|
|
c6d234 |
/* Placeholder for key retrieval routine from Hurd cthreads library. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
weak_function
|
|
|
c6d234 |
-cthread_getspecific (key, pval)
|
|
|
c6d234 |
- cthread_key_t key;
|
|
|
c6d234 |
- void **pval;
|
|
|
c6d234 |
+cthread_getspecific (cthread_key_t key, void **pval)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
*pval = NULL;
|
|
|
c6d234 |
__set_errno (ENOSYS);
|
|
|
c6d234 |
@@ -45,9 +42,7 @@ cthread_getspecific (key, pval)
|
|
|
c6d234 |
/* Placeholder for key setting routine from Hurd cthreads library. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
weak_function
|
|
|
c6d234 |
-cthread_setspecific (key, val)
|
|
|
c6d234 |
- cthread_key_t key;
|
|
|
c6d234 |
- void *val;
|
|
|
c6d234 |
+cthread_setspecific (cthread_key_t key, void *val)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
__set_errno (ENOSYS);
|
|
|
c6d234 |
return -1;
|
|
|
c6d234 |
@@ -56,8 +51,7 @@ cthread_setspecific (key, val)
|
|
|
c6d234 |
/* Call cthread_getspecific which gets a pointer to the return value instead
|
|
|
c6d234 |
of just returning it. */
|
|
|
c6d234 |
void *
|
|
|
c6d234 |
-__libc_getspecific (key)
|
|
|
c6d234 |
- cthread_key_t key;
|
|
|
c6d234 |
+__libc_getspecific (cthread_key_t key)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
void *val;
|
|
|
c6d234 |
cthread_getspecific (key, &val;;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/euidaccess.c b/sysdeps/mach/hurd/euidaccess.c
|
|
|
c6d234 |
index 79db43839906b83d..9e258840a89d8ea6 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/euidaccess.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/euidaccess.c
|
|
|
c6d234 |
@@ -23,9 +23,7 @@
|
|
|
c6d234 |
#include <hurd.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__euidaccess (file, type)
|
|
|
c6d234 |
- const char *file;
|
|
|
c6d234 |
- int type;
|
|
|
c6d234 |
+__euidaccess (const char *file, int type)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
file_t port;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/faccessat.c b/sysdeps/mach/hurd/faccessat.c
|
|
|
c6d234 |
index 8c6be4b86fee954d..5f4626a8867207fd 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/faccessat.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/faccessat.c
|
|
|
c6d234 |
@@ -25,11 +25,7 @@
|
|
|
c6d234 |
#include <hurd/fd.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-faccessat (fd, file, type, flag)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- const char *file;
|
|
|
c6d234 |
- int type;
|
|
|
c6d234 |
- int flag;
|
|
|
c6d234 |
+faccessat (int fd, const char *file, int type, int flag)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
file_t port;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/fchdir.c b/sysdeps/mach/hurd/fchdir.c
|
|
|
c6d234 |
index cce9468f10b6b0ae..a5f2f2c16f6c4c35 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/fchdir.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/fchdir.c
|
|
|
c6d234 |
@@ -24,8 +24,7 @@
|
|
|
c6d234 |
/* Change the current directory to FD. */
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__fchdir (fd)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
+__fchdir (int fd)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return _hurd_change_directory_port_from_fd (&_hurd_ports[INIT_PORT_CWDIR],
|
|
|
c6d234 |
fd);
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/fchmod.c b/sysdeps/mach/hurd/fchmod.c
|
|
|
c6d234 |
index f32105b9b2031277..ccf03dfa4aaa67c4 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/fchmod.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/fchmod.c
|
|
|
c6d234 |
@@ -23,9 +23,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Change the permissions of the file referenced by FD to MODE. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__fchmod (fd, mode)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- mode_t mode;
|
|
|
c6d234 |
+__fchmod (int fd, mode_t mode)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/fchmodat.c b/sysdeps/mach/hurd/fchmodat.c
|
|
|
c6d234 |
index f3c048ff36da7170..4dc45c321a815d1e 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/fchmodat.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/fchmodat.c
|
|
|
c6d234 |
@@ -25,11 +25,7 @@
|
|
|
c6d234 |
#include <hurd/fd.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-fchmodat (fd, file, mode, flag)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- const char *file;
|
|
|
c6d234 |
- mode_t mode;
|
|
|
c6d234 |
- int flag;
|
|
|
c6d234 |
+fchmodat (int fd, const char *file, mode_t mode, int flag)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
file_t port = __file_name_lookup_at (fd, flag, file, 0, 0);
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/fchown.c b/sysdeps/mach/hurd/fchown.c
|
|
|
c6d234 |
index 09fea4ec7ad93aff..b471604162a1f0c1 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/fchown.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/fchown.c
|
|
|
c6d234 |
@@ -23,10 +23,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Change the owner and group of the file referred to by FD. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__fchown (fd, owner, group)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- uid_t owner;
|
|
|
c6d234 |
- gid_t group;
|
|
|
c6d234 |
+__fchown (int fd, uid_t owner, gid_t group)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/fchownat.c b/sysdeps/mach/hurd/fchownat.c
|
|
|
c6d234 |
index 58546e46c9c89fcb..d0a0f5c8cbdd5be1 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/fchownat.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/fchownat.c
|
|
|
c6d234 |
@@ -26,12 +26,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Change the owner and group of FILE. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-fchownat (fd, file, owner, group, flag)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- const char *file;
|
|
|
c6d234 |
- uid_t owner;
|
|
|
c6d234 |
- gid_t group;
|
|
|
c6d234 |
- int flag;
|
|
|
c6d234 |
+fchownat (int fd, const char *file, uid_t owner, gid_t group, int flag)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
file_t port = __file_name_lookup_at (fd, flag, file, 0, 0);
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/flock.c b/sysdeps/mach/hurd/flock.c
|
|
|
c6d234 |
index a9e70ac2740dbb55..39c298112323c499 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/flock.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/flock.c
|
|
|
c6d234 |
@@ -23,9 +23,7 @@
|
|
|
c6d234 |
/* Apply or remove an advisory lock, according to OPERATION,
|
|
|
c6d234 |
on the file FD refers to. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__flock (fd, operation)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- int operation;
|
|
|
c6d234 |
+__flock (int fd, int operation)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/fsync.c b/sysdeps/mach/hurd/fsync.c
|
|
|
c6d234 |
index fe3e044a3aee5e83..e17e0142ea05d1e9 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/fsync.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/fsync.c
|
|
|
c6d234 |
@@ -22,8 +22,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Make all changes done to FD actually appear on disk. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-fsync (fd)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
+fsync (int fd)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err = HURD_DPORT_USE (fd, __file_sync (port, 1, 0));
|
|
|
c6d234 |
if (err)
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/ftruncate.c b/sysdeps/mach/hurd/ftruncate.c
|
|
|
c6d234 |
index 51b65638a7c37d2a..4a3897faa6aa6ca6 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/ftruncate.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/ftruncate.c
|
|
|
c6d234 |
@@ -23,9 +23,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Truncate the file referenced by FD to LENGTH bytes. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__ftruncate (fd, length)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- __off_t length;
|
|
|
c6d234 |
+__ftruncate (int fd, __off_t length)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
if (err = HURD_DPORT_USE (fd, __file_set_size (port, length)))
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/getgroups.c b/sysdeps/mach/hurd/getgroups.c
|
|
|
c6d234 |
index 35b219ef66c36606..8e2a580ced7f71e2 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/getgroups.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/getgroups.c
|
|
|
c6d234 |
@@ -22,9 +22,7 @@
|
|
|
c6d234 |
#include <string.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__getgroups (n, gidset)
|
|
|
c6d234 |
- int n;
|
|
|
c6d234 |
- gid_t *gidset;
|
|
|
c6d234 |
+__getgroups (int n, gid_t *gidset)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
int ngids;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/gethostname.c b/sysdeps/mach/hurd/gethostname.c
|
|
|
c6d234 |
index fb03b7e8192820dc..dc32a47b7a1324eb 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/gethostname.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/gethostname.c
|
|
|
c6d234 |
@@ -22,9 +22,7 @@
|
|
|
c6d234 |
The result is null-terminated if LEN is large enough for the full
|
|
|
c6d234 |
name and the terminator. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__gethostname (name, len)
|
|
|
c6d234 |
- char *name;
|
|
|
c6d234 |
- size_t len;
|
|
|
c6d234 |
+__gethostname (char *name, size_t len)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
/* The host name is just the contents of the file /etc/hostname. */
|
|
|
c6d234 |
ssize_t n = _hurd_get_host_config ("/etc/hostname", name, len);
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/getitimer.c b/sysdeps/mach/hurd/getitimer.c
|
|
|
c6d234 |
index 3a9b53b677eed78f..da0d78da22950c48 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/getitimer.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/getitimer.c
|
|
|
c6d234 |
@@ -42,9 +42,7 @@ subtract_timeval (struct timeval *from, const struct timeval *subtract)
|
|
|
c6d234 |
/* Set *VALUE to the current setting of timer WHICH.
|
|
|
c6d234 |
Return 0 on success, -1 on errors. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__getitimer (which, value)
|
|
|
c6d234 |
- enum __itimer_which which;
|
|
|
c6d234 |
- struct itimerval *value;
|
|
|
c6d234 |
+__getitimer (enum __itimer_which which, struct itimerval *value)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct itimerval val;
|
|
|
c6d234 |
struct timeval elapsed;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/getlogin_r.c b/sysdeps/mach/hurd/getlogin_r.c
|
|
|
c6d234 |
index 5410709e71d59d79..bbae17b0380b3727 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/getlogin_r.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/getlogin_r.c
|
|
|
c6d234 |
@@ -25,9 +25,7 @@
|
|
|
c6d234 |
If it cannot be determined or some other error occurred, return the error
|
|
|
c6d234 |
code. Otherwise return 0. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-getlogin_r (name, name_len)
|
|
|
c6d234 |
- char *name;
|
|
|
c6d234 |
- size_t name_len;
|
|
|
c6d234 |
+getlogin_r (char *name, size_t name_len)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
string_t login;
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/getpgid.c b/sysdeps/mach/hurd/getpgid.c
|
|
|
c6d234 |
index 69b316abfe3e4421..4071c182ac341f52 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/getpgid.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/getpgid.c
|
|
|
c6d234 |
@@ -22,8 +22,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Get the process group ID of process PID. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__getpgid (pid)
|
|
|
c6d234 |
- pid_t pid;
|
|
|
c6d234 |
+__getpgid (pid_t pid)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
pid_t pgrp;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/getrusage.c b/sysdeps/mach/hurd/getrusage.c
|
|
|
c6d234 |
index b2cc58969a1a6b08..2d5e41bf4ba15437 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/getrusage.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/getrusage.c
|
|
|
c6d234 |
@@ -26,9 +26,7 @@
|
|
|
c6d234 |
/* Return resource usage information on process indicated by WHO
|
|
|
c6d234 |
and put it in *USAGE. Returns 0 for success, -1 for failure. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__getrusage (who, usage)
|
|
|
c6d234 |
- enum __rusage_who who;
|
|
|
c6d234 |
- struct rusage *usage;
|
|
|
c6d234 |
+__getrusage (enum __rusage_who who, struct rusage *usage)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct task_basic_info bi;
|
|
|
c6d234 |
struct task_events_info ei;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/getsockname.c b/sysdeps/mach/hurd/getsockname.c
|
|
|
c6d234 |
index 65a69dfdb0833b9c..5d9fc6de3b02283c 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/getsockname.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/getsockname.c
|
|
|
c6d234 |
@@ -24,10 +24,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Put the local address of FD into *ADDR and its length in *LEN. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__getsockname (fd, addrarg, len)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- __SOCKADDR_ARG addrarg;
|
|
|
c6d234 |
- socklen_t *len;
|
|
|
c6d234 |
+__getsockname (int fd, __SOCKADDR_ARG addrarg, socklen_t *len)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
struct sockaddr *addr = addrarg.__sockaddr__;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/group_member.c b/sysdeps/mach/hurd/group_member.c
|
|
|
c6d234 |
index 2021a98af79f6e7a..a6eafe944898a45b 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/group_member.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/group_member.c
|
|
|
c6d234 |
@@ -22,8 +22,7 @@
|
|
|
c6d234 |
#include <hurd/id.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__group_member (gid)
|
|
|
c6d234 |
- gid_t gid;
|
|
|
c6d234 |
+__group_member (gid_t gid)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int member = 0;
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/isatty.c b/sysdeps/mach/hurd/isatty.c
|
|
|
c6d234 |
index 76cb971b130a8c4b..fc23a7fb069a727f 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/isatty.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/isatty.c
|
|
|
c6d234 |
@@ -22,8 +22,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Return 1 if FD is a terminal, 0 if not. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__isatty (fd)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
+__isatty (int fd)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
mach_port_t id;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/lchown.c b/sysdeps/mach/hurd/lchown.c
|
|
|
c6d234 |
index 93973ad64383755e..4bd22088917e59eb 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/lchown.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/lchown.c
|
|
|
c6d234 |
@@ -24,10 +24,7 @@
|
|
|
c6d234 |
/* Change the owner and group of FILE; if it's a link, do the link and
|
|
|
c6d234 |
not the target. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__lchown (file, owner, group)
|
|
|
c6d234 |
- const char *file;
|
|
|
c6d234 |
- uid_t owner;
|
|
|
c6d234 |
- gid_t group;
|
|
|
c6d234 |
+__lchown (const char *file, uid_t owner, gid_t group)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
file_t port = __file_name_lookup (file, O_NOLINK, 0);
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/link.c b/sysdeps/mach/hurd/link.c
|
|
|
c6d234 |
index 4a887694557a2840..26e71924364d5695 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/link.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/link.c
|
|
|
c6d234 |
@@ -22,9 +22,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Make a link to FROM called TO. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__link (from, to)
|
|
|
c6d234 |
- const char *from;
|
|
|
c6d234 |
- const char *to;
|
|
|
c6d234 |
+__link (const char *from, const char *to)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
file_t oldfile, linknode, todir;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/linkat.c b/sysdeps/mach/hurd/linkat.c
|
|
|
c6d234 |
index 48963abab7d6f3ec..5c8fc03f5a323593 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/linkat.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/linkat.c
|
|
|
c6d234 |
@@ -26,12 +26,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Make a link to FROM relative to FROMFD called TO relative to TOFD. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-linkat (fromfd, from, tofd, to, flags)
|
|
|
c6d234 |
- int fromfd;
|
|
|
c6d234 |
- const char *from;
|
|
|
c6d234 |
- int tofd;
|
|
|
c6d234 |
- const char *to;
|
|
|
c6d234 |
- int flags;
|
|
|
c6d234 |
+linkat (int fromfd, const char *from, int tofd, const char *to, int flags)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
file_t oldfile, linknode, todir;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/listen.c b/sysdeps/mach/hurd/listen.c
|
|
|
c6d234 |
index 86b39e9a74e9fdf8..b04042a9d53ab58b 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/listen.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/listen.c
|
|
|
c6d234 |
@@ -26,9 +26,7 @@
|
|
|
c6d234 |
Returns 0 on success, -1 for errors. */
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__listen (fd, n)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- int n;
|
|
|
c6d234 |
+__listen (int fd, int n)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err = HURD_DPORT_USE (fd, __socket_listen (port, n));
|
|
|
c6d234 |
if (err)
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/mkdir.c b/sysdeps/mach/hurd/mkdir.c
|
|
|
c6d234 |
index 8ad648e0a3ebaa0f..9d4b52779523ae55 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/mkdir.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/mkdir.c
|
|
|
c6d234 |
@@ -23,9 +23,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Create a directory named FILE_NAME with protections MODE. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__mkdir (file_name, mode)
|
|
|
c6d234 |
- const char *file_name;
|
|
|
c6d234 |
- mode_t mode;
|
|
|
c6d234 |
+__mkdir (const char *file_name, mode_t mode)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
const char *name;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/mkdirat.c b/sysdeps/mach/hurd/mkdirat.c
|
|
|
c6d234 |
index d6d672ead91c3d21..f4227cd877c78d53 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/mkdirat.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/mkdirat.c
|
|
|
c6d234 |
@@ -24,10 +24,7 @@
|
|
|
c6d234 |
#include <string.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-mkdirat (fd, path, mode)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- const char *path;
|
|
|
c6d234 |
- mode_t mode;
|
|
|
c6d234 |
+mkdirat (int fd, const char *path, mode_t mode)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
const char *name;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/openat.c b/sysdeps/mach/hurd/openat.c
|
|
|
c6d234 |
index 402b89e1f0726c08..36170eac08e4ff0a 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/openat.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/openat.c
|
|
|
c6d234 |
@@ -29,10 +29,7 @@
|
|
|
c6d234 |
the directory associated with FD. If O_CREAT or O_TMPFILE is in OFLAG, a
|
|
|
c6d234 |
third argument is the file protection. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__openat (fd, file, oflag)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- const char *file;
|
|
|
c6d234 |
- int oflag;
|
|
|
c6d234 |
+__openat (int fd, const char *file, int oflag)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
mode_t mode;
|
|
|
c6d234 |
io_t port;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/poll.c b/sysdeps/mach/hurd/poll.c
|
|
|
c6d234 |
index a78d10db4269bca0..040d541204002651 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/poll.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/poll.c
|
|
|
c6d234 |
@@ -28,10 +28,7 @@
|
|
|
c6d234 |
or -1 for errors. */
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__poll (fds, nfds, timeout)
|
|
|
c6d234 |
- struct pollfd *fds;
|
|
|
c6d234 |
- nfds_t nfds;
|
|
|
c6d234 |
- int timeout;
|
|
|
c6d234 |
+__poll (struct pollfd *fds, nfds_t nfds, int timeout)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct timespec ts, *to;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/readlink.c b/sysdeps/mach/hurd/readlink.c
|
|
|
c6d234 |
index fec50acde112534e..4a9f990edc70922e 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/readlink.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/readlink.c
|
|
|
c6d234 |
@@ -25,10 +25,7 @@
|
|
|
c6d234 |
LEN bytes of BUF. The contents are not null-terminated.
|
|
|
c6d234 |
Returns the number of characters read, or -1 for errors. */
|
|
|
c6d234 |
ssize_t
|
|
|
c6d234 |
-__readlink (file_name, buf, len)
|
|
|
c6d234 |
- const char *file_name;
|
|
|
c6d234 |
- char *buf;
|
|
|
c6d234 |
- size_t len;
|
|
|
c6d234 |
+__readlink (const char *file_name, char *buf, size_t len)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
file_t file;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/readlinkat.c b/sysdeps/mach/hurd/readlinkat.c
|
|
|
c6d234 |
index c46522a48e1c5ceb..d4cdadec13330622 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/readlinkat.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/readlinkat.c
|
|
|
c6d234 |
@@ -26,11 +26,7 @@
|
|
|
c6d234 |
than LEN bytes of BUF. The contents are not null-terminated.
|
|
|
c6d234 |
Returns the number of characters read, or -1 for errors. */
|
|
|
c6d234 |
ssize_t
|
|
|
c6d234 |
-readlinkat (fd, file_name, buf, len)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- const char *file_name;
|
|
|
c6d234 |
- char *buf;
|
|
|
c6d234 |
- size_t len;
|
|
|
c6d234 |
+readlinkat (int fd, const char *file_name, char *buf, size_t len)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
file_t file;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/recv.c b/sysdeps/mach/hurd/recv.c
|
|
|
c6d234 |
index 590f4c01dc93e80d..b6683394fa78595c 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/recv.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/recv.c
|
|
|
c6d234 |
@@ -26,11 +26,7 @@
|
|
|
c6d234 |
Returns the number read or -1 for errors. */
|
|
|
c6d234 |
|
|
|
c6d234 |
ssize_t
|
|
|
c6d234 |
-__recv (fd, buf, n, flags)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- void *buf;
|
|
|
c6d234 |
- size_t n;
|
|
|
c6d234 |
- int flags;
|
|
|
c6d234 |
+__recv (int fd, void *buf, size_t n, int flags)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
mach_port_t addrport;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/rename.c b/sysdeps/mach/hurd/rename.c
|
|
|
c6d234 |
index c34cbcc24a331d8e..2f7d2b65861614ed 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/rename.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/rename.c
|
|
|
c6d234 |
@@ -20,9 +20,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Rename the file OLD to NEW. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-rename (old, new)
|
|
|
c6d234 |
- const char *old;
|
|
|
c6d234 |
- const char *new;
|
|
|
c6d234 |
+rename (const char *old, const char *new)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
file_t olddir, newdir;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/renameat.c b/sysdeps/mach/hurd/renameat.c
|
|
|
c6d234 |
index 8ab5906a6742f0a0..98082a7b9575e106 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/renameat.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/renameat.c
|
|
|
c6d234 |
@@ -22,11 +22,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Rename the file OLD relative to OLDFD to NEW relative to NEWFD. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-renameat (oldfd, old, newfd, new)
|
|
|
c6d234 |
- int oldfd;
|
|
|
c6d234 |
- const char *old;
|
|
|
c6d234 |
- int newfd;
|
|
|
c6d234 |
- const char *new;
|
|
|
c6d234 |
+renameat (int oldfd, const char *old, int newfd, const char *new)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
file_t olddir, newdir;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/revoke.c b/sysdeps/mach/hurd/revoke.c
|
|
|
c6d234 |
index b80cb4a8146dc29b..ef60154e2fdc12d3 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/revoke.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/revoke.c
|
|
|
c6d234 |
@@ -21,8 +21,7 @@
|
|
|
c6d234 |
#include <hurd.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-revoke (file_name)
|
|
|
c6d234 |
- const char *file_name;
|
|
|
c6d234 |
+revoke (const char *file_name)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
file_t file = __file_name_lookup (file_name, 0, 0);
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/rewinddir.c b/sysdeps/mach/hurd/rewinddir.c
|
|
|
c6d234 |
index 30ceac5e5e208a7a..26adb0115845b64c 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/rewinddir.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/rewinddir.c
|
|
|
c6d234 |
@@ -22,8 +22,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Rewind DIRP to the beginning of the directory. */
|
|
|
c6d234 |
void
|
|
|
c6d234 |
-rewinddir (dirp)
|
|
|
c6d234 |
- DIR *dirp;
|
|
|
c6d234 |
+rewinddir (DIR *dirp)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
seekdir (dirp, (off_t) 0L);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/rmdir.c b/sysdeps/mach/hurd/rmdir.c
|
|
|
c6d234 |
index 2a5d5f371fabfb93..09a6167a3e75f05f 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/rmdir.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/rmdir.c
|
|
|
c6d234 |
@@ -22,8 +22,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Remove the directory FILE_NAME. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__rmdir (file_name)
|
|
|
c6d234 |
- const char *file_name;
|
|
|
c6d234 |
+__rmdir (const char *file_name)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
const char *name;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/seekdir.c b/sysdeps/mach/hurd/seekdir.c
|
|
|
c6d234 |
index 70c3a87432f2afae..1d07b7f929c06e5e 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/seekdir.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/seekdir.c
|
|
|
c6d234 |
@@ -24,9 +24,7 @@
|
|
|
c6d234 |
/* Seek to position POS in DIRP. */
|
|
|
c6d234 |
/* XXX should be __seekdir ? */
|
|
|
c6d234 |
void
|
|
|
c6d234 |
-seekdir (dirp, pos)
|
|
|
c6d234 |
- DIR *dirp;
|
|
|
c6d234 |
- long int pos;
|
|
|
c6d234 |
+seekdir (DIR *dirp, long int pos)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
__libc_lock_lock (dirp->__lock);
|
|
|
c6d234 |
/* Change our entry index pointer to POS and discard any data already
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/send.c b/sysdeps/mach/hurd/send.c
|
|
|
c6d234 |
index 500c6a26e5856b8a..3ef1b153fa5eb213 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/send.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/send.c
|
|
|
c6d234 |
@@ -23,11 +23,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Send N bytes of BUF to socket FD. Returns the number sent or -1. */
|
|
|
c6d234 |
ssize_t
|
|
|
c6d234 |
-__send (fd, buf, n, flags)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- const void *buf;
|
|
|
c6d234 |
- size_t n;
|
|
|
c6d234 |
- int flags;
|
|
|
c6d234 |
+__send (int fd, const void *buf, size_t n, int flags)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
size_t wrote;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/setdomain.c b/sysdeps/mach/hurd/setdomain.c
|
|
|
c6d234 |
index f3b05172436ae9b0..e9db0ddd517b11de 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/setdomain.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/setdomain.c
|
|
|
c6d234 |
@@ -21,9 +21,7 @@
|
|
|
c6d234 |
/* Set the name of the current YP domain to NAME, which is LEN bytes long.
|
|
|
c6d234 |
This call is restricted to the super-user. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-setdomainname (name, len)
|
|
|
c6d234 |
- const char *name;
|
|
|
c6d234 |
- size_t len;
|
|
|
c6d234 |
+setdomainname (const char *name, size_t len)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
/* The NIS domain name is just the contents of the file /etc/nisdomain. */
|
|
|
c6d234 |
ssize_t n = _hurd_set_host_config ("/etc/nisdomain", name, len);
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/setegid.c b/sysdeps/mach/hurd/setegid.c
|
|
|
c6d234 |
index cff169f3f39bb754..6485be03a4879a8c 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/setegid.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/setegid.c
|
|
|
c6d234 |
@@ -24,8 +24,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Set the effective user ID of the calling process to GID. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-setegid (gid)
|
|
|
c6d234 |
- gid_t gid;
|
|
|
c6d234 |
+setegid (gid_t gid)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
auth_t newauth;
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/seteuid.c b/sysdeps/mach/hurd/seteuid.c
|
|
|
c6d234 |
index 200bbda8f487d134..47935fab59917de6 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/seteuid.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/seteuid.c
|
|
|
c6d234 |
@@ -24,8 +24,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Set the effective user ID of the calling process to UID. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-seteuid (uid)
|
|
|
c6d234 |
- uid_t uid;
|
|
|
c6d234 |
+seteuid (uid_t uid)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
auth_t newauth;
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/setgid.c b/sysdeps/mach/hurd/setgid.c
|
|
|
c6d234 |
index b4dcd142cc5f627f..0bd73ea8b2c32602 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/setgid.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/setgid.c
|
|
|
c6d234 |
@@ -27,8 +27,7 @@
|
|
|
c6d234 |
and effective group IDs, and the saved set-group-ID to UID;
|
|
|
c6d234 |
if not, the effective group ID is set to GID. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__setgid (gid)
|
|
|
c6d234 |
- gid_t gid;
|
|
|
c6d234 |
+__setgid (gid_t gid)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
auth_t newauth;
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/setgroups.c b/sysdeps/mach/hurd/setgroups.c
|
|
|
c6d234 |
index 4b4b40eac6f8a67e..bdc8d052d8a8c3ff 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/setgroups.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/setgroups.c
|
|
|
c6d234 |
@@ -23,9 +23,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Set the group set for the current user to GROUPS (N of them). */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-setgroups (n, groups)
|
|
|
c6d234 |
- size_t n;
|
|
|
c6d234 |
- const gid_t *groups;
|
|
|
c6d234 |
+setgroups (size_t n, const gid_t *groups)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
auth_t newauth;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/sethostid.c b/sysdeps/mach/hurd/sethostid.c
|
|
|
c6d234 |
index 7fadf6aa8503876e..0a763f31e26e33fb 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/sethostid.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/sethostid.c
|
|
|
c6d234 |
@@ -25,8 +25,7 @@
|
|
|
c6d234 |
/* XXX should be __sethostid?
|
|
|
c6d234 |
isn't hostid supposed to be hardwired and unchangeable? */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-sethostid (id)
|
|
|
c6d234 |
- long int id;
|
|
|
c6d234 |
+sethostid (long int id)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
char buf[8], *bp;
|
|
|
c6d234 |
ssize_t n;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/sethostname.c b/sysdeps/mach/hurd/sethostname.c
|
|
|
c6d234 |
index 433efa32f7125ce5..f0e63c7ea5175da5 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/sethostname.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/sethostname.c
|
|
|
c6d234 |
@@ -22,9 +22,7 @@
|
|
|
c6d234 |
This call is restricted to the super-user. */
|
|
|
c6d234 |
/* XXX should be __sethostname ? */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-sethostname (name, len)
|
|
|
c6d234 |
- const char *name;
|
|
|
c6d234 |
- size_t len;
|
|
|
c6d234 |
+sethostname (const char *name, size_t len)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
/* The host name is just the contents of the file /etc/hostname. */
|
|
|
c6d234 |
ssize_t n = _hurd_set_host_config ("/etc/hostname", name, len);
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/setlogin.c b/sysdeps/mach/hurd/setlogin.c
|
|
|
c6d234 |
index 16c230685e91a411..48ab43b302c7dc2a 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/setlogin.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/setlogin.c
|
|
|
c6d234 |
@@ -21,8 +21,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Set the login name returned by `getlogin'. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-setlogin (name)
|
|
|
c6d234 |
- const char *name;
|
|
|
c6d234 |
+setlogin (const char *name)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
if (err = __USEPORT (PROC, __proc_setlogin (port, name)))
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/setpgid.c b/sysdeps/mach/hurd/setpgid.c
|
|
|
c6d234 |
index f3696fc60c0d7cfe..ddce0b7229d1766e 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/setpgid.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/setpgid.c
|
|
|
c6d234 |
@@ -24,9 +24,7 @@
|
|
|
c6d234 |
If PID is zero, the current process's process group ID is set.
|
|
|
c6d234 |
If PGID is zero, the process ID of the process is used. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__setpgid (pid, pgid)
|
|
|
c6d234 |
- pid_t pid;
|
|
|
c6d234 |
- pid_t pgid;
|
|
|
c6d234 |
+__setpgid (pid_t pid, pid_t pgid)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
unsigned int stamp;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/setregid.c b/sysdeps/mach/hurd/setregid.c
|
|
|
c6d234 |
index f44685731e8aa185..f0f1eb9a383c3bba 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/setregid.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/setregid.c
|
|
|
c6d234 |
@@ -23,9 +23,7 @@
|
|
|
c6d234 |
#include <string.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__setregid (rgid, egid)
|
|
|
c6d234 |
- gid_t rgid;
|
|
|
c6d234 |
- gid_t egid;
|
|
|
c6d234 |
+__setregid (gid_t rgid, gid_t egid)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
auth_t newauth;
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/setreuid.c b/sysdeps/mach/hurd/setreuid.c
|
|
|
c6d234 |
index 72d42c7e15289c18..b68e1e8d43ad44ca 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/setreuid.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/setreuid.c
|
|
|
c6d234 |
@@ -23,9 +23,7 @@
|
|
|
c6d234 |
#include <string.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__setreuid (ruid, euid)
|
|
|
c6d234 |
- uid_t ruid;
|
|
|
c6d234 |
- uid_t euid;
|
|
|
c6d234 |
+__setreuid (uid_t ruid, uid_t euid)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
auth_t newauth;
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/settimeofday.c b/sysdeps/mach/hurd/settimeofday.c
|
|
|
c6d234 |
index ce9bfafa9002f388..6f7fa007b21ff67e 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/settimeofday.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/settimeofday.c
|
|
|
c6d234 |
@@ -23,9 +23,7 @@
|
|
|
c6d234 |
/* Set the current time of day and timezone information.
|
|
|
c6d234 |
This call is restricted to the super-user. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__settimeofday (tv, tz)
|
|
|
c6d234 |
- const struct timeval *tv;
|
|
|
c6d234 |
- const struct timezone *tz;
|
|
|
c6d234 |
+__settimeofday (const struct timeval *tv, const struct timezone *tz)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
mach_port_t hostpriv;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/setuid.c b/sysdeps/mach/hurd/setuid.c
|
|
|
c6d234 |
index b749159528988ee8..dcf98b6b48d34f01 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/setuid.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/setuid.c
|
|
|
c6d234 |
@@ -27,8 +27,7 @@
|
|
|
c6d234 |
and effective user IDs, and the saved set-user-ID to UID;
|
|
|
c6d234 |
if not, the effective user ID is set to UID. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__setuid (uid)
|
|
|
c6d234 |
- uid_t uid;
|
|
|
c6d234 |
+__setuid (uid_t uid)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
auth_t newauth;
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/shutdown.c b/sysdeps/mach/hurd/shutdown.c
|
|
|
c6d234 |
index 8cf9d2fbc21e68b8..c2b643896c5a62ab 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/shutdown.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/shutdown.c
|
|
|
c6d234 |
@@ -29,9 +29,7 @@
|
|
|
c6d234 |
Returns 0 on success, -1 for errors. */
|
|
|
c6d234 |
/* XXX should be __shutdown ? */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-shutdown (fd, how)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- int how;
|
|
|
c6d234 |
+shutdown (int fd, int how)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err = HURD_DPORT_USE (fd, __socket_shutdown (port, how));
|
|
|
c6d234 |
if (err)
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/sigaction.c b/sysdeps/mach/hurd/sigaction.c
|
|
|
c6d234 |
index 5e97dcdb13a8170b..6e2c738e8aa03c1c 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/sigaction.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/sigaction.c
|
|
|
c6d234 |
@@ -25,10 +25,7 @@
|
|
|
c6d234 |
/* If ACT is not NULL, change the action for SIG to *ACT.
|
|
|
c6d234 |
If OACT is not NULL, put the old action for SIG in *OACT. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__sigaction (sig, act, oact)
|
|
|
c6d234 |
- int sig;
|
|
|
c6d234 |
- const struct sigaction *act;
|
|
|
c6d234 |
- struct sigaction *oact;
|
|
|
c6d234 |
+__sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct hurd_sigstate *ss;
|
|
|
c6d234 |
struct sigaction a, old;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/sigaltstack.c b/sysdeps/mach/hurd/sigaltstack.c
|
|
|
c6d234 |
index cf87b0059021a5a5..6feea790903f9742 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/sigaltstack.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/sigaltstack.c
|
|
|
c6d234 |
@@ -22,9 +22,7 @@
|
|
|
c6d234 |
/* Run signals handlers on the stack specified by SS (if not NULL).
|
|
|
c6d234 |
If OSS is not NULL, it is filled in with the old signal stack status. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__sigaltstack (argss, oss)
|
|
|
c6d234 |
- const struct sigaltstack *argss;
|
|
|
c6d234 |
- struct sigaltstack *oss;
|
|
|
c6d234 |
+__sigaltstack (const struct sigaltstack *argss, struct sigaltstack *oss)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct hurd_sigstate *s;
|
|
|
c6d234 |
struct sigaltstack ss, old;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/sigpending.c b/sysdeps/mach/hurd/sigpending.c
|
|
|
c6d234 |
index 59e5a8e69a8fddff..28c5e3590234db98 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/sigpending.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/sigpending.c
|
|
|
c6d234 |
@@ -24,8 +24,7 @@
|
|
|
c6d234 |
/* Store in SET all signals that are blocked and pending. */
|
|
|
c6d234 |
/* XXX should be __sigpending ? */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-sigpending (set)
|
|
|
c6d234 |
- sigset_t *set;
|
|
|
c6d234 |
+sigpending (sigset_t *set)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct hurd_sigstate *ss;
|
|
|
c6d234 |
sigset_t pending;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/sigprocmask.c b/sysdeps/mach/hurd/sigprocmask.c
|
|
|
c6d234 |
index e90a5f3ebbaa335f..ee62563f3a90bd73 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/sigprocmask.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/sigprocmask.c
|
|
|
c6d234 |
@@ -25,10 +25,7 @@
|
|
|
c6d234 |
according to HOW, which may be SIG_BLOCK, SIG_UNBLOCK or SIG_SETMASK.
|
|
|
c6d234 |
If OSET is not NULL, store the old set of blocked signals in *OSET. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__sigprocmask (how, set, oset)
|
|
|
c6d234 |
- int how;
|
|
|
c6d234 |
- const sigset_t *set;
|
|
|
c6d234 |
- sigset_t *oset;
|
|
|
c6d234 |
+__sigprocmask (int how, const sigset_t *set, sigset_t *oset)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct hurd_sigstate *ss;
|
|
|
c6d234 |
sigset_t old, new;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/sigsuspend.c b/sysdeps/mach/hurd/sigsuspend.c
|
|
|
c6d234 |
index 3e611f80afc4b662..10ff5ca6a97d5566 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/sigsuspend.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/sigsuspend.c
|
|
|
c6d234 |
@@ -25,8 +25,7 @@
|
|
|
c6d234 |
/* Change the set of blocked signals to SET,
|
|
|
c6d234 |
wait until a signal arrives, and restore the set of blocked signals. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__sigsuspend (set)
|
|
|
c6d234 |
- const sigset_t *set;
|
|
|
c6d234 |
+__sigsuspend (const sigset_t *set)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct hurd_sigstate *ss;
|
|
|
c6d234 |
sigset_t newmask, oldmask, pending;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/socket.c b/sysdeps/mach/hurd/socket.c
|
|
|
c6d234 |
index 00f57b5fbeb9d006..1a0c1f94197b9da8 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/socket.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/socket.c
|
|
|
c6d234 |
@@ -26,10 +26,7 @@
|
|
|
c6d234 |
protocol PROTOCOL. If PROTOCOL is zero, one is chosen automatically.
|
|
|
c6d234 |
Returns a file descriptor for the new socket, or -1 for errors. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__socket (domain, type, protocol)
|
|
|
c6d234 |
- int domain;
|
|
|
c6d234 |
- int type;
|
|
|
c6d234 |
- int protocol;
|
|
|
c6d234 |
+__socket (int domain, int type, int protocol)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
socket_t sock, server;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/symlink.c b/sysdeps/mach/hurd/symlink.c
|
|
|
c6d234 |
index 0754b1893b03d839..eac5f5ba70d4d409 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/symlink.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/symlink.c
|
|
|
c6d234 |
@@ -23,9 +23,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Make a link to FROM called TO. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__symlink (from, to)
|
|
|
c6d234 |
- const char *from;
|
|
|
c6d234 |
- const char *to;
|
|
|
c6d234 |
+__symlink (const char *from, const char *to)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
file_t dir, node;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/symlinkat.c b/sysdeps/mach/hurd/symlinkat.c
|
|
|
c6d234 |
index ff11ecdc166bc1a3..5342444451ef71c7 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/symlinkat.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/symlinkat.c
|
|
|
c6d234 |
@@ -28,10 +28,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Make a link to FROM called TO relative to FD. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-symlinkat (from, fd, to)
|
|
|
c6d234 |
- const char *from;
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- const char *to;
|
|
|
c6d234 |
+symlinkat (const char *from, int fd, const char *to)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
file_t dir, node;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/telldir.c b/sysdeps/mach/hurd/telldir.c
|
|
|
c6d234 |
index 983e1fc667e9d7ce..bae50b10b60050a5 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/telldir.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/telldir.c
|
|
|
c6d234 |
@@ -25,8 +25,7 @@
|
|
|
c6d234 |
/* Return the current position of DIRP. */
|
|
|
c6d234 |
/* XXX should be __telldir ? */
|
|
|
c6d234 |
long int
|
|
|
c6d234 |
-telldir (dirp)
|
|
|
c6d234 |
- DIR *dirp;
|
|
|
c6d234 |
+telldir (DIR *dirp)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return dirp->__entry_ptr;
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/truncate.c b/sysdeps/mach/hurd/truncate.c
|
|
|
c6d234 |
index d93daffda751f6b1..6c530493ecc5ee07 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/truncate.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/truncate.c
|
|
|
c6d234 |
@@ -23,9 +23,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Truncate FILE_NAME to LENGTH bytes. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__truncate (file_name, length)
|
|
|
c6d234 |
- const char *file_name;
|
|
|
c6d234 |
- off_t length;
|
|
|
c6d234 |
+__truncate (const char *file_name, off_t length)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
file_t file = __file_name_lookup (file_name, O_WRITE, 0);
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/umask.c b/sysdeps/mach/hurd/umask.c
|
|
|
c6d234 |
index 81d6d69f03ec172d..a7f0ca479a3d344f 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/umask.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/umask.c
|
|
|
c6d234 |
@@ -20,8 +20,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Set the file creation mask to MASK, returning the old mask. */
|
|
|
c6d234 |
mode_t
|
|
|
c6d234 |
-__umask (mask)
|
|
|
c6d234 |
- mode_t mask;
|
|
|
c6d234 |
+__umask (mode_t mask)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
mode_t omask;
|
|
|
c6d234 |
mask &= 0777;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/unlink.c b/sysdeps/mach/hurd/unlink.c
|
|
|
c6d234 |
index e3a0b419c41fdde1..fe6f092348b1954f 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/unlink.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/unlink.c
|
|
|
c6d234 |
@@ -23,8 +23,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Remove the link named NAME. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__unlink (name)
|
|
|
c6d234 |
- const char *name;
|
|
|
c6d234 |
+__unlink (const char *name)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
file_t dir;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/unlinkat.c b/sysdeps/mach/hurd/unlinkat.c
|
|
|
c6d234 |
index 7ee4d37a64d0063b..a756446a9315789c 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/unlinkat.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/unlinkat.c
|
|
|
c6d234 |
@@ -26,10 +26,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Remove the link named NAME. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-unlinkat (fd, name, flag)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- const char *name;
|
|
|
c6d234 |
- int flag;
|
|
|
c6d234 |
+unlinkat (int fd, const char *name, int flag)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
error_t err;
|
|
|
c6d234 |
file_t dir;
|
|
|
c6d234 |
diff --git a/sysdeps/mips/mips64/__longjmp.c b/sysdeps/mips/mips64/__longjmp.c
|
|
|
c6d234 |
index a6f31cb5adfd8ff8..608dee8ab1eb16ea 100644
|
|
|
c6d234 |
--- a/sysdeps/mips/mips64/__longjmp.c
|
|
|
c6d234 |
+++ b/sysdeps/mips/mips64/__longjmp.c
|
|
|
c6d234 |
@@ -26,9 +26,7 @@
|
|
|
c6d234 |
#endif
|
|
|
c6d234 |
|
|
|
c6d234 |
void
|
|
|
c6d234 |
-__longjmp (env_arg, val_arg)
|
|
|
c6d234 |
- __jmp_buf env_arg;
|
|
|
c6d234 |
- int val_arg;
|
|
|
c6d234 |
+__longjmp (__jmp_buf env_arg, int val_arg)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
/* gcc 1.39.19 miscompiled the longjmp routine (as it did setjmp before
|
|
|
c6d234 |
the hack around it); force it to use $a1 for the longjmp value.
|
|
|
c6d234 |
diff --git a/sysdeps/posix/alarm.c b/sysdeps/posix/alarm.c
|
|
|
c6d234 |
index 730f2c4c770baa61..2b731c9d73e18301 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/alarm.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/alarm.c
|
|
|
c6d234 |
@@ -26,8 +26,7 @@
|
|
|
c6d234 |
to 0 and check its value after calling `alarm', and this might tell you.
|
|
|
c6d234 |
The signal may come late due to processor scheduling. */
|
|
|
c6d234 |
unsigned int
|
|
|
c6d234 |
-alarm (seconds)
|
|
|
c6d234 |
- unsigned int seconds;
|
|
|
c6d234 |
+alarm (unsigned int seconds)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct itimerval old, new;
|
|
|
c6d234 |
unsigned int retval;
|
|
|
c6d234 |
diff --git a/sysdeps/posix/cuserid.c b/sysdeps/posix/cuserid.c
|
|
|
c6d234 |
index 2134f6835282512e..891b5f53c4d5b298 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/cuserid.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/cuserid.c
|
|
|
c6d234 |
@@ -25,8 +25,7 @@
|
|
|
c6d234 |
If S is not NULL, it points to a buffer of at least L_cuserid bytes
|
|
|
c6d234 |
into which the name is copied; otherwise, a static buffer is used. */
|
|
|
c6d234 |
char *
|
|
|
c6d234 |
-cuserid (s)
|
|
|
c6d234 |
- char *s;
|
|
|
c6d234 |
+cuserid (char *s)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
static char name[L_cuserid];
|
|
|
c6d234 |
char buf[NSS_BUFLEN_PASSWD];
|
|
|
c6d234 |
diff --git a/sysdeps/posix/dirfd.c b/sysdeps/posix/dirfd.c
|
|
|
c6d234 |
index 536c44e30e4bdd08..e841863e2e8fb81a 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/dirfd.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/dirfd.c
|
|
|
c6d234 |
@@ -22,8 +22,7 @@
|
|
|
c6d234 |
#undef dirfd
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-dirfd (dirp)
|
|
|
c6d234 |
- DIR *dirp;
|
|
|
c6d234 |
+dirfd (DIR *dirp)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return dirp->fd;
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/sysdeps/posix/dup.c b/sysdeps/posix/dup.c
|
|
|
c6d234 |
index ff9eab3d27b16cbf..da65148ea9975903 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/dup.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/dup.c
|
|
|
c6d234 |
@@ -22,8 +22,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Duplicate FD, returning a new file descriptor open on the same file. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__dup (fd)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
+__dup (int fd)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return fcntl (fd, F_DUPFD, 0);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/sysdeps/posix/dup2.c b/sysdeps/posix/dup2.c
|
|
|
c6d234 |
index 3dafd83abcb47ac3..e4a009d7a286c689 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/dup2.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/dup2.c
|
|
|
c6d234 |
@@ -23,9 +23,7 @@
|
|
|
c6d234 |
/* Duplicate FD to FD2, closing the old FD2 and making FD2 be
|
|
|
c6d234 |
open the same file as FD is. Return FD2 or -1. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__dup2 (fd, fd2)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- int fd2;
|
|
|
c6d234 |
+__dup2 (int fd, int fd2)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int save;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/posix/euidaccess.c b/sysdeps/posix/euidaccess.c
|
|
|
c6d234 |
index e7901866bddce39b..2250ec90e50746cb 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/euidaccess.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/euidaccess.c
|
|
|
c6d234 |
@@ -117,9 +117,7 @@ int group_member ();
|
|
|
c6d234 |
filesystem, text busy, etc. */
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-euidaccess (path, mode)
|
|
|
c6d234 |
- const char *path;
|
|
|
c6d234 |
- int mode;
|
|
|
c6d234 |
+euidaccess (const char *path, int mode)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct stat64 stats;
|
|
|
c6d234 |
int granted;
|
|
|
c6d234 |
@@ -196,9 +194,7 @@ weak_alias (__euidaccess, eaccess)
|
|
|
c6d234 |
char *program_name;
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-main (argc, argv)
|
|
|
c6d234 |
- int argc;
|
|
|
c6d234 |
- char **argv;
|
|
|
c6d234 |
+main (int argc, char **argv)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
char *file;
|
|
|
c6d234 |
int mode;
|
|
|
c6d234 |
diff --git a/sysdeps/posix/flock.c b/sysdeps/posix/flock.c
|
|
|
c6d234 |
index 4b9b9ac9ce990922..39ccdeb1a2e24ba4 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/flock.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/flock.c
|
|
|
c6d234 |
@@ -27,9 +27,7 @@
|
|
|
c6d234 |
/* Apply or remove an advisory lock, according to OPERATION,
|
|
|
c6d234 |
on the file FD refers to. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__flock (fd, operation)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- int operation;
|
|
|
c6d234 |
+__flock (int fd, int operation)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct flock lbuf;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c
|
|
|
c6d234 |
index 7b072fa3ca155929..f5b33d2361a31ec4 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/fpathconf.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/fpathconf.c
|
|
|
c6d234 |
@@ -27,9 +27,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Get file-specific information about descriptor FD. */
|
|
|
c6d234 |
long int
|
|
|
c6d234 |
-__fpathconf (fd, name)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- int name;
|
|
|
c6d234 |
+__fpathconf (int fd, int name)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
if (fd < 0)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
diff --git a/sysdeps/posix/getcwd.c b/sysdeps/posix/getcwd.c
|
|
|
c6d234 |
index 366abb34575c5809..2df6e6e26efc566e 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/getcwd.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/getcwd.c
|
|
|
c6d234 |
@@ -218,9 +218,7 @@ static int __rtld_have_atfcts;
|
|
|
c6d234 |
unless SIZE == 0, in which case it is as big as necessary. */
|
|
|
c6d234 |
|
|
|
c6d234 |
GETCWD_RETURN_TYPE
|
|
|
c6d234 |
-__getcwd (buf, size)
|
|
|
c6d234 |
- char *buf;
|
|
|
c6d234 |
- size_t size;
|
|
|
c6d234 |
+__getcwd (char *buf, size_t size)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
#ifndef __ASSUME_ATFCTS
|
|
|
c6d234 |
static const char dots[]
|
|
|
c6d234 |
diff --git a/sysdeps/posix/gethostname.c b/sysdeps/posix/gethostname.c
|
|
|
c6d234 |
index a63845b02bd651f0..8510c58066a356e7 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/gethostname.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/gethostname.c
|
|
|
c6d234 |
@@ -24,9 +24,7 @@
|
|
|
c6d234 |
The result is null-terminated if LEN is large enough for the full
|
|
|
c6d234 |
name and the terminator. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__gethostname (name, len)
|
|
|
c6d234 |
- char *name;
|
|
|
c6d234 |
- size_t len;
|
|
|
c6d234 |
+__gethostname (char *name, size_t len)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct utsname buf;
|
|
|
c6d234 |
size_t node_len;
|
|
|
c6d234 |
diff --git a/sysdeps/posix/gettimeofday.c b/sysdeps/posix/gettimeofday.c
|
|
|
c6d234 |
index 1108ff016705d73d..6ee918585713a95a 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/gettimeofday.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/gettimeofday.c
|
|
|
c6d234 |
@@ -23,9 +23,7 @@
|
|
|
c6d234 |
putting it into *TV and *TZ. If TZ is NULL, *TZ is not filled.
|
|
|
c6d234 |
Returns 0 on success, -1 on errors. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__gettimeofday (tv, tz)
|
|
|
c6d234 |
- struct timeval *tv;
|
|
|
c6d234 |
- struct timezone *tz;
|
|
|
c6d234 |
+__gettimeofday (struct timeval *tv, struct timezone *tz)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
if (tv == NULL)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
diff --git a/sysdeps/posix/isatty.c b/sysdeps/posix/isatty.c
|
|
|
c6d234 |
index 0226bf4f7d447506..16ce14c0963bd40d 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/isatty.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/isatty.c
|
|
|
c6d234 |
@@ -20,8 +20,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Return 1 if FD is a terminal, 0 if not. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__isatty (fd)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
+__isatty (int fd)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct termios term;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/posix/killpg.c b/sysdeps/posix/killpg.c
|
|
|
c6d234 |
index 570ac90b562da74b..7e4918621e293ba6 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/killpg.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/killpg.c
|
|
|
c6d234 |
@@ -23,9 +23,7 @@
|
|
|
c6d234 |
If PGRP is zero, send SIG to all processes in
|
|
|
c6d234 |
the current process's process group. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-killpg (pgrp, sig)
|
|
|
c6d234 |
- __pid_t pgrp;
|
|
|
c6d234 |
- int sig;
|
|
|
c6d234 |
+killpg (__pid_t pgrp, int sig)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
if (pgrp < 0)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
diff --git a/sysdeps/posix/libc_fatal.c b/sysdeps/posix/libc_fatal.c
|
|
|
c6d234 |
index 6b741297ce818235..c74bc5818cb33778 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/libc_fatal.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/libc_fatal.c
|
|
|
c6d234 |
@@ -164,8 +164,7 @@ __libc_message (int do_abort, const char *fmt, ...)
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
void
|
|
|
c6d234 |
-__libc_fatal (message)
|
|
|
c6d234 |
- const char *message;
|
|
|
c6d234 |
+__libc_fatal (const char *message)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
/* The loop is added only to keep gcc happy. */
|
|
|
c6d234 |
while (1)
|
|
|
c6d234 |
diff --git a/sysdeps/posix/mkfifoat.c b/sysdeps/posix/mkfifoat.c
|
|
|
c6d234 |
index 33fa6bde7118aa83..cc752e5a0891dd54 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/mkfifoat.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/mkfifoat.c
|
|
|
c6d234 |
@@ -21,10 +21,7 @@
|
|
|
c6d234 |
/* Create a new FIFO with permission bits MODE. But interpret
|
|
|
c6d234 |
relative PATH names relative to the directory associated with FD. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-mkfifoat (fd, file, mode)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- const char *file;
|
|
|
c6d234 |
- mode_t mode;
|
|
|
c6d234 |
+mkfifoat (int fd, const char *file, mode_t mode)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
dev_t dev = 0;
|
|
|
c6d234 |
return __xmknodat (_MKNOD_VER, fd, file, mode | S_IFIFO, &dev;;
|
|
|
c6d234 |
diff --git a/sysdeps/posix/raise.c b/sysdeps/posix/raise.c
|
|
|
c6d234 |
index 58d13fc194da5ed6..7d011bd0bdd90080 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/raise.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/raise.c
|
|
|
c6d234 |
@@ -20,8 +20,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Raise the signal SIG. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-raise (sig)
|
|
|
c6d234 |
- int sig;
|
|
|
c6d234 |
+raise (int sig)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return __kill (__getpid (), sig);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/sysdeps/posix/remove.c b/sysdeps/posix/remove.c
|
|
|
c6d234 |
index be0c5ad1280ef50d..135c6359f3c9d5e4 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/remove.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/remove.c
|
|
|
c6d234 |
@@ -27,8 +27,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-remove (file)
|
|
|
c6d234 |
- const char *file;
|
|
|
c6d234 |
+remove (const char *file)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
/* First try to unlink since this is more frequently the necessary action. */
|
|
|
c6d234 |
if (__unlink (file) != 0
|
|
|
c6d234 |
diff --git a/sysdeps/posix/rename.c b/sysdeps/posix/rename.c
|
|
|
c6d234 |
index 8bb6a04c17b15478..4cb2f20bd45ac8e4 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/rename.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/rename.c
|
|
|
c6d234 |
@@ -21,9 +21,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Rename the file OLD to NEW. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-rename (old, new)
|
|
|
c6d234 |
- const char *old;
|
|
|
c6d234 |
- const char *new;
|
|
|
c6d234 |
+rename (const char *old, const char *new)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int save = errno;
|
|
|
c6d234 |
if (__link (old, new) < 0)
|
|
|
c6d234 |
diff --git a/sysdeps/posix/rewinddir.c b/sysdeps/posix/rewinddir.c
|
|
|
c6d234 |
index f8f411e36af7b022..5b91982060c2a140 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/rewinddir.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/rewinddir.c
|
|
|
c6d234 |
@@ -23,8 +23,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Rewind DIRP to the beginning of the directory. */
|
|
|
c6d234 |
void
|
|
|
c6d234 |
-rewinddir (dirp)
|
|
|
c6d234 |
- DIR *dirp;
|
|
|
c6d234 |
+rewinddir (DIR *dirp)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
#if IS_IN (libc)
|
|
|
c6d234 |
__libc_lock_lock (dirp->lock);
|
|
|
c6d234 |
diff --git a/sysdeps/posix/seekdir.c b/sysdeps/posix/seekdir.c
|
|
|
c6d234 |
index 88e34ee28ffa8273..691048137a15d5b4 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/seekdir.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/seekdir.c
|
|
|
c6d234 |
@@ -24,9 +24,7 @@
|
|
|
c6d234 |
/* Seek to position POS in DIRP. */
|
|
|
c6d234 |
/* XXX should be __seekdir ? */
|
|
|
c6d234 |
void
|
|
|
c6d234 |
-seekdir (dirp, pos)
|
|
|
c6d234 |
- DIR *dirp;
|
|
|
c6d234 |
- long int pos;
|
|
|
c6d234 |
+seekdir (DIR *dirp, long int pos)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
__libc_lock_lock (dirp->lock);
|
|
|
c6d234 |
(void) __lseek (dirp->fd, pos, SEEK_SET);
|
|
|
c6d234 |
diff --git a/sysdeps/posix/sigblock.c b/sysdeps/posix/sigblock.c
|
|
|
c6d234 |
index a5d01fe7456ede38..767bd491c4d04d63 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/sigblock.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/sigblock.c
|
|
|
c6d234 |
@@ -22,8 +22,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Block signals in MASK, returning the old mask. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__sigblock (mask)
|
|
|
c6d234 |
- int mask;
|
|
|
c6d234 |
+__sigblock (int mask)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
sigset_t set, oset;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/posix/sigignore.c b/sysdeps/posix/sigignore.c
|
|
|
c6d234 |
index 71e9d087fb5e74af..c0e848bec18912c6 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/sigignore.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/sigignore.c
|
|
|
c6d234 |
@@ -25,8 +25,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-sigignore (sig)
|
|
|
c6d234 |
- int sig;
|
|
|
c6d234 |
+sigignore (int sig)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct sigaction act;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/posix/sigintr.c b/sysdeps/posix/sigintr.c
|
|
|
c6d234 |
index 86ae054d9dcbd828..5bafe610923b25d2 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/sigintr.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/sigintr.c
|
|
|
c6d234 |
@@ -23,9 +23,7 @@
|
|
|
c6d234 |
(causing them to fail with EINTR); if INTERRUPT is zero, make system
|
|
|
c6d234 |
calls be restarted after signal SIG. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-siginterrupt (sig, interrupt)
|
|
|
c6d234 |
- int sig;
|
|
|
c6d234 |
- int interrupt;
|
|
|
c6d234 |
+siginterrupt (int sig, int interrupt)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
#ifdef SA_RESTART
|
|
|
c6d234 |
extern sigset_t _sigintr attribute_hidden; /* Defined in signal.c. */
|
|
|
c6d234 |
diff --git a/sysdeps/posix/signal.c b/sysdeps/posix/signal.c
|
|
|
c6d234 |
index 33805be881729e72..6311cfcfa74749a7 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/signal.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/signal.c
|
|
|
c6d234 |
@@ -27,9 +27,7 @@ sigset_t _sigintr attribute_hidden; /* Set by siginterrupt. */
|
|
|
c6d234 |
/* Set the handler for the signal SIG to HANDLER,
|
|
|
c6d234 |
returning the old handler, or SIG_ERR on error. */
|
|
|
c6d234 |
__sighandler_t
|
|
|
c6d234 |
-__bsd_signal (sig, handler)
|
|
|
c6d234 |
- int sig;
|
|
|
c6d234 |
- __sighandler_t handler;
|
|
|
c6d234 |
+__bsd_signal (int sig, __sighandler_t handler)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct sigaction act, oact;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/posix/sigset.c b/sysdeps/posix/sigset.c
|
|
|
c6d234 |
index a9c9e8174134828b..3b4b8049a6de9f2c 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/sigset.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/sigset.c
|
|
|
c6d234 |
@@ -24,9 +24,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Set the disposition for SIG. */
|
|
|
c6d234 |
__sighandler_t
|
|
|
c6d234 |
-sigset (sig, disp)
|
|
|
c6d234 |
- int sig;
|
|
|
c6d234 |
- __sighandler_t disp;
|
|
|
c6d234 |
+sigset (int sig, __sighandler_t disp)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct sigaction act;
|
|
|
c6d234 |
struct sigaction oact;
|
|
|
c6d234 |
diff --git a/sysdeps/posix/sigsuspend.c b/sysdeps/posix/sigsuspend.c
|
|
|
c6d234 |
index 6b84162525b571a3..63e7c08e48e8e73e 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/sigsuspend.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/sigsuspend.c
|
|
|
c6d234 |
@@ -24,8 +24,7 @@
|
|
|
c6d234 |
/* Change the set of blocked signals to SET,
|
|
|
c6d234 |
wait until a signal arrives, and restore the set of blocked signals. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__sigsuspend (set)
|
|
|
c6d234 |
- const sigset_t *set;
|
|
|
c6d234 |
+__sigsuspend (const sigset_t *set)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
sigset_t oset;
|
|
|
c6d234 |
int save;
|
|
|
c6d234 |
diff --git a/sysdeps/posix/sysconf.c b/sysdeps/posix/sysconf.c
|
|
|
c6d234 |
index 88aa151422dc56f9..4d74d57c8a65dc29 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/sysconf.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/sysconf.c
|
|
|
c6d234 |
@@ -48,8 +48,7 @@ static long int __sysconf_check_spec (const char *spec);
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Get the value of the system variable NAME. */
|
|
|
c6d234 |
long int
|
|
|
c6d234 |
-__sysconf (name)
|
|
|
c6d234 |
- int name;
|
|
|
c6d234 |
+__sysconf (int name)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
switch (name)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
diff --git a/sysdeps/posix/sysv_signal.c b/sysdeps/posix/sysv_signal.c
|
|
|
c6d234 |
index f280696233042b09..a8fb2b157578e90a 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/sysv_signal.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/sysv_signal.c
|
|
|
c6d234 |
@@ -34,9 +34,7 @@
|
|
|
c6d234 |
/* Set the handler for the signal SIG to HANDLER,
|
|
|
c6d234 |
returning the old handler, or SIG_ERR on error. */
|
|
|
c6d234 |
__sighandler_t
|
|
|
c6d234 |
-__sysv_signal (sig, handler)
|
|
|
c6d234 |
- int sig;
|
|
|
c6d234 |
- __sighandler_t handler;
|
|
|
c6d234 |
+__sysv_signal (int sig, __sighandler_t handler)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct sigaction act, oact;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/posix/time.c b/sysdeps/posix/time.c
|
|
|
c6d234 |
index e026a384df6fbd6d..39042030f20235b4 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/time.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/time.c
|
|
|
c6d234 |
@@ -23,8 +23,7 @@
|
|
|
c6d234 |
/* Return the current time as a `time_t' and also put it in *T if T is
|
|
|
c6d234 |
not NULL. Time is represented as seconds from Jan 1 00:00:00 1970. */
|
|
|
c6d234 |
time_t
|
|
|
c6d234 |
-time (t)
|
|
|
c6d234 |
- time_t *t;
|
|
|
c6d234 |
+time (time_t *t)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct timeval tv;
|
|
|
c6d234 |
time_t result;
|
|
|
c6d234 |
diff --git a/sysdeps/posix/ttyname.c b/sysdeps/posix/ttyname.c
|
|
|
c6d234 |
index 1fe985984591559f..16af52c5083bbd62 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/ttyname.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/ttyname.c
|
|
|
c6d234 |
@@ -35,12 +35,7 @@ libc_freeres_ptr (static char *getttyname_name);
|
|
|
c6d234 |
|
|
|
c6d234 |
static char *
|
|
|
c6d234 |
internal_function
|
|
|
c6d234 |
-getttyname (fd, mydev, myino, save, dostat)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- dev_t mydev;
|
|
|
c6d234 |
- ino_t myino;
|
|
|
c6d234 |
- int save;
|
|
|
c6d234 |
- int *dostat;
|
|
|
c6d234 |
+getttyname (int fd, dev_t mydev, ino_t myino, int save, int *dostat)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
static const char dev[] = "/dev";
|
|
|
c6d234 |
static size_t namelen;
|
|
|
c6d234 |
@@ -101,8 +96,7 @@ getttyname (fd, mydev, myino, save, dostat)
|
|
|
c6d234 |
/* Return the pathname of the terminal FD is open on, or NULL on errors.
|
|
|
c6d234 |
The returned storage is good only until the next call to this function. */
|
|
|
c6d234 |
char *
|
|
|
c6d234 |
-ttyname (fd)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
+ttyname (int fd)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct stat st;
|
|
|
c6d234 |
int dostat = 0;
|
|
|
c6d234 |
diff --git a/sysdeps/posix/ttyname_r.c b/sysdeps/posix/ttyname_r.c
|
|
|
c6d234 |
index e8ef55fc19a3d3c8..bf8399d36d0e4541 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/ttyname_r.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/ttyname_r.c
|
|
|
c6d234 |
@@ -101,10 +101,7 @@ getttyname_r (fd, buf, buflen, mydev, myino, save, dostat)
|
|
|
c6d234 |
/* Store at most BUFLEN character of the pathname of the terminal FD is
|
|
|
c6d234 |
open on in BUF. Return 0 on success, otherwise an error number. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__ttyname_r (fd, buf, buflen)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- char *buf;
|
|
|
c6d234 |
- size_t buflen;
|
|
|
c6d234 |
+__ttyname_r (int fd, char *buf, size_t buflen)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct stat st;
|
|
|
c6d234 |
int dostat = 0;
|
|
|
c6d234 |
diff --git a/sysdeps/posix/utime.c b/sysdeps/posix/utime.c
|
|
|
c6d234 |
index a750ecc290f6f678..a031fbe9da00f2be 100644
|
|
|
c6d234 |
--- a/sysdeps/posix/utime.c
|
|
|
c6d234 |
+++ b/sysdeps/posix/utime.c
|
|
|
c6d234 |
@@ -26,9 +26,7 @@
|
|
|
c6d234 |
/* Set the access and modification times of FILE to those given in TIMES.
|
|
|
c6d234 |
If TIMES is NULL, set them to the current time. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-utime (file, times)
|
|
|
c6d234 |
- const char *file;
|
|
|
c6d234 |
- const struct utimbuf *times;
|
|
|
c6d234 |
+utime (const char *file, const struct utimbuf *times)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct timeval timevals[2];
|
|
|
c6d234 |
struct timeval *tvp;
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/fpu/s_isnan.c b/sysdeps/powerpc/fpu/s_isnan.c
|
|
|
c6d234 |
index 777d3518f6ec5afb..cd396eb7369ea1e4 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/fpu/s_isnan.c
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/fpu/s_isnan.c
|
|
|
c6d234 |
@@ -36,8 +36,7 @@ hidden_proto (__isnanf)
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__isnan (x)
|
|
|
c6d234 |
- double x;
|
|
|
c6d234 |
+__isnan (double x)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
fenv_t savedstate;
|
|
|
c6d234 |
int result;
|
|
|
c6d234 |
diff --git a/sysdeps/pthread/aio_read.c b/sysdeps/pthread/aio_read.c
|
|
|
c6d234 |
index d02eb7b855611492..7ffeb29abafb5257 100644
|
|
|
c6d234 |
--- a/sysdeps/pthread/aio_read.c
|
|
|
c6d234 |
+++ b/sysdeps/pthread/aio_read.c
|
|
|
c6d234 |
@@ -23,8 +23,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-aio_read (aiocbp)
|
|
|
c6d234 |
- struct aiocb *aiocbp;
|
|
|
c6d234 |
+aio_read (struct aiocb *aiocbp)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return (__aio_enqueue_request ((aiocb_union *) aiocbp, LIO_READ) == NULL
|
|
|
c6d234 |
? -1 : 0);
|
|
|
c6d234 |
diff --git a/sysdeps/pthread/aio_read64.c b/sysdeps/pthread/aio_read64.c
|
|
|
c6d234 |
index 2fcf39fb9156421c..d426a05c5a902eaa 100644
|
|
|
c6d234 |
--- a/sysdeps/pthread/aio_read64.c
|
|
|
c6d234 |
+++ b/sysdeps/pthread/aio_read64.c
|
|
|
c6d234 |
@@ -23,8 +23,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-aio_read64 (aiocbp)
|
|
|
c6d234 |
- struct aiocb64 *aiocbp;
|
|
|
c6d234 |
+aio_read64 (struct aiocb64 *aiocbp)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return (__aio_enqueue_request ((aiocb_union *) aiocbp, LIO_READ64) == NULL
|
|
|
c6d234 |
? -1 : 0);
|
|
|
c6d234 |
diff --git a/sysdeps/pthread/aio_write.c b/sysdeps/pthread/aio_write.c
|
|
|
c6d234 |
index 823e365c867ef251..0ad0fde8640016ed 100644
|
|
|
c6d234 |
--- a/sysdeps/pthread/aio_write.c
|
|
|
c6d234 |
+++ b/sysdeps/pthread/aio_write.c
|
|
|
c6d234 |
@@ -23,8 +23,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-aio_write (aiocbp)
|
|
|
c6d234 |
- struct aiocb *aiocbp;
|
|
|
c6d234 |
+aio_write (struct aiocb *aiocbp)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return (__aio_enqueue_request ((aiocb_union *) aiocbp, LIO_WRITE) == NULL
|
|
|
c6d234 |
? -1 : 0);
|
|
|
c6d234 |
diff --git a/sysdeps/pthread/aio_write64.c b/sysdeps/pthread/aio_write64.c
|
|
|
c6d234 |
index 0cec64d292d490b4..1d3905a4b6437ebe 100644
|
|
|
c6d234 |
--- a/sysdeps/pthread/aio_write64.c
|
|
|
c6d234 |
+++ b/sysdeps/pthread/aio_write64.c
|
|
|
c6d234 |
@@ -23,8 +23,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-aio_write64 (aiocbp)
|
|
|
c6d234 |
- struct aiocb64 *aiocbp;
|
|
|
c6d234 |
+aio_write64 (struct aiocb64 *aiocbp)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return (__aio_enqueue_request ((aiocb_union *) aiocbp, LIO_WRITE64) == NULL
|
|
|
c6d234 |
? -1 : 0);
|
|
|
c6d234 |
diff --git a/sysdeps/s390/ffs.c b/sysdeps/s390/ffs.c
|
|
|
c6d234 |
index 1e22f635939284c0..a01c5e3060badf81 100644
|
|
|
c6d234 |
--- a/sysdeps/s390/ffs.c
|
|
|
c6d234 |
+++ b/sysdeps/s390/ffs.c
|
|
|
c6d234 |
@@ -29,8 +29,7 @@
|
|
|
c6d234 |
differs in spirit from the above ffz (man ffs). */
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__ffs (x)
|
|
|
c6d234 |
- int x;
|
|
|
c6d234 |
+__ffs (int x)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int r;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/sparc/sparc32/e_sqrt.c b/sysdeps/sparc/sparc32/e_sqrt.c
|
|
|
c6d234 |
index 30165192c65854c6..f47e9601f00d0d2e 100644
|
|
|
c6d234 |
--- a/sysdeps/sparc/sparc32/e_sqrt.c
|
|
|
c6d234 |
+++ b/sysdeps/sparc/sparc32/e_sqrt.c
|
|
|
c6d234 |
@@ -24,8 +24,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Return the square root of X. */
|
|
|
c6d234 |
double
|
|
|
c6d234 |
-__ieee754_sqrt (x)
|
|
|
c6d234 |
- double x;
|
|
|
c6d234 |
+__ieee754_sqrt (double x)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
register double result;
|
|
|
c6d234 |
asm ("fsqrtd %1, %0" : "=f" (result) : "f" (x));
|
|
|
c6d234 |
diff --git a/sysdeps/tile/wordcopy.c b/sysdeps/tile/wordcopy.c
|
|
|
c6d234 |
index f978d8fdcb14e73a..d939eaa09d0075a8 100644
|
|
|
c6d234 |
--- a/sysdeps/tile/wordcopy.c
|
|
|
c6d234 |
+++ b/sysdeps/tile/wordcopy.c
|
|
|
c6d234 |
@@ -42,10 +42,7 @@
|
|
|
c6d234 |
Both SRCP and DSTP should be aligned for memory operations on `op_t's. */
|
|
|
c6d234 |
|
|
|
c6d234 |
void
|
|
|
c6d234 |
-_wordcopy_fwd_aligned (dstp, srcp, len)
|
|
|
c6d234 |
- long int dstp;
|
|
|
c6d234 |
- long int srcp;
|
|
|
c6d234 |
- size_t len;
|
|
|
c6d234 |
+_wordcopy_fwd_aligned (long int dstp, long int srcp, size_t len)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
op_t a0, a1;
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -156,10 +153,7 @@ _wordcopy_fwd_aligned (dstp, srcp, len)
|
|
|
c6d234 |
*not* be aligned. */
|
|
|
c6d234 |
|
|
|
c6d234 |
void
|
|
|
c6d234 |
-_wordcopy_fwd_dest_aligned (dstp, srcp, len)
|
|
|
c6d234 |
- long int dstp;
|
|
|
c6d234 |
- long int srcp;
|
|
|
c6d234 |
- size_t len;
|
|
|
c6d234 |
+_wordcopy_fwd_dest_aligned (long int dstp, long int srcp, size_t len)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
void * srci;
|
|
|
c6d234 |
op_t a0, a1, a2, a3;
|
|
|
c6d234 |
@@ -246,10 +240,7 @@ _wordcopy_fwd_dest_aligned (dstp, srcp, len)
|
|
|
c6d234 |
operations on `op_t's. */
|
|
|
c6d234 |
|
|
|
c6d234 |
void
|
|
|
c6d234 |
-_wordcopy_bwd_aligned (dstp, srcp, len)
|
|
|
c6d234 |
- long int dstp;
|
|
|
c6d234 |
- long int srcp;
|
|
|
c6d234 |
- size_t len;
|
|
|
c6d234 |
+_wordcopy_bwd_aligned (long int dstp, long int srcp, size_t len)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
op_t a0, a1;
|
|
|
c6d234 |
long int srcp1;
|
|
|
c6d234 |
@@ -357,10 +348,7 @@ _wordcopy_bwd_aligned (dstp, srcp, len)
|
|
|
c6d234 |
operations on `op_t', but SRCP must *not* be aligned. */
|
|
|
c6d234 |
|
|
|
c6d234 |
void
|
|
|
c6d234 |
-_wordcopy_bwd_dest_aligned (dstp, srcp, len)
|
|
|
c6d234 |
- long int dstp;
|
|
|
c6d234 |
- long int srcp;
|
|
|
c6d234 |
- size_t len;
|
|
|
c6d234 |
+_wordcopy_bwd_dest_aligned (long int dstp, long int srcp, size_t len)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
void * srci;
|
|
|
c6d234 |
op_t a0, a1, a2, a3;
|
|
|
c6d234 |
diff --git a/sysdeps/unix/bsd/ftime.c b/sysdeps/unix/bsd/ftime.c
|
|
|
c6d234 |
index 7c6dd29390dccff6..c7dda3fea71e96a9 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/bsd/ftime.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/bsd/ftime.c
|
|
|
c6d234 |
@@ -19,8 +19,7 @@
|
|
|
c6d234 |
#include <sys/time.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-ftime (timebuf)
|
|
|
c6d234 |
- struct timeb *timebuf;
|
|
|
c6d234 |
+ftime (struct timeb *timebuf)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct timeval tv;
|
|
|
c6d234 |
struct timezone tz;
|
|
|
c6d234 |
diff --git a/sysdeps/unix/bsd/gtty.c b/sysdeps/unix/bsd/gtty.c
|
|
|
c6d234 |
index 4e1b7a2153e69578..8fd6e8a0e2742713 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/bsd/gtty.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/bsd/gtty.c
|
|
|
c6d234 |
@@ -20,9 +20,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Fill in *PARAMS with terminal parameters associated with FD. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-gtty (fd, params)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- struct sgttyb *params;
|
|
|
c6d234 |
+gtty (int fd, struct sgttyb *params)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return ioctl (fd, TIOCGETP, (void *) params);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/sysdeps/unix/bsd/stty.c b/sysdeps/unix/bsd/stty.c
|
|
|
c6d234 |
index 1d630dc0b9ad365d..a13876028bf5d953 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/bsd/stty.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/bsd/stty.c
|
|
|
c6d234 |
@@ -20,9 +20,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Set the terminal parameters associated with FD to *PARAMS. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-stty (fd, params)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- const struct sgttyb *params;
|
|
|
c6d234 |
+stty (int fd, const struct sgttyb *params)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return ioctl (fd, TIOCSETP, (void *) params);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/sysdeps/unix/bsd/tcflow.c b/sysdeps/unix/bsd/tcflow.c
|
|
|
c6d234 |
index dff63a5f28582165..4461395baa46836b 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/bsd/tcflow.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/bsd/tcflow.c
|
|
|
c6d234 |
@@ -24,9 +24,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Suspend or restart transmission on FD. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-tcflow (fd, action)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- int action;
|
|
|
c6d234 |
+tcflow (int fd, int action)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
switch (action)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
diff --git a/sysdeps/unix/bsd/tcflush.c b/sysdeps/unix/bsd/tcflush.c
|
|
|
c6d234 |
index 15d86e00541872fc..c87201222017d3d8 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/bsd/tcflush.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/bsd/tcflush.c
|
|
|
c6d234 |
@@ -24,9 +24,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Flush pending data on FD. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-tcflush (fd, queue_selector)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- int queue_selector;
|
|
|
c6d234 |
+tcflush (int fd, int queue_selector)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int arg;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/unix/bsd/tcgetattr.c b/sysdeps/unix/bsd/tcgetattr.c
|
|
|
c6d234 |
index 140262f17d82fbdf..93b94e57d5d0752b 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/bsd/tcgetattr.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/bsd/tcgetattr.c
|
|
|
c6d234 |
@@ -30,9 +30,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Put the state of FD into *TERMIOS_P. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__tcgetattr (fd, termios_p)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- struct termios *termios_p;
|
|
|
c6d234 |
+__tcgetattr (int fd, struct termios *termios_p)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return __ioctl (fd, TIOCGETA, termios_p);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/sysdeps/unix/bsd/tcgetpgrp.c b/sysdeps/unix/bsd/tcgetpgrp.c
|
|
|
c6d234 |
index 6f675a89a86f62ba..3bfb74082963493e 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/bsd/tcgetpgrp.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/bsd/tcgetpgrp.c
|
|
|
c6d234 |
@@ -22,8 +22,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Return the foreground process group ID of FD. */
|
|
|
c6d234 |
pid_t
|
|
|
c6d234 |
-tcgetpgrp (fd)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
+tcgetpgrp (int fd)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int pgrp;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/unix/bsd/tcsendbrk.c b/sysdeps/unix/bsd/tcsendbrk.c
|
|
|
c6d234 |
index af6a71b34de0165c..61216f7442dfe468 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/bsd/tcsendbrk.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/bsd/tcsendbrk.c
|
|
|
c6d234 |
@@ -27,9 +27,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Send zero bits on FD. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-tcsendbreak (fd, duration)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- int duration;
|
|
|
c6d234 |
+tcsendbreak (int fd, int duration)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct timeval delay;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/unix/bsd/tcsetattr.c b/sysdeps/unix/bsd/tcsetattr.c
|
|
|
c6d234 |
index 8a5f71e713a2d17c..89b315a2e77aa314 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/bsd/tcsetattr.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/bsd/tcsetattr.c
|
|
|
c6d234 |
@@ -32,10 +32,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Set the state of FD to *TERMIOS_P. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-tcsetattr (fd, optional_actions, termios_p)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- int optional_actions;
|
|
|
c6d234 |
- const struct termios *termios_p;
|
|
|
c6d234 |
+tcsetattr (int fd, int optional_actions, const struct termios *termios_p)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct termios myt;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/unix/bsd/tcsetpgrp.c b/sysdeps/unix/bsd/tcsetpgrp.c
|
|
|
c6d234 |
index 25ffb7fc35d5fc70..3d3347ee7cf1e9ad 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/bsd/tcsetpgrp.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/bsd/tcsetpgrp.c
|
|
|
c6d234 |
@@ -22,9 +22,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Set the foreground process group ID of FD set PGRP_ID. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-tcsetpgrp (fd, pgrp_id)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- pid_t pgrp_id;
|
|
|
c6d234 |
+tcsetpgrp (int fd, pid_t pgrp_id)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return __ioctl (fd, TIOCSPGRP, &pgrp_id);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/sysdeps/unix/bsd/ualarm.c b/sysdeps/unix/bsd/ualarm.c
|
|
|
c6d234 |
index 9505d214819d68d5..c2f899baa5c05b05 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/bsd/ualarm.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/bsd/ualarm.c
|
|
|
c6d234 |
@@ -24,9 +24,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
Returns the number of microseconds remaining before the alarm. */
|
|
|
c6d234 |
useconds_t
|
|
|
c6d234 |
-ualarm (value, interval)
|
|
|
c6d234 |
- useconds_t value;
|
|
|
c6d234 |
- useconds_t interval;
|
|
|
c6d234 |
+ualarm (useconds_t value, useconds_t interval)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct itimerval timer, otimer;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/unix/bsd/wait3.c b/sysdeps/unix/bsd/wait3.c
|
|
|
c6d234 |
index d3056c1fd700b3df..97170d15ad34a4d9 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/bsd/wait3.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/bsd/wait3.c
|
|
|
c6d234 |
@@ -25,10 +25,7 @@
|
|
|
c6d234 |
there. If the WUNTRACED bit is set in OPTIONS, return status for stopped
|
|
|
c6d234 |
children; otherwise don't. */
|
|
|
c6d234 |
pid_t
|
|
|
c6d234 |
-__wait3 (stat_loc, options, usage)
|
|
|
c6d234 |
- __WAIT_STATUS stat_loc;
|
|
|
c6d234 |
- int options;
|
|
|
c6d234 |
- struct rusage *usage;
|
|
|
c6d234 |
+__wait3 (__WAIT_STATUS stat_loc, int options, struct rusage *usage)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return __wait4 (WAIT_ANY, stat_loc, options, usage);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/sysdeps/unix/getlogin_r.c b/sysdeps/unix/getlogin_r.c
|
|
|
c6d234 |
index 84c019fe6af28150..1957db10b51b3721 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/getlogin_r.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/getlogin_r.c
|
|
|
c6d234 |
@@ -34,9 +34,7 @@
|
|
|
c6d234 |
STATIC
|
|
|
c6d234 |
#endif
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-getlogin_r (name, name_len)
|
|
|
c6d234 |
- char *name;
|
|
|
c6d234 |
- size_t name_len;
|
|
|
c6d234 |
+getlogin_r (char *name, size_t name_len)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
char tty_pathname[2 + 2 * NAME_MAX];
|
|
|
c6d234 |
char *real_tty_path = tty_pathname;
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sockatmark.c b/sysdeps/unix/sockatmark.c
|
|
|
c6d234 |
index 94ae1384462fecdb..30f76c2d7a504cc9 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sockatmark.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sockatmark.c
|
|
|
c6d234 |
@@ -20,8 +20,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Determine wheter socket is at a out-of-band mark. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-sockatmark (fd)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
+sockatmark (int fd)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int answ;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/unix/stime.c b/sysdeps/unix/stime.c
|
|
|
c6d234 |
index ca011c94d820f88f..77895a7cea558010 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/stime.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/stime.c
|
|
|
c6d234 |
@@ -23,8 +23,7 @@
|
|
|
c6d234 |
/* Set the system clock to *WHEN. */
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-stime (when)
|
|
|
c6d234 |
- const time_t *when;
|
|
|
c6d234 |
+stime (const time_t *when)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct timeval tv;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/_exit.c b/sysdeps/unix/sysv/linux/_exit.c
|
|
|
c6d234 |
index 18c4fce07d10f5cb..44773888ae6d702a 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/_exit.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/_exit.c
|
|
|
c6d234 |
@@ -23,8 +23,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
void
|
|
|
c6d234 |
-_exit (status)
|
|
|
c6d234 |
- int status;
|
|
|
c6d234 |
+_exit (int status)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
while (1)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/aio_sigqueue.c b/sysdeps/unix/sysv/linux/aio_sigqueue.c
|
|
|
c6d234 |
index 9ad149fe32fb214b..2ae83f1c2e6f6673 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/aio_sigqueue.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/aio_sigqueue.c
|
|
|
c6d234 |
@@ -31,10 +31,8 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Return any pending signal or wait for one for the given time. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__aio_sigqueue (sig, val, caller_pid)
|
|
|
c6d234 |
- int sig;
|
|
|
c6d234 |
- const union sigval val;
|
|
|
c6d234 |
- pid_t caller_pid;
|
|
|
c6d234 |
+internal_function
|
|
|
c6d234 |
+__aio_sigqueue (int sig, const union sigval val, pid_t caller_pid)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
siginfo_t info;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/arm/sigaction.c b/sysdeps/unix/sysv/linux/arm/sigaction.c
|
|
|
c6d234 |
index 02b47e79e2139e0e..5214b34289a74545 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/arm/sigaction.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/arm/sigaction.c
|
|
|
c6d234 |
@@ -55,10 +55,7 @@ extern void __default_rt_sa_restorer_v2(void);
|
|
|
c6d234 |
/* If ACT is not NULL, change the action for SIG to *ACT.
|
|
|
c6d234 |
If OACT is not NULL, put the old action for SIG in *OACT. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__libc_sigaction (sig, act, oact)
|
|
|
c6d234 |
- int sig;
|
|
|
c6d234 |
- const struct sigaction *act;
|
|
|
c6d234 |
- struct sigaction *oact;
|
|
|
c6d234 |
+__libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int result;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/faccessat.c b/sysdeps/unix/sysv/linux/faccessat.c
|
|
|
c6d234 |
index b015d55cab193ccc..abacaed1eb4e00da 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/faccessat.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/faccessat.c
|
|
|
c6d234 |
@@ -29,11 +29,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-faccessat (fd, file, mode, flag)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- const char *file;
|
|
|
c6d234 |
- int mode;
|
|
|
c6d234 |
- int flag;
|
|
|
c6d234 |
+faccessat (int fd, const char *file, int mode, int flag)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
if (flag & ~(AT_SYMLINK_NOFOLLOW | AT_EACCESS))
|
|
|
c6d234 |
{
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/fchmodat.c b/sysdeps/unix/sysv/linux/fchmodat.c
|
|
|
c6d234 |
index b9a033b0736ce129..fc743fdfe116cf21 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/fchmodat.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/fchmodat.c
|
|
|
c6d234 |
@@ -28,11 +28,7 @@
|
|
|
c6d234 |
#include <sysdep.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-fchmodat (fd, file, mode, flag)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- const char *file;
|
|
|
c6d234 |
- mode_t mode;
|
|
|
c6d234 |
- int flag;
|
|
|
c6d234 |
+fchmodat (int fd, const char *file, mode_t mode, int flag)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
if (flag & ~AT_SYMLINK_NOFOLLOW)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/fpathconf.c b/sysdeps/unix/sysv/linux/fpathconf.c
|
|
|
c6d234 |
index 1e840edfa687d667..378a42c3e0e8dd0d 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/fpathconf.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/fpathconf.c
|
|
|
c6d234 |
@@ -29,9 +29,7 @@ static long int posix_fpathconf (int fd, int name);
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Get file-specific information about descriptor FD. */
|
|
|
c6d234 |
long int
|
|
|
c6d234 |
-__fpathconf (fd, name)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- int name;
|
|
|
c6d234 |
+__fpathconf (int fd, int name)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct statfs fsbuf;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/gai_sigqueue.c b/sysdeps/unix/sysv/linux/gai_sigqueue.c
|
|
|
c6d234 |
index 3896df0cd345bc8b..4da7fbbef40f03e8 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/gai_sigqueue.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/gai_sigqueue.c
|
|
|
c6d234 |
@@ -30,10 +30,8 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Return any pending signal or wait for one for the given time. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__gai_sigqueue (sig, val, caller_pid)
|
|
|
c6d234 |
- int sig;
|
|
|
c6d234 |
- const union sigval val;
|
|
|
c6d234 |
- pid_t caller_pid;
|
|
|
c6d234 |
+internal_function
|
|
|
c6d234 |
+__gai_sigqueue (int sig, const union sigval val, pid_t caller_pid)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
siginfo_t info;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/gethostid.c b/sysdeps/unix/sysv/linux/gethostid.c
|
|
|
c6d234 |
index c9f4b4cbcbad6bdb..64100abcc7ece115 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/gethostid.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/gethostid.c
|
|
|
c6d234 |
@@ -27,8 +27,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
#ifdef SET_PROCEDURE
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-sethostid (id)
|
|
|
c6d234 |
- long int id;
|
|
|
c6d234 |
+sethostid (long int id)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int fd;
|
|
|
c6d234 |
ssize_t written;
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/getlogin_r.c b/sysdeps/unix/sysv/linux/getlogin_r.c
|
|
|
c6d234 |
index 187a7a1dcf197a79..157f8a661a5d24ad 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/getlogin_r.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/getlogin_r.c
|
|
|
c6d234 |
@@ -32,9 +32,7 @@ static int getlogin_r_fd0 (char *name, size_t namesize);
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
attribute_hidden
|
|
|
c6d234 |
-__getlogin_r_loginuid (name, namesize)
|
|
|
c6d234 |
- char *name;
|
|
|
c6d234 |
- size_t namesize;
|
|
|
c6d234 |
+__getlogin_r_loginuid (char *name, size_t namesize)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int fd = open_not_cancel_2 ("/proc/self/loginuid", O_RDONLY);
|
|
|
c6d234 |
if (fd == -1)
|
|
|
c6d234 |
@@ -109,9 +107,7 @@ __getlogin_r_loginuid (name, namesize)
|
|
|
c6d234 |
code. Otherwise return 0. */
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-getlogin_r (name, namesize)
|
|
|
c6d234 |
- char *name;
|
|
|
c6d234 |
- size_t namesize;
|
|
|
c6d234 |
+getlogin_r (char *name, size_t namesize)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int res = __getlogin_r_loginuid (name, namesize);
|
|
|
c6d234 |
if (res >= 0)
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/getpt.c b/sysdeps/unix/sysv/linux/getpt.c
|
|
|
c6d234 |
index 30b14067e8811b08..4b6be2e9520e2ef9 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/getpt.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/getpt.c
|
|
|
c6d234 |
@@ -35,8 +35,7 @@ int __bsd_getpt (void);
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Open a master pseudo terminal and return its file descriptor. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__posix_openpt (oflag)
|
|
|
c6d234 |
- int oflag;
|
|
|
c6d234 |
+__posix_openpt (int oflag)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
static int have_no_dev_ptmx;
|
|
|
c6d234 |
int fd;
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/i386/getmsg.c b/sysdeps/unix/sysv/linux/i386/getmsg.c
|
|
|
c6d234 |
index 12881b25afd546fe..c9133c89c7053705 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/i386/getmsg.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/i386/getmsg.c
|
|
|
c6d234 |
@@ -24,11 +24,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
#ifdef __NR_getpmsg
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-getmsg (fildes, ctlptr, dataptr, flagsp)
|
|
|
c6d234 |
- int fildes;
|
|
|
c6d234 |
- struct strbuf *ctlptr;
|
|
|
c6d234 |
- struct strbuf *dataptr;
|
|
|
c6d234 |
- int *flagsp;
|
|
|
c6d234 |
+getmsg (int fildes, struct strbuf *ctlptr, struct strbuf *dataptr, int *flagsp)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return INLINE_SYSCALL (getpmsg, 5, fildes, ctlptr, dataptr, NULL, flagsp);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/i386/setegid.c b/sysdeps/unix/sysv/linux/i386/setegid.c
|
|
|
c6d234 |
index 20170e327e2a631d..0d663fba929525e9 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/i386/setegid.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/i386/setegid.c
|
|
|
c6d234 |
@@ -21,8 +21,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-setegid (gid)
|
|
|
c6d234 |
- gid_t gid;
|
|
|
c6d234 |
+setegid (gid_t gid)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int result;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/ia64/sigaction.c b/sysdeps/unix/sysv/linux/ia64/sigaction.c
|
|
|
c6d234 |
index 403b6d8fd0c9b92f..cce54adabc1aa386 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/ia64/sigaction.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/ia64/sigaction.c
|
|
|
c6d234 |
@@ -34,10 +34,7 @@
|
|
|
c6d234 |
/* If ACT is not NULL, change the action for SIG to *ACT.
|
|
|
c6d234 |
If OACT is not NULL, put the old action for SIG in *OACT. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__libc_sigaction (sig, act, oact)
|
|
|
c6d234 |
- int sig;
|
|
|
c6d234 |
- const struct sigaction *act;
|
|
|
c6d234 |
- struct sigaction *oact;
|
|
|
c6d234 |
+__libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
/* XXX The size argument hopefully will have to be changed to the
|
|
|
c6d234 |
real size of the user-level sigset_t. */
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/ia64/sigpending.c b/sysdeps/unix/sysv/linux/ia64/sigpending.c
|
|
|
c6d234 |
index c56147c97802108b..a281fe1bb5dbc9e9 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/ia64/sigpending.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/ia64/sigpending.c
|
|
|
c6d234 |
@@ -28,8 +28,7 @@
|
|
|
c6d234 |
/* Change the set of blocked signals to SET,
|
|
|
c6d234 |
wait until a signal arrives, and restore the set of blocked signals. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-sigpending (set)
|
|
|
c6d234 |
- sigset_t *set;
|
|
|
c6d234 |
+sigpending (sigset_t *set)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
/* XXX The size argument hopefully will have to be changed to the
|
|
|
c6d234 |
real size of the user-level sigset_t. */
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/ia64/sigprocmask.c b/sysdeps/unix/sysv/linux/ia64/sigprocmask.c
|
|
|
c6d234 |
index 97fd364073bfd4f4..7465c9f61bc1ec32 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/ia64/sigprocmask.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/ia64/sigprocmask.c
|
|
|
c6d234 |
@@ -29,10 +29,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Get and/or change the set of blocked signals. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__sigprocmask (how, set, oset)
|
|
|
c6d234 |
- int how;
|
|
|
c6d234 |
- const sigset_t *set;
|
|
|
c6d234 |
- sigset_t *oset;
|
|
|
c6d234 |
+__sigprocmask (int how, const sigset_t *set, sigset_t *oset)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
|
|
|
c6d234 |
/* XXX The size argument hopefully will have to be changed to the
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/mips/sigaction.c b/sysdeps/unix/sysv/linux/mips/sigaction.c
|
|
|
c6d234 |
index b6e6811a271344a3..76eb278349808a32 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/mips/sigaction.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/mips/sigaction.c
|
|
|
c6d234 |
@@ -45,10 +45,7 @@ static void restore (void) asm ("__restore");
|
|
|
c6d234 |
/* If ACT is not NULL, change the action for SIG to *ACT.
|
|
|
c6d234 |
If OACT is not NULL, put the old action for SIG in *OACT. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__libc_sigaction (sig, act, oact)
|
|
|
c6d234 |
- int sig;
|
|
|
c6d234 |
- const struct sigaction *act;
|
|
|
c6d234 |
- struct sigaction *oact;
|
|
|
c6d234 |
+__libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int result;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/msgget.c b/sysdeps/unix/sysv/linux/msgget.c
|
|
|
c6d234 |
index 6f32b4579bba8e06..183273e4f0f1af42 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/msgget.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/msgget.c
|
|
|
c6d234 |
@@ -28,9 +28,7 @@
|
|
|
c6d234 |
parameter describes how to proceed with clashing of key values. */
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-msgget (key, msgflg)
|
|
|
c6d234 |
- key_t key;
|
|
|
c6d234 |
- int msgflg;
|
|
|
c6d234 |
+msgget (key_t key, int msgflg)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return INLINE_SYSCALL (ipc, 5, IPCOP_msgget, key, msgflg, 0, NULL);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c b/sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
|
|
|
c6d234 |
index 494d898b2f07530a..d8d0214f9a1332a0 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
|
|
|
c6d234 |
@@ -24,9 +24,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Truncate the file referenced by FD to LENGTH bytes. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__ftruncate64 (fd, length)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- off64_t length;
|
|
|
c6d234 |
+__ftruncate64 (int fd, off64_t length)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
/* On PPC32 64bit values are aligned in odd/even register pairs. */
|
|
|
c6d234 |
int result = INLINE_SYSCALL (ftruncate64, 4, fd, 0,
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c b/sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
|
|
|
c6d234 |
index 6f416599e9ebdd1d..c97410f4076fa835 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
|
|
|
c6d234 |
@@ -24,9 +24,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Truncate the file referenced by FD to LENGTH bytes. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-truncate64 (path, length)
|
|
|
c6d234 |
- const char *path;
|
|
|
c6d234 |
- off64_t length;
|
|
|
c6d234 |
+truncate64 (const char *path, off64_t length)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
/* On PPC32 64bit values are aligned in odd/even register pairs. */
|
|
|
c6d234 |
int result = INLINE_SYSCALL (truncate64, 4, path, 0,
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c b/sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
|
|
|
c6d234 |
index 58004063e4e044c3..ff4ae7d00dc1a137 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
|
|
|
c6d234 |
@@ -32,10 +32,7 @@
|
|
|
c6d234 |
/* If ACT is not NULL, change the action for SIG to *ACT.
|
|
|
c6d234 |
If OACT is not NULL, put the old action for SIG in *OACT. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__libc_sigaction (sig, act, oact)
|
|
|
c6d234 |
- int sig;
|
|
|
c6d234 |
- const struct sigaction *act;
|
|
|
c6d234 |
- struct sigaction *oact;
|
|
|
c6d234 |
+__libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
/* XXX The size argument hopefully will have to be changed to the
|
|
|
c6d234 |
real size of the user-level sigset_t. */
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c b/sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c
|
|
|
c6d234 |
index e3bae5492d61923f..0e1a7852e41f1214 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c
|
|
|
c6d234 |
@@ -28,8 +28,7 @@
|
|
|
c6d234 |
/* Change the set of blocked signals to SET,
|
|
|
c6d234 |
wait until a signal arrives, and restore the set of blocked signals. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-sigpending (set)
|
|
|
c6d234 |
- sigset_t *set;
|
|
|
c6d234 |
+sigpending (sigset_t *set)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
/* XXX The size argument hopefully will have to be changed to the
|
|
|
c6d234 |
real size of the user-level sigset_t. */
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c b/sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
|
|
|
c6d234 |
index c96ee352323ae791..af30e9401eac5b92 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
|
|
|
c6d234 |
@@ -27,10 +27,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Get and/or change the set of blocked signals. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__sigprocmask (how, set, oset)
|
|
|
c6d234 |
- int how;
|
|
|
c6d234 |
- const sigset_t *set;
|
|
|
c6d234 |
- sigset_t *oset;
|
|
|
c6d234 |
+__sigprocmask (int how, const sigset_t *set, sigset_t *oset)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
|
|
|
c6d234 |
/* XXX The size argument hopefully will have to be changed to the
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/semget.c b/sysdeps/unix/sysv/linux/semget.c
|
|
|
c6d234 |
index 8b69e64e136ad582..30c0e00b7d5f9cd2 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/semget.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/semget.c
|
|
|
c6d234 |
@@ -28,10 +28,7 @@
|
|
|
c6d234 |
KEY. */
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-semget (key, nsems, semflg)
|
|
|
c6d234 |
- key_t key;
|
|
|
c6d234 |
- int nsems;
|
|
|
c6d234 |
- int semflg;
|
|
|
c6d234 |
+semget (key_t key, int nsems, int semflg)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return INLINE_SYSCALL (ipc, 5, IPCOP_semget, key, nsems, semflg, NULL);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/semop.c b/sysdeps/unix/sysv/linux/semop.c
|
|
|
c6d234 |
index 4cd6891976858cc2..9dd3519bb3a33918 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/semop.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/semop.c
|
|
|
c6d234 |
@@ -26,10 +26,7 @@
|
|
|
c6d234 |
/* Perform user-defined atomical operation of array of semaphores. */
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-semop (semid, sops, nsops)
|
|
|
c6d234 |
- int semid;
|
|
|
c6d234 |
- struct sembuf *sops;
|
|
|
c6d234 |
- size_t nsops;
|
|
|
c6d234 |
+semop (int semid, struct sembuf *sops, size_t nsops)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return INLINE_SYSCALL (ipc, 5, IPCOP_semop, semid, (int) nsops, 0, sops);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/setrlimit64.c b/sysdeps/unix/sysv/linux/setrlimit64.c
|
|
|
c6d234 |
index 5ab8068e50f59b4b..44aa2f452f8bc0d1 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/setrlimit64.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/setrlimit64.c
|
|
|
c6d234 |
@@ -25,9 +25,7 @@
|
|
|
c6d234 |
Only the super-user can increase hard limits.
|
|
|
c6d234 |
Return 0 if successful, -1 if not (and sets errno). */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-setrlimit64 (resource, rlimits)
|
|
|
c6d234 |
- enum __rlimit_resource resource;
|
|
|
c6d234 |
- const struct rlimit64 *rlimits;
|
|
|
c6d234 |
+setrlimit64 (enum __rlimit_resource resource, const struct rlimit64 *rlimits)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
#ifdef __ASSUME_PRLIMIT64
|
|
|
c6d234 |
return INLINE_SYSCALL (prlimit64, 4, 0, resource, rlimits, NULL);
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/shmat.c b/sysdeps/unix/sysv/linux/shmat.c
|
|
|
c6d234 |
index 401f00b7c01a6a14..02ed357ffa1cbd12 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/shmat.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/shmat.c
|
|
|
c6d234 |
@@ -29,10 +29,7 @@
|
|
|
c6d234 |
and where the segment is attached. */
|
|
|
c6d234 |
|
|
|
c6d234 |
void *
|
|
|
c6d234 |
-shmat (shmid, shmaddr, shmflg)
|
|
|
c6d234 |
- int shmid;
|
|
|
c6d234 |
- const void *shmaddr;
|
|
|
c6d234 |
- int shmflg;
|
|
|
c6d234 |
+shmat (int shmid, const void *shmaddr, int shmflg)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
INTERNAL_SYSCALL_DECL(err);
|
|
|
c6d234 |
unsigned long resultvar;
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/shmdt.c b/sysdeps/unix/sysv/linux/shmdt.c
|
|
|
c6d234 |
index c7fd62d3c1c82ffb..fd503c5054133cb5 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/shmdt.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/shmdt.c
|
|
|
c6d234 |
@@ -27,8 +27,7 @@
|
|
|
c6d234 |
from the caller's data segment. */
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-shmdt (shmaddr)
|
|
|
c6d234 |
- const void *shmaddr;
|
|
|
c6d234 |
+shmdt (const void *shmaddr)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return INLINE_SYSCALL (ipc, 5, IPCOP_shmdt, 0, 0, 0, (void *) shmaddr);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/shmget.c b/sysdeps/unix/sysv/linux/shmget.c
|
|
|
c6d234 |
index 60d448a3bca43508..244321f35da55f95 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/shmget.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/shmget.c
|
|
|
c6d234 |
@@ -28,10 +28,7 @@
|
|
|
c6d234 |
which is associated with KEY. */
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-shmget (key, size, shmflg)
|
|
|
c6d234 |
- key_t key;
|
|
|
c6d234 |
- size_t size;
|
|
|
c6d234 |
- int shmflg;
|
|
|
c6d234 |
+shmget (key_t key, size_t size, int shmflg)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return INLINE_SYSCALL (ipc, 5, IPCOP_shmget, key, size, shmflg, NULL);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/sigaction.c b/sysdeps/unix/sysv/linux/sigaction.c
|
|
|
c6d234 |
index 0eee8e6b0322399a..37bf4e85f892be81 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/sigaction.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/sigaction.c
|
|
|
c6d234 |
@@ -33,10 +33,7 @@
|
|
|
c6d234 |
/* If ACT is not NULL, change the action for SIG to *ACT.
|
|
|
c6d234 |
If OACT is not NULL, put the old action for SIG in *OACT. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__libc_sigaction (sig, act, oact)
|
|
|
c6d234 |
- int sig;
|
|
|
c6d234 |
- const struct sigaction *act;
|
|
|
c6d234 |
- struct sigaction *oact;
|
|
|
c6d234 |
+__libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int result;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/sigpending.c b/sysdeps/unix/sysv/linux/sigpending.c
|
|
|
c6d234 |
index bd6126143923ab8e..312e71f603a50d59 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/sigpending.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/sigpending.c
|
|
|
c6d234 |
@@ -28,8 +28,7 @@
|
|
|
c6d234 |
/* Change the set of blocked signals to SET,
|
|
|
c6d234 |
wait until a signal arrives, and restore the set of blocked signals. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-sigpending (set)
|
|
|
c6d234 |
- sigset_t *set;
|
|
|
c6d234 |
+sigpending (sigset_t *set)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return INLINE_SYSCALL (rt_sigpending, 2, set, _NSIG / 8);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/sigprocmask.c b/sysdeps/unix/sysv/linux/sigprocmask.c
|
|
|
c6d234 |
index 8d69613049c9629c..4b171201b75a747e 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/sigprocmask.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/sigprocmask.c
|
|
|
c6d234 |
@@ -28,10 +28,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Get and/or change the set of blocked signals. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__sigprocmask (how, set, oset)
|
|
|
c6d234 |
- int how;
|
|
|
c6d234 |
- const sigset_t *set;
|
|
|
c6d234 |
- sigset_t *oset;
|
|
|
c6d234 |
+__sigprocmask (int how, const sigset_t *set, sigset_t *oset)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
#ifdef SIGCANCEL
|
|
|
c6d234 |
sigset_t local_newmask;
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/sigqueue.c b/sysdeps/unix/sysv/linux/sigqueue.c
|
|
|
c6d234 |
index e4470d4ca660f9b8..703e60b28ae54321 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/sigqueue.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/sigqueue.c
|
|
|
c6d234 |
@@ -26,10 +26,7 @@
|
|
|
c6d234 |
#ifdef __NR_rt_sigqueueinfo
|
|
|
c6d234 |
/* Return any pending signal or wait for one for the given time. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__sigqueue (pid, sig, val)
|
|
|
c6d234 |
- pid_t pid;
|
|
|
c6d234 |
- int sig;
|
|
|
c6d234 |
- const union sigval val;
|
|
|
c6d234 |
+__sigqueue (pid_t pid, int sig, const union sigval val)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
siginfo_t info;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/sigstack.c b/sysdeps/unix/sysv/linux/sigstack.c
|
|
|
c6d234 |
index 81e752bf4cbbfa35..13cb3552244a2879 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/sigstack.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/sigstack.c
|
|
|
c6d234 |
@@ -24,9 +24,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
#ifdef __NR_sigaltstack
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-sigstack (ss, oss)
|
|
|
c6d234 |
- struct sigstack *ss;
|
|
|
c6d234 |
- struct sigstack *oss;
|
|
|
c6d234 |
+sigstack (struct sigstack *ss, struct sigstack *oss)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
stack_t sas;
|
|
|
c6d234 |
stack_t *sasp = NULL;
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c b/sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c
|
|
|
c6d234 |
index 7548435ca29ae294..06a0d93ec1821173 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c
|
|
|
c6d234 |
@@ -25,8 +25,7 @@
|
|
|
c6d234 |
/* Change the set of blocked signals to SET,
|
|
|
c6d234 |
wait until a signal arrives, and restore the set of blocked signals. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-sigpending (set)
|
|
|
c6d234 |
- sigset_t *set;
|
|
|
c6d234 |
+sigpending (sigset_t *set)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
/* XXX The size argument hopefully will have to be changed to the
|
|
|
c6d234 |
real size of the user-level sigset_t. */
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c b/sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
|
|
|
c6d234 |
index 60f95b4f554d7966..2e8d3bed5a0a299e 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
|
|
|
c6d234 |
@@ -24,10 +24,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Get and/or change the set of blocked signals. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__sigprocmask (how, set, oset)
|
|
|
c6d234 |
- int how;
|
|
|
c6d234 |
- const sigset_t *set;
|
|
|
c6d234 |
- sigset_t *oset;
|
|
|
c6d234 |
+__sigprocmask (int how, const sigset_t *set, sigset_t *oset)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
/* XXX The size argument hopefully will have to be changed to the
|
|
|
c6d234 |
real size of the user-level sigset_t. */
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/speed.c b/sysdeps/unix/sysv/linux/speed.c
|
|
|
c6d234 |
index e41a9c0399c5c581..7be18dc3f7093a4c 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/speed.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/speed.c
|
|
|
c6d234 |
@@ -35,8 +35,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Return the output baud rate stored in *TERMIOS_P. */
|
|
|
c6d234 |
speed_t
|
|
|
c6d234 |
-cfgetospeed (termios_p)
|
|
|
c6d234 |
- const struct termios *termios_p;
|
|
|
c6d234 |
+cfgetospeed (const struct termios *termios_p)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return termios_p->c_cflag & (CBAUD | CBAUDEX);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
@@ -46,8 +45,7 @@ cfgetospeed (termios_p)
|
|
|
c6d234 |
speed, the numerical 0 is a special case for the input baud rate. It
|
|
|
c6d234 |
should set the input baud rate to the output baud rate. */
|
|
|
c6d234 |
speed_t
|
|
|
c6d234 |
-cfgetispeed (termios_p)
|
|
|
c6d234 |
- const struct termios *termios_p;
|
|
|
c6d234 |
+cfgetispeed (const struct termios *termios_p)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return ((termios_p->c_iflag & IBAUD0)
|
|
|
c6d234 |
? 0 : termios_p->c_cflag & (CBAUD | CBAUDEX));
|
|
|
c6d234 |
@@ -55,9 +53,7 @@ cfgetispeed (termios_p)
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Set the output baud rate stored in *TERMIOS_P to SPEED. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-cfsetospeed (termios_p, speed)
|
|
|
c6d234 |
- struct termios *termios_p;
|
|
|
c6d234 |
- speed_t speed;
|
|
|
c6d234 |
+cfsetospeed (struct termios *termios_p, speed_t speed)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
if ((speed & ~CBAUD) != 0
|
|
|
c6d234 |
&& (speed < B57600 || speed > __MAX_BAUD))
|
|
|
c6d234 |
@@ -82,9 +78,7 @@ libc_hidden_def (cfsetospeed)
|
|
|
c6d234 |
speed, the numerical 0 is a special case for the input baud rate. It
|
|
|
c6d234 |
should set the input baud rate to the output baud rate. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-cfsetispeed (termios_p, speed)
|
|
|
c6d234 |
- struct termios *termios_p;
|
|
|
c6d234 |
- speed_t speed;
|
|
|
c6d234 |
+cfsetispeed (struct termios *termios_p, speed_t speed)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
if ((speed & ~CBAUD) != 0
|
|
|
c6d234 |
&& (speed < B57600 || speed > __MAX_BAUD))
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/tcflow.c b/sysdeps/unix/sysv/linux/tcflow.c
|
|
|
c6d234 |
index 6c0a2390b5852ed1..e494581da46466f6 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/tcflow.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/tcflow.c
|
|
|
c6d234 |
@@ -22,9 +22,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Suspend or restart transmission on FD. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-tcflow (fd, action)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- int action;
|
|
|
c6d234 |
+tcflow (int fd, int action)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return __ioctl (fd, TCXONC, action);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/tcflush.c b/sysdeps/unix/sysv/linux/tcflush.c
|
|
|
c6d234 |
index 72b89e3c1431da6a..5eb5a31694fbc7d6 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/tcflush.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/tcflush.c
|
|
|
c6d234 |
@@ -22,9 +22,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Flush pending data on FD. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-tcflush (fd, queue_selector)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- int queue_selector;
|
|
|
c6d234 |
+tcflush (int fd, int queue_selector)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return __ioctl (fd, TCFLSH, queue_selector);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/tcgetattr.c b/sysdeps/unix/sysv/linux/tcgetattr.c
|
|
|
c6d234 |
index d05b5f3a0693110c..a4f5e99b768c5116 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/tcgetattr.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/tcgetattr.c
|
|
|
c6d234 |
@@ -30,9 +30,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Put the state of FD into *TERMIOS_P. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__tcgetattr (fd, termios_p)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- struct termios *termios_p;
|
|
|
c6d234 |
+__tcgetattr (int fd, struct termios *termios_p)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct __kernel_termios k_termios;
|
|
|
c6d234 |
int retval;
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/tcsetattr.c b/sysdeps/unix/sysv/linux/tcsetattr.c
|
|
|
c6d234 |
index 62ed93993f3ede81..7409e30270735c11 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/tcsetattr.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/tcsetattr.c
|
|
|
c6d234 |
@@ -41,10 +41,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Set the state of FD to *TERMIOS_P. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-tcsetattr (fd, optional_actions, termios_p)
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
- int optional_actions;
|
|
|
c6d234 |
- const struct termios *termios_p;
|
|
|
c6d234 |
+tcsetattr (int fd, int optional_actions, const struct termios *termios_p)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct __kernel_termios k_termios;
|
|
|
c6d234 |
unsigned long int cmd;
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/time.c b/sysdeps/unix/sysv/linux/time.c
|
|
|
c6d234 |
index a73783e3629b3bbd..f3aa234bd2c5c9eb 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/time.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/time.c
|
|
|
c6d234 |
@@ -23,8 +23,7 @@
|
|
|
c6d234 |
#ifdef __NR_time
|
|
|
c6d234 |
|
|
|
c6d234 |
time_t
|
|
|
c6d234 |
-time (t)
|
|
|
c6d234 |
- time_t *t;
|
|
|
c6d234 |
+time (time_t *t)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
INTERNAL_SYSCALL_DECL (err);
|
|
|
c6d234 |
time_t res = INTERNAL_SYSCALL (time, err, 1, NULL);
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/x86_64/sigpending.c b/sysdeps/unix/sysv/linux/x86_64/sigpending.c
|
|
|
c6d234 |
index 7e448c0327cbcd19..16dd2e72f83a6431 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/x86_64/sigpending.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/x86_64/sigpending.c
|
|
|
c6d234 |
@@ -28,8 +28,7 @@
|
|
|
c6d234 |
/* Change the set of blocked signals to SET,
|
|
|
c6d234 |
wait until a signal arrives, and restore the set of blocked signals. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-sigpending (set)
|
|
|
c6d234 |
- sigset_t *set;
|
|
|
c6d234 |
+sigpending (sigset_t *set)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
/* XXX The size argument hopefully will have to be changed to the
|
|
|
c6d234 |
real size of the user-level sigset_t. */
|
|
|
c6d234 |
diff --git a/sysdeps/unix/sysv/linux/x86_64/sigprocmask.c b/sysdeps/unix/sysv/linux/x86_64/sigprocmask.c
|
|
|
c6d234 |
index 210fd97f9f33521e..8e7e9ffa34077f56 100644
|
|
|
c6d234 |
--- a/sysdeps/unix/sysv/linux/x86_64/sigprocmask.c
|
|
|
c6d234 |
+++ b/sysdeps/unix/sysv/linux/x86_64/sigprocmask.c
|
|
|
c6d234 |
@@ -28,10 +28,7 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Get and/or change the set of blocked signals. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__sigprocmask (how, set, oset)
|
|
|
c6d234 |
- int how;
|
|
|
c6d234 |
- const sigset_t *set;
|
|
|
c6d234 |
- sigset_t *oset;
|
|
|
c6d234 |
+__sigprocmask (int how, const sigset_t *set, sigset_t *oset)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
|
|
|
c6d234 |
/* XXX The size argument hopefully will have to be changed to the
|
|
|
c6d234 |
diff --git a/sysdeps/x86_64/backtrace.c b/sysdeps/x86_64/backtrace.c
|
|
|
c6d234 |
index 8d6599ac1e3780ac..753a003f0368e10d 100644
|
|
|
c6d234 |
--- a/sysdeps/x86_64/backtrace.c
|
|
|
c6d234 |
+++ b/sysdeps/x86_64/backtrace.c
|
|
|
c6d234 |
@@ -92,9 +92,7 @@ backtrace_helper (struct _Unwind_Context *ctx, void *a)
|
|
|
c6d234 |
}
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-__backtrace (array, size)
|
|
|
c6d234 |
- void **array;
|
|
|
c6d234 |
- int size;
|
|
|
c6d234 |
+__backtrace (void **array, int size)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct trace_arg arg = { .array = array, .cfa = 0, .size = size, .cnt = -1 };
|
|
|
c6d234 |
#ifdef SHARED
|