diff options
Diffstat (limited to 'sysdeps/unix')
35 files changed, 39 insertions, 171 deletions
diff --git a/sysdeps/unix/sysv/linux/arm/pread.c b/sysdeps/unix/sysv/linux/arm/pread.c index 5ae8f45d05..64bc0a1015 100644 --- a/sysdeps/unix/sysv/linux/arm/pread.c +++ b/sysdeps/unix/sysv/linux/arm/pread.c @@ -24,11 +24,7 @@ #include <sys/syscall.h> ssize_t -__libc_pread (fd, buf, count, offset) - int fd; - void *buf; - size_t count; - off_t offset; +__libc_pread (int fd, void *buf, size_t count, off_t offset) { ssize_t result; diff --git a/sysdeps/unix/sysv/linux/arm/pread64.c b/sysdeps/unix/sysv/linux/arm/pread64.c index 8de750ab6d..78606997f9 100644 --- a/sysdeps/unix/sysv/linux/arm/pread64.c +++ b/sysdeps/unix/sysv/linux/arm/pread64.c @@ -24,11 +24,7 @@ #include <sys/syscall.h> ssize_t -__libc_pread64 (fd, buf, count, offset) - int fd; - void *buf; - size_t count; - off64_t offset; +__libc_pread64 (int fd, void *buf, size_t count, off64_t offset) { ssize_t result; diff --git a/sysdeps/unix/sysv/linux/arm/pwrite.c b/sysdeps/unix/sysv/linux/arm/pwrite.c index b0b87559b7..11a963ca6c 100644 --- a/sysdeps/unix/sysv/linux/arm/pwrite.c +++ b/sysdeps/unix/sysv/linux/arm/pwrite.c @@ -24,11 +24,7 @@ #include <sys/syscall.h> ssize_t -__libc_pwrite (fd, buf, count, offset) - int fd; - const void *buf; - size_t count; - off_t offset; +__libc_pwrite (int fd, const void *buf, size_t count, off_t offset) { ssize_t result; diff --git a/sysdeps/unix/sysv/linux/arm/pwrite64.c b/sysdeps/unix/sysv/linux/arm/pwrite64.c index ffa84dfcc0..9cb67ff006 100644 --- a/sysdeps/unix/sysv/linux/arm/pwrite64.c +++ b/sysdeps/unix/sysv/linux/arm/pwrite64.c @@ -24,11 +24,7 @@ #include <sys/syscall.h> ssize_t -__libc_pwrite64 (fd, buf, count, offset) - int fd; - const void *buf; - size_t count; - off64_t offset; +__libc_pwrite64 (int fd, const void *buf, size_t count, off64_t offset) { ssize_t result; diff --git a/sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c b/sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c index 3e8dbd6932..ad97e97135 100644 --- a/sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c +++ b/sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c @@ -35,11 +35,7 @@ do_pread (int fd, void *buf, size_t count, off_t offset) } ssize_t -__libc_pread (fd, buf, count, offset) - int fd; - void *buf; - size_t count; - off_t offset; +__libc_pread (int fd, void *buf, size_t count, off_t offset) { if (SINGLE_THREAD_P) return do_pread (fd, buf, count, offset); diff --git a/sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c b/sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c index 9241b3206f..7250893297 100644 --- a/sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c +++ b/sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c @@ -35,11 +35,7 @@ do_pread64 (int fd, void *buf, size_t count, off64_t offset) ssize_t -__libc_pread64 (fd, buf, count, offset) - int fd; - void *buf; - size_t count; - off64_t offset; +__libc_pread64 (int fd, void *buf, size_t count, off64_t offset) { if (SINGLE_THREAD_P) return do_pread64 (fd, buf, count, offset); diff --git a/sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c b/sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c index c4c7a76579..e897c7d6ad 100644 --- a/sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c +++ b/sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c @@ -36,11 +36,7 @@ do_pwrite (int fd, const void *buf, size_t count, off_t offset) ssize_t -__libc_pwrite (fd, buf, count, offset) - int fd; - const void *buf; - size_t count; - off_t offset; +__libc_pwrite (int fd, const void *buf, size_t count, off_t offset) { if (SINGLE_THREAD_P) return do_pwrite (fd, buf, count, offset); diff --git a/sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c b/sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c index 8ffc6b55c2..3ac1339b9a 100644 --- a/sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c +++ b/sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c @@ -35,11 +35,7 @@ do_pwrite64 (int fd, const void *buf, size_t count, off64_t offset) ssize_t -__libc_pwrite64 (fd, buf, count, offset) - int fd; - const void *buf; - size_t count; - off64_t offset; +__libc_pwrite64 (int fd, const void *buf, size_t count, off64_t offset) { if (SINGLE_THREAD_P) return do_pwrite64 (fd, buf, count, offset); diff --git a/sysdeps/unix/sysv/linux/mips/pread.c b/sysdeps/unix/sysv/linux/mips/pread.c index 50247bef1d..c301067478 100644 --- a/sysdeps/unix/sysv/linux/mips/pread.c +++ b/sysdeps/unix/sysv/linux/mips/pread.c @@ -36,11 +36,7 @@ ssize_t -__libc_pread (fd, buf, count, offset) - int fd; - void *buf; - size_t count; - off_t offset; +__libc_pread (int fd, void *buf, size_t count, off_t offset): { ssize_t result; diff --git a/sysdeps/unix/sysv/linux/mips/pread64.c b/sysdeps/unix/sysv/linux/mips/pread64.c index 42e52da868..ad948aada7 100644 --- a/sysdeps/unix/sysv/linux/mips/pread64.c +++ b/sysdeps/unix/sysv/linux/mips/pread64.c @@ -35,11 +35,7 @@ ssize_t -__libc_pread64 (fd, buf, count, offset) - int fd; - void *buf; - size_t count; - off64_t offset; +__libc_pread64 (int fd, void *buf, size_t count, off64_t offset) { ssize_t result; diff --git a/sysdeps/unix/sysv/linux/mips/pwrite.c b/sysdeps/unix/sysv/linux/mips/pwrite.c index 4dd96904b1..2c38e04060 100644 --- a/sysdeps/unix/sysv/linux/mips/pwrite.c +++ b/sysdeps/unix/sysv/linux/mips/pwrite.c @@ -36,11 +36,7 @@ ssize_t -__libc_pwrite (fd, buf, count, offset) - int fd; - const void *buf; - size_t count; - off_t offset; +__libc_pwrite (int fd, const void *buf, size_t count, off_t offset) { ssize_t result; diff --git a/sysdeps/unix/sysv/linux/mips/pwrite64.c b/sysdeps/unix/sysv/linux/mips/pwrite64.c index 1c548b92c2..504c88aa10 100644 --- a/sysdeps/unix/sysv/linux/mips/pwrite64.c +++ b/sysdeps/unix/sysv/linux/mips/pwrite64.c @@ -35,11 +35,7 @@ ssize_t -__libc_pwrite64 (fd, buf, count, offset) - int fd; - const void *buf; - size_t count; - off64_t offset; +__libc_pwrite64 (int fd, const void *buf, size_t count, off64_t offset) { ssize_t result; diff --git a/sysdeps/unix/sysv/linux/msgrcv.c b/sysdeps/unix/sysv/linux/msgrcv.c index 8acaa8900e..1c3698c2f5 100644 --- a/sysdeps/unix/sysv/linux/msgrcv.c +++ b/sysdeps/unix/sysv/linux/msgrcv.c @@ -33,12 +33,8 @@ struct ipc_kludge ssize_t -__libc_msgrcv (msqid, msgp, msgsz, msgtyp, msgflg) - int msqid; - void *msgp; - size_t msgsz; - long int msgtyp; - int msgflg; +__libc_msgrcv (int msqid, void *msgp, size_t msgsz, long int msgtyp, + int msgflg) { /* The problem here is that Linux' calling convention only allows up to fives parameters to a system call. */ diff --git a/sysdeps/unix/sysv/linux/msgsnd.c b/sysdeps/unix/sysv/linux/msgsnd.c index 2c354d8481..d548aab104 100644 --- a/sysdeps/unix/sysv/linux/msgsnd.c +++ b/sysdeps/unix/sysv/linux/msgsnd.c @@ -24,11 +24,7 @@ #include <sys/syscall.h> int -__libc_msgsnd (msqid, msgp, msgsz, msgflg) - int msqid; - const void *msgp; - size_t msgsz; - int msgflg; +__libc_msgsnd (int msqid, const void *msgp, size_t msgsz, int msgflg) { if (SINGLE_THREAD_P) return INLINE_SYSCALL (ipc, 5, IPCOP_msgsnd, msqid, msgsz, diff --git a/sysdeps/unix/sysv/linux/openat.c b/sysdeps/unix/sysv/linux/openat.c index 95c98086cc..5145823b8e 100644 --- a/sysdeps/unix/sysv/linux/openat.c +++ b/sysdeps/unix/sysv/linux/openat.c @@ -37,11 +37,7 @@ int -OPENAT_NOT_CANCEL (fd, file, oflag, mode) - int fd; - const char *file; - int oflag; - mode_t mode; +OPENAT_NOT_CANCEL (int fd, const char *file, int oflag, mode_t mode) { /* We have to add the O_LARGEFILE flag for openat64. */ @@ -61,10 +57,7 @@ OPENAT_NOT_CANCEL (fd, file, oflag, mode) the directory associated with FD. If OFLAG includes O_CREAT, a third argument is the file protection. */ int -__OPENAT (fd, file, oflag) - int fd; - const char *file; - int oflag; +__OPENAT (int fd, const char *file, int oflag, ...) { mode_t mode = 0; if (oflag & O_CREAT) diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c b/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c index 6b7d71234b..10763f563d 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c @@ -24,11 +24,7 @@ #include <sys/syscall.h> ssize_t -__libc_pread (fd, buf, count, offset) - int fd; - void *buf; - size_t count; - off_t offset; +__libc_pread (int fd, void *buf, size_t count, off_t offset) { ssize_t result; diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c b/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c index 6229d48964..f3dc7e5618 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c @@ -24,11 +24,7 @@ ssize_t -__libc_pread64 (fd, buf, count, offset) - int fd; - void *buf; - size_t count; - off64_t offset; +__libc_pread64 (int fd, void *buf, size_t count, off64_t offset) { ssize_t result; diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c b/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c index e70d507b12..65109ed54c 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c @@ -25,11 +25,7 @@ ssize_t -__libc_pwrite (fd, buf, count, offset) - int fd; - const void *buf; - size_t count; - off_t offset; +__libc_pwrite (int fd, const void *buf, size_t count, off_t offset) { ssize_t result; diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c b/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c index 080645da5c..77749c98b0 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c @@ -24,11 +24,7 @@ ssize_t -__libc_pwrite64 (fd, buf, count, offset) - int fd; - const void *buf; - size_t count; - off64_t offset; +__libc_pwrite64 (int fd, const void *buf, size_t count, off64_t offset) { ssize_t result; diff --git a/sysdeps/unix/sysv/linux/pread.c b/sysdeps/unix/sysv/linux/pread.c index 3c60bfb954..5c1b174382 100644 --- a/sysdeps/unix/sysv/linux/pread.c +++ b/sysdeps/unix/sysv/linux/pread.c @@ -49,11 +49,7 @@ do_pread (int fd, void *buf, size_t count, off_t offset) ssize_t -__libc_pread (fd, buf, count, offset) - int fd; - void *buf; - size_t count; - off_t offset; +__libc_pread (int fd, void *buf, size_t count, off_t offset) { if (SINGLE_THREAD_P) return do_pread (fd, buf, count, offset); diff --git a/sysdeps/unix/sysv/linux/pread64.c b/sysdeps/unix/sysv/linux/pread64.c index 137b402d0b..a8cfb5ddf9 100644 --- a/sysdeps/unix/sysv/linux/pread64.c +++ b/sysdeps/unix/sysv/linux/pread64.c @@ -45,11 +45,7 @@ do_pread64 (int fd, void *buf, size_t count, off64_t offset) ssize_t -__libc_pread64 (fd, buf, count, offset) - int fd; - void *buf; - size_t count; - off64_t offset; +__libc_pread64 (int fd, void *buf, size_t count, off64_t offset) { if (SINGLE_THREAD_P) return do_pread64 (fd, buf, count, offset); diff --git a/sysdeps/unix/sysv/linux/preadv.c b/sysdeps/unix/sysv/linux/preadv.c index c9b7df9033..091f9a7dc9 100644 --- a/sysdeps/unix/sysv/linux/preadv.c +++ b/sysdeps/unix/sysv/linux/preadv.c @@ -48,11 +48,7 @@ static ssize_t PREADV_REPLACEMENT (int, const struct iovec *, ssize_t -PREADV (fd, vector, count, offset) - int fd; - const struct iovec *vector; - int count; - OFF_T offset; +PREADV (int fd, const struct iovec *vector, int count, OFF_T offset) { #ifdef __NR_preadv ssize_t result; diff --git a/sysdeps/unix/sysv/linux/pthread_kill.c b/sysdeps/unix/sysv/linux/pthread_kill.c index 7951fa7f08..8e8996aebe 100644 --- a/sysdeps/unix/sysv/linux/pthread_kill.c +++ b/sysdeps/unix/sysv/linux/pthread_kill.c @@ -24,9 +24,7 @@ int -__pthread_kill (threadid, signo) - pthread_t threadid; - int signo; +__pthread_kill (pthread_t threadid, int signo) { struct pthread *pd = (struct pthread *) threadid; diff --git a/sysdeps/unix/sysv/linux/pwrite.c b/sysdeps/unix/sysv/linux/pwrite.c index 678aeb9fb7..80c2e22ebf 100644 --- a/sysdeps/unix/sysv/linux/pwrite.c +++ b/sysdeps/unix/sysv/linux/pwrite.c @@ -49,11 +49,7 @@ do_pwrite (int fd, const void *buf, size_t count, off_t offset) ssize_t -__libc_pwrite (fd, buf, count, offset) - int fd; - const void *buf; - size_t count; - off_t offset; +__libc_pwrite (int fd, const void *buf, size_t count, off_t offset) { if (SINGLE_THREAD_P) return do_pwrite (fd, buf, count, offset); diff --git a/sysdeps/unix/sysv/linux/pwrite64.c b/sysdeps/unix/sysv/linux/pwrite64.c index 2c133ab920..7fce75a432 100644 --- a/sysdeps/unix/sysv/linux/pwrite64.c +++ b/sysdeps/unix/sysv/linux/pwrite64.c @@ -45,11 +45,7 @@ do_pwrite64 (int fd, const void *buf, size_t count, off64_t offset) ssize_t -__libc_pwrite64 (fd, buf, count, offset) - int fd; - const void *buf; - size_t count; - off64_t offset; +__libc_pwrite64 (int fd, const void *buf, size_t count, off64_t offset) { if (SINGLE_THREAD_P) return do_pwrite64 (fd, buf, count, offset); diff --git a/sysdeps/unix/sysv/linux/pwritev.c b/sysdeps/unix/sysv/linux/pwritev.c index 847a0ed6dd..91e58b54ba 100644 --- a/sysdeps/unix/sysv/linux/pwritev.c +++ b/sysdeps/unix/sysv/linux/pwritev.c @@ -48,11 +48,7 @@ static ssize_t PWRITEV_REPLACEMENT (int, const struct iovec *, ssize_t -PWRITEV (fd, vector, count, offset) - int fd; - const struct iovec *vector; - int count; - OFF_T offset; +PWRITEV (int fd, const struct iovec *vector, int count, OFF_T offset) { #ifdef __NR_pwritev ssize_t result; diff --git a/sysdeps/unix/sysv/linux/sh/pread.c b/sysdeps/unix/sysv/linux/sh/pread.c index 913521206a..9d4b5de751 100644 --- a/sysdeps/unix/sysv/linux/sh/pread.c +++ b/sysdeps/unix/sysv/linux/sh/pread.c @@ -33,11 +33,7 @@ ssize_t -__libc_pread (fd, buf, count, offset) - int fd; - void *buf; - size_t count; - off_t offset; +__libc_pread (int fd, void *buf, size_t count, off_t offset) { ssize_t result; diff --git a/sysdeps/unix/sysv/linux/sh/pread64.c b/sysdeps/unix/sysv/linux/sh/pread64.c index 185b51467b..195eacc29a 100644 --- a/sysdeps/unix/sysv/linux/sh/pread64.c +++ b/sysdeps/unix/sysv/linux/sh/pread64.c @@ -32,11 +32,7 @@ ssize_t -__libc_pread64 (fd, buf, count, offset) - int fd; - void *buf; - size_t count; - off64_t offset; +__libc_pread64 (int fd, void *buf, size_t count, off64_t offset) { ssize_t result; diff --git a/sysdeps/unix/sysv/linux/sh/pwrite.c b/sysdeps/unix/sysv/linux/sh/pwrite.c index bc22ee166c..c187d0a732 100644 --- a/sysdeps/unix/sysv/linux/sh/pwrite.c +++ b/sysdeps/unix/sysv/linux/sh/pwrite.c @@ -33,11 +33,7 @@ ssize_t -__libc_pwrite (fd, buf, count, offset) - int fd; - const void *buf; - size_t count; - off_t offset; +__libc_pwrite (int fd, const void *buf, size_t count, off_t offset) { ssize_t result; diff --git a/sysdeps/unix/sysv/linux/sh/pwrite64.c b/sysdeps/unix/sysv/linux/sh/pwrite64.c index 7d04f22261..0d15ca21e8 100644 --- a/sysdeps/unix/sysv/linux/sh/pwrite64.c +++ b/sysdeps/unix/sysv/linux/sh/pwrite64.c @@ -32,11 +32,7 @@ ssize_t -__libc_pwrite64 (fd, buf, count, offset) - int fd; - const void *buf; - size_t count; - off64_t offset; +__libc_pwrite64 (int fd, const void *buf, size_t count, off64_t offset) { ssize_t result; diff --git a/sysdeps/unix/sysv/linux/sigsuspend.c b/sysdeps/unix/sysv/linux/sigsuspend.c index c44455bbff..89c5d65d22 100644 --- a/sysdeps/unix/sysv/linux/sigsuspend.c +++ b/sysdeps/unix/sysv/linux/sigsuspend.c @@ -32,8 +32,7 @@ do_sigsuspend (const sigset_t *set) /* Change the set of blocked signals to SET, wait until a signal arrives, and restore the set of blocked signals. */ int -__sigsuspend (set) - const sigset_t *set; +__sigsuspend (const sigset_t *set) { if (SINGLE_THREAD_P) return do_sigsuspend (set); diff --git a/sysdeps/unix/sysv/linux/sigtimedwait.c b/sysdeps/unix/sysv/linux/sigtimedwait.c index 9b2d934398..209198ea14 100644 --- a/sysdeps/unix/sysv/linux/sigtimedwait.c +++ b/sysdeps/unix/sysv/linux/sigtimedwait.c @@ -67,10 +67,8 @@ do_sigtimedwait (const sigset_t *set, siginfo_t *info, /* Return any pending signal or wait for one for the given time. */ int -__sigtimedwait (set, info, timeout) - const sigset_t *set; - siginfo_t *info; - const struct timespec *timeout; +__sigtimedwait (const sigset_t *set, siginfo_t *info, + const struct timespec *timeout) { if (SINGLE_THREAD_P) return do_sigtimedwait (set, info, timeout); diff --git a/sysdeps/unix/sysv/linux/sigwait.c b/sysdeps/unix/sysv/linux/sigwait.c index c21550b152..26c32414df 100644 --- a/sysdeps/unix/sysv/linux/sigwait.c +++ b/sysdeps/unix/sysv/linux/sigwait.c @@ -86,9 +86,7 @@ do_sigwait (const sigset_t *set, int *sig) } int -__sigwait (set, sig) - const sigset_t *set; - int *sig; +__sigwait (const sigset_t *set, int *sig) { if (SINGLE_THREAD_P) return do_sigwait (set, sig); diff --git a/sysdeps/unix/sysv/linux/sigwaitinfo.c b/sysdeps/unix/sysv/linux/sigwaitinfo.c index 9d6c2155be..fe23c9fe06 100644 --- a/sysdeps/unix/sysv/linux/sigwaitinfo.c +++ b/sysdeps/unix/sysv/linux/sigwaitinfo.c @@ -68,9 +68,7 @@ do_sigwaitinfo (const sigset_t *set, siginfo_t *info) /* Return any pending signal or wait for one for the given time. */ int -__sigwaitinfo (set, info) - const sigset_t *set; - siginfo_t *info; +__sigwaitinfo (const sigset_t *set, siginfo_t *info) { if (SINGLE_THREAD_P) return do_sigwaitinfo (set, info); diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c b/sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c index 1f256f553a..892806046f 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c +++ b/sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c @@ -23,12 +23,8 @@ #include <sys/syscall.h> ssize_t -__libc_msgrcv (msqid, msgp, msgsz, msgtyp, msgflg) - int msqid; - void *msgp; - size_t msgsz; - long int msgtyp; - int msgflg; +__libc_msgrcv (int msqid, void *msgp, size_t msgsz, long int msgtyp, + int msgflg) { if (SINGLE_THREAD_P) return INLINE_SYSCALL (ipc, 6, IPCOP_msgrcv, msqid, msgsz, msgflg, |