diff options
Diffstat (limited to 'sysdeps/unix')
74 files changed, 80 insertions, 240 deletions
diff --git a/sysdeps/unix/bsd/ftime.c b/sysdeps/unix/bsd/ftime.c index 20aba7931f..186bed5dff 100644 --- a/sysdeps/unix/bsd/ftime.c +++ b/sysdeps/unix/bsd/ftime.c @@ -19,8 +19,7 @@ #include <sys/time.h> int -ftime (timebuf) - struct timeb *timebuf; +ftime (struct timeb *timebuf) { struct timeval tv; struct timezone tz; diff --git a/sysdeps/unix/bsd/gtty.c b/sysdeps/unix/bsd/gtty.c index 005ec4e0de..8862c4cf4d 100644 --- a/sysdeps/unix/bsd/gtty.c +++ b/sysdeps/unix/bsd/gtty.c @@ -20,9 +20,7 @@ /* Fill in *PARAMS with terminal parameters associated with FD. */ int -gtty (fd, params) - int fd; - struct sgttyb *params; +gtty (int fd, struct sgttyb *params) { return ioctl (fd, TIOCGETP, (void *) params); } diff --git a/sysdeps/unix/bsd/stty.c b/sysdeps/unix/bsd/stty.c index 0f434e29a1..a8ac0e63a1 100644 --- a/sysdeps/unix/bsd/stty.c +++ b/sysdeps/unix/bsd/stty.c @@ -20,9 +20,7 @@ /* Set the terminal parameters associated with FD to *PARAMS. */ int -stty (fd, params) - int fd; - const struct sgttyb *params; +stty (int fd, const struct sgttyb *params) { return ioctl (fd, TIOCSETP, (void *) params); } diff --git a/sysdeps/unix/bsd/tcflow.c b/sysdeps/unix/bsd/tcflow.c index 5f2f61442f..d8f346ebdf 100644 --- a/sysdeps/unix/bsd/tcflow.c +++ b/sysdeps/unix/bsd/tcflow.c @@ -24,9 +24,7 @@ /* Suspend or restart transmission on FD. */ int -tcflow (fd, action) - int fd; - int action; +tcflow (int fd, int action) { switch (action) { diff --git a/sysdeps/unix/bsd/tcflush.c b/sysdeps/unix/bsd/tcflush.c index 46b4f823b2..96413b93fd 100644 --- a/sysdeps/unix/bsd/tcflush.c +++ b/sysdeps/unix/bsd/tcflush.c @@ -24,9 +24,7 @@ /* Flush pending data on FD. */ int -tcflush (fd, queue_selector) - int fd; - int queue_selector; +tcflush (int fd, int queue_selector) { int arg; diff --git a/sysdeps/unix/bsd/tcgetattr.c b/sysdeps/unix/bsd/tcgetattr.c index 03e1d11b12..dca430eabb 100644 --- a/sysdeps/unix/bsd/tcgetattr.c +++ b/sysdeps/unix/bsd/tcgetattr.c @@ -30,9 +30,7 @@ /* Put the state of FD into *TERMIOS_P. */ int -__tcgetattr (fd, termios_p) - int fd; - struct termios *termios_p; +__tcgetattr (int fd, struct termios *termios_p) { return __ioctl (fd, TIOCGETA, termios_p); } diff --git a/sysdeps/unix/bsd/tcgetpgrp.c b/sysdeps/unix/bsd/tcgetpgrp.c index ef891fee0f..59e8db366c 100644 --- a/sysdeps/unix/bsd/tcgetpgrp.c +++ b/sysdeps/unix/bsd/tcgetpgrp.c @@ -22,8 +22,7 @@ /* Return the foreground process group ID of FD. */ pid_t -tcgetpgrp (fd) - int fd; +tcgetpgrp (int fd) { int pgrp; diff --git a/sysdeps/unix/bsd/tcsendbrk.c b/sysdeps/unix/bsd/tcsendbrk.c index 2035aed76b..470a96effe 100644 --- a/sysdeps/unix/bsd/tcsendbrk.c +++ b/sysdeps/unix/bsd/tcsendbrk.c @@ -27,9 +27,7 @@ /* Send zero bits on FD. */ int -tcsendbreak (fd, duration) - int fd; - int duration; +tcsendbreak (int fd, int duration) { struct timeval delay; diff --git a/sysdeps/unix/bsd/tcsetattr.c b/sysdeps/unix/bsd/tcsetattr.c index 7c5f6e5829..17114633f0 100644 --- a/sysdeps/unix/bsd/tcsetattr.c +++ b/sysdeps/unix/bsd/tcsetattr.c @@ -32,10 +32,7 @@ /* Set the state of FD to *TERMIOS_P. */ int -tcsetattr (fd, optional_actions, termios_p) - int fd; - int optional_actions; - const struct termios *termios_p; +tcsetattr (int fd, int optional_actions, const struct termios *termios_p) { struct termios myt; diff --git a/sysdeps/unix/bsd/tcsetpgrp.c b/sysdeps/unix/bsd/tcsetpgrp.c index a79958c77d..5e1c789def 100644 --- a/sysdeps/unix/bsd/tcsetpgrp.c +++ b/sysdeps/unix/bsd/tcsetpgrp.c @@ -22,9 +22,7 @@ /* Set the foreground process group ID of FD set PGRP_ID. */ int -tcsetpgrp (fd, pgrp_id) - int fd; - pid_t pgrp_id; +tcsetpgrp (int fd, pid_t pgrp_id) { return __ioctl (fd, TIOCSPGRP, &pgrp_id); } diff --git a/sysdeps/unix/bsd/ualarm.c b/sysdeps/unix/bsd/ualarm.c index 9f29ba3f8e..fd3ed66679 100644 --- a/sysdeps/unix/bsd/ualarm.c +++ b/sysdeps/unix/bsd/ualarm.c @@ -24,9 +24,7 @@ Returns the number of microseconds remaining before the alarm. */ useconds_t -ualarm (value, interval) - useconds_t value; - useconds_t interval; +ualarm (useconds_t value, useconds_t interval) { struct itimerval timer, otimer; diff --git a/sysdeps/unix/bsd/wait3.c b/sysdeps/unix/bsd/wait3.c index 37df456834..c7a4096799 100644 --- a/sysdeps/unix/bsd/wait3.c +++ b/sysdeps/unix/bsd/wait3.c @@ -25,10 +25,7 @@ there. If the WUNTRACED bit is set in OPTIONS, return status for stopped children; otherwise don't. */ pid_t -__wait3 (stat_loc, options, usage) - __WAIT_STATUS stat_loc; - int options; - struct rusage *usage; +__wait3 (__WAIT_STATUS stat_loc, int options, struct rusage *usage) { return __wait4 (WAIT_ANY, stat_loc, options, usage); } diff --git a/sysdeps/unix/getlogin_r.c b/sysdeps/unix/getlogin_r.c index 8bb3de5e75..2d90d42bfb 100644 --- a/sysdeps/unix/getlogin_r.c +++ b/sysdeps/unix/getlogin_r.c @@ -34,9 +34,7 @@ STATIC #endif int -__getlogin_r (name, name_len) - char *name; - size_t name_len; +__getlogin_r (char *name, size_t name_len) { char tty_pathname[2 + 2 * NAME_MAX]; char *real_tty_path = tty_pathname; diff --git a/sysdeps/unix/sockatmark.c b/sysdeps/unix/sockatmark.c index cb73f3ae80..929069d3b8 100644 --- a/sysdeps/unix/sockatmark.c +++ b/sysdeps/unix/sockatmark.c @@ -20,8 +20,7 @@ /* Determine wheter socket is at a out-of-band mark. */ int -sockatmark (fd) - int fd; +sockatmark (int fd) { int answ; diff --git a/sysdeps/unix/stime.c b/sysdeps/unix/stime.c index 8c7eb80ebf..010b0bd4da 100644 --- a/sysdeps/unix/stime.c +++ b/sysdeps/unix/stime.c @@ -23,8 +23,7 @@ /* Set the system clock to *WHEN. */ int -stime (when) - const time_t *when; +stime (const time_t *when) { struct timeval tv; diff --git a/sysdeps/unix/sysv/linux/_exit.c b/sysdeps/unix/sysv/linux/_exit.c index 2294c80c32..902dca9b1c 100644 --- a/sysdeps/unix/sysv/linux/_exit.c +++ b/sysdeps/unix/sysv/linux/_exit.c @@ -23,8 +23,7 @@ void -_exit (status) - int status; +_exit (int status) { while (1) { diff --git a/sysdeps/unix/sysv/linux/aio_sigqueue.c b/sysdeps/unix/sysv/linux/aio_sigqueue.c index 6a48e6251b..375a329aa0 100644 --- a/sysdeps/unix/sysv/linux/aio_sigqueue.c +++ b/sysdeps/unix/sysv/linux/aio_sigqueue.c @@ -30,10 +30,8 @@ /* Return any pending signal or wait for one for the given time. */ int -__aio_sigqueue (sig, val, caller_pid) - int sig; - const union sigval val; - pid_t caller_pid; +internal_function +__aio_sigqueue (int sig, const union sigval val, pid_t caller_pid) { siginfo_t info; diff --git a/sysdeps/unix/sysv/linux/arm/sigaction.c b/sysdeps/unix/sysv/linux/arm/sigaction.c index f11a6f95dc..4ecd69fc30 100644 --- a/sysdeps/unix/sysv/linux/arm/sigaction.c +++ b/sysdeps/unix/sysv/linux/arm/sigaction.c @@ -40,10 +40,7 @@ extern void __default_rt_sa_restorer (void); /* If ACT is not NULL, change the action for SIG to *ACT. If OACT is not NULL, put the old action for SIG in *OACT. */ int -__libc_sigaction (sig, act, oact) - int sig; - const struct sigaction *act; - struct sigaction *oact; +__libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact) { int result; diff --git a/sysdeps/unix/sysv/linux/faccessat.c b/sysdeps/unix/sysv/linux/faccessat.c index 10ae62d6f9..4908e5649b 100644 --- a/sysdeps/unix/sysv/linux/faccessat.c +++ b/sysdeps/unix/sysv/linux/faccessat.c @@ -28,11 +28,7 @@ int -faccessat (fd, file, mode, flag) - int fd; - const char *file; - int mode; - int flag; +faccessat (int fd, const char *file, int mode, int flag) { if (flag & ~(AT_SYMLINK_NOFOLLOW | AT_EACCESS)) return INLINE_SYSCALL_ERROR_RETURN_VALUE (EINVAL); diff --git a/sysdeps/unix/sysv/linux/fchmodat.c b/sysdeps/unix/sysv/linux/fchmodat.c index 8df57cd3df..228dd333ea 100644 --- a/sysdeps/unix/sysv/linux/fchmodat.c +++ b/sysdeps/unix/sysv/linux/fchmodat.c @@ -27,11 +27,7 @@ #include <sysdep.h> int -fchmodat (fd, file, mode, flag) - int fd; - const char *file; - mode_t mode; - int flag; +fchmodat (int fd, const char *file, mode_t mode, int flag) { if (flag & ~AT_SYMLINK_NOFOLLOW) return INLINE_SYSCALL_ERROR_RETURN_VALUE (EINVAL); diff --git a/sysdeps/unix/sysv/linux/fpathconf.c b/sysdeps/unix/sysv/linux/fpathconf.c index f422d95b3f..da131727c8 100644 --- a/sysdeps/unix/sysv/linux/fpathconf.c +++ b/sysdeps/unix/sysv/linux/fpathconf.c @@ -28,9 +28,7 @@ static long int posix_fpathconf (int fd, int name); /* Get file-specific information about descriptor FD. */ long int -__fpathconf (fd, name) - int fd; - int name; +__fpathconf (int fd, int name) { struct statfs fsbuf; diff --git a/sysdeps/unix/sysv/linux/gai_sigqueue.c b/sysdeps/unix/sysv/linux/gai_sigqueue.c index 404dd68fa9..cb02036bf0 100644 --- a/sysdeps/unix/sysv/linux/gai_sigqueue.c +++ b/sysdeps/unix/sysv/linux/gai_sigqueue.c @@ -30,10 +30,8 @@ /* Return any pending signal or wait for one for the given time. */ int -__gai_sigqueue (sig, val, caller_pid) - int sig; - const union sigval val; - pid_t caller_pid; +internal_function +__gai_sigqueue (int sig, const union sigval val, pid_t caller_pid) { siginfo_t info; diff --git a/sysdeps/unix/sysv/linux/gethostid.c b/sysdeps/unix/sysv/linux/gethostid.c index 26e4692700..7896612a5e 100644 --- a/sysdeps/unix/sysv/linux/gethostid.c +++ b/sysdeps/unix/sysv/linux/gethostid.c @@ -26,8 +26,7 @@ #ifdef SET_PROCEDURE int -sethostid (id) - long int id; +sethostid (long int id) { int fd; ssize_t written; diff --git a/sysdeps/unix/sysv/linux/getlogin_r.c b/sysdeps/unix/sysv/linux/getlogin_r.c index aa61f6134d..edfe0c68dd 100644 --- a/sysdeps/unix/sysv/linux/getlogin_r.c +++ b/sysdeps/unix/sysv/linux/getlogin_r.c @@ -32,9 +32,7 @@ static int getlogin_r_fd0 (char *name, size_t namesize); int attribute_hidden -__getlogin_r_loginuid (name, namesize) - char *name; - size_t namesize; +__getlogin_r_loginuid (char *name, size_t namesize) { int fd = open_not_cancel_2 ("/proc/self/loginuid", O_RDONLY); if (fd == -1) @@ -109,9 +107,7 @@ __getlogin_r_loginuid (name, namesize) code. Otherwise return 0. */ int -__getlogin_r (name, namesize) - char *name; - size_t namesize; +__getlogin_r (char *name, size_t namesize) { int res = __getlogin_r_loginuid (name, namesize); if (res >= 0) diff --git a/sysdeps/unix/sysv/linux/getpt.c b/sysdeps/unix/sysv/linux/getpt.c index d4b5745ef7..0c2367caa8 100644 --- a/sysdeps/unix/sysv/linux/getpt.c +++ b/sysdeps/unix/sysv/linux/getpt.c @@ -35,8 +35,7 @@ int __bsd_getpt (void); /* Open a master pseudo terminal and return its file descriptor. */ int -__posix_openpt (oflag) - int oflag; +__posix_openpt (int oflag) { static int have_no_dev_ptmx; int fd; diff --git a/sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c b/sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c index 80fad30255..97a4e1ca6d 100644 --- a/sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c +++ b/sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c @@ -25,8 +25,7 @@ # include <internaltypes.h> # include <shlib-compat.h> int -__pthread_cond_broadcast (cond) - pthread_cond_t *cond; +__pthread_cond_broadcast (pthread_cond_t *cond) { cond_compat_check_and_clear (cond); return __pthread_cond_broadcast_internal (cond); diff --git a/sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c b/sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c index 21b9ab37c2..14007fa096 100644 --- a/sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c +++ b/sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c @@ -25,8 +25,7 @@ # include <internaltypes.h> # include <shlib-compat.h> int -__pthread_cond_destroy (cond) - pthread_cond_t *cond; +__pthread_cond_destroy (pthread_cond_t *cond) { cond_compat_check_and_clear (cond); return __pthread_cond_destroy_internal (cond); diff --git a/sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c b/sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c index 86938c8258..31a87d21d7 100644 --- a/sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c +++ b/sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c @@ -25,9 +25,7 @@ # include <internaltypes.h> # include <shlib-compat.h> int -__pthread_cond_init (cond, cond_attr) - pthread_cond_t *cond; - const pthread_condattr_t *cond_attr; +__pthread_cond_init (pthread_cond_t *cond, const pthread_condattr_t *cond_attr) { cond_compat_clear (cond); return __pthread_cond_init_internal (cond, cond_attr); diff --git a/sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c b/sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c index 06ac33f8d8..0276fd7148 100644 --- a/sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c +++ b/sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c @@ -25,8 +25,7 @@ # include <internaltypes.h> # include <shlib-compat.h> int -__pthread_cond_signal (cond) - pthread_cond_t *cond; +__pthread_cond_signal (pthread_cond_t *cond) { cond_compat_check_and_clear (cond); return __pthread_cond_signal_internal (cond); diff --git a/sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c b/sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c index 5e1506f002..b707dc24dd 100644 --- a/sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c +++ b/sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c @@ -25,9 +25,7 @@ # include <internaltypes.h> # include <shlib-compat.h> int -__pthread_cond_wait (cond, mutex) - pthread_cond_t *cond; - pthread_mutex_t *mutex; +__pthread_cond_wait (pthread_cond_t *cond, pthread_mutex_t *mutex) { cond_compat_check_and_clear (cond); return __pthread_cond_wait_internal (cond, mutex); diff --git a/sysdeps/unix/sysv/linux/i386/getmsg.c b/sysdeps/unix/sysv/linux/i386/getmsg.c index 255b867b28..039eb6383e 100644 --- a/sysdeps/unix/sysv/linux/i386/getmsg.c +++ b/sysdeps/unix/sysv/linux/i386/getmsg.c @@ -24,11 +24,7 @@ #ifdef __NR_getpmsg int -getmsg (fildes, ctlptr, dataptr, flagsp) - int fildes; - struct strbuf *ctlptr; - struct strbuf *dataptr; - int *flagsp; +getmsg (int fildes, struct strbuf *ctlptr, struct strbuf *dataptr, int *flagsp) { return INLINE_SYSCALL (getpmsg, 5, fildes, ctlptr, dataptr, NULL, flagsp); } diff --git a/sysdeps/unix/sysv/linux/i386/setegid.c b/sysdeps/unix/sysv/linux/i386/setegid.c index c74e982806..f3b12f9745 100644 --- a/sysdeps/unix/sysv/linux/i386/setegid.c +++ b/sysdeps/unix/sysv/linux/i386/setegid.c @@ -21,8 +21,7 @@ int -setegid (gid) - gid_t gid; +setegid (gid_t gid) { int result; diff --git a/sysdeps/unix/sysv/linux/ia64/sigaction.c b/sysdeps/unix/sysv/linux/ia64/sigaction.c index 0967b2c358..2c2b4788a3 100644 --- a/sysdeps/unix/sysv/linux/ia64/sigaction.c +++ b/sysdeps/unix/sysv/linux/ia64/sigaction.c @@ -34,10 +34,7 @@ /* If ACT is not NULL, change the action for SIG to *ACT. If OACT is not NULL, put the old action for SIG in *OACT. */ int -__libc_sigaction (sig, act, oact) - int sig; - const struct sigaction *act; - struct sigaction *oact; +__libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact) { /* XXX The size argument hopefully will have to be changed to the real size of the user-level sigset_t. */ diff --git a/sysdeps/unix/sysv/linux/ia64/sigpending.c b/sysdeps/unix/sysv/linux/ia64/sigpending.c index f426368d8a..f164756cd5 100644 --- a/sysdeps/unix/sysv/linux/ia64/sigpending.c +++ b/sysdeps/unix/sysv/linux/ia64/sigpending.c @@ -28,8 +28,7 @@ /* Change the set of blocked signals to SET, wait until a signal arrives, and restore the set of blocked signals. */ int -sigpending (set) - sigset_t *set; +sigpending (sigset_t *set) { /* XXX The size argument hopefully will have to be changed to the real size of the user-level sigset_t. */ diff --git a/sysdeps/unix/sysv/linux/ia64/sigprocmask.c b/sysdeps/unix/sysv/linux/ia64/sigprocmask.c index c3c53642d7..97a182fd1f 100644 --- a/sysdeps/unix/sysv/linux/ia64/sigprocmask.c +++ b/sysdeps/unix/sysv/linux/ia64/sigprocmask.c @@ -29,10 +29,7 @@ /* Get and/or change the set of blocked signals. */ int -__sigprocmask (how, set, oset) - int how; - const sigset_t *set; - sigset_t *oset; +__sigprocmask (int how, const sigset_t *set, sigset_t *oset) { /* XXX The size argument hopefully will have to be changed to the diff --git a/sysdeps/unix/sysv/linux/mips/sigaction.c b/sysdeps/unix/sysv/linux/mips/sigaction.c index a7d811f04d..eef0eeff21 100644 --- a/sysdeps/unix/sysv/linux/mips/sigaction.c +++ b/sysdeps/unix/sysv/linux/mips/sigaction.c @@ -43,10 +43,7 @@ static void restore (void) asm ("__restore"); /* If ACT is not NULL, change the action for SIG to *ACT. If OACT is not NULL, put the old action for SIG in *OACT. */ int -__libc_sigaction (sig, act, oact) - int sig; - const struct sigaction *act; - struct sigaction *oact; +__libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact) { int result; diff --git a/sysdeps/unix/sysv/linux/msgget.c b/sysdeps/unix/sysv/linux/msgget.c index ca8932ca8a..a206b84672 100644 --- a/sysdeps/unix/sysv/linux/msgget.c +++ b/sysdeps/unix/sysv/linux/msgget.c @@ -28,9 +28,7 @@ parameter describes how to proceed with clashing of key values. */ int -msgget (key, msgflg) - key_t key; - int msgflg; +msgget (key_t key, int msgflg) { return INLINE_SYSCALL (ipc, 5, IPCOP_msgget, key, msgflg, 0, NULL); } diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c b/sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c index 9ba5b768e2..54b569c2e8 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c @@ -24,9 +24,7 @@ /* Truncate the file referenced by FD to LENGTH bytes. */ int -__ftruncate64 (fd, length) - int fd; - off64_t length; +__ftruncate64 (int fd, off64_t length) { /* On PPC32 64bit values are aligned in odd/even register pairs. */ int result = INLINE_SYSCALL (ftruncate64, 4, fd, 0, diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c b/sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c index deb7004ce7..52bbff1d5f 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c @@ -24,9 +24,7 @@ /* Truncate the file referenced by FD to LENGTH bytes. */ int -truncate64 (path, length) - const char *path; - off64_t length; +truncate64 (const char *path, off64_t length) { /* On PPC32 64bit values are aligned in odd/even register pairs. */ int result = INLINE_SYSCALL (truncate64, 4, path, 0, diff --git a/sysdeps/unix/sysv/linux/pt-raise.c b/sysdeps/unix/sysv/linux/pt-raise.c index 307b9dca08..1025f9ea16 100644 --- a/sysdeps/unix/sysv/linux/pt-raise.c +++ b/sysdeps/unix/sysv/linux/pt-raise.c @@ -23,8 +23,7 @@ int -raise (sig) - int sig; +raise (int sig) { /* raise is an async-safe function. It could be called while the fork function temporarily invalidated the PID field. Adjust for diff --git a/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c b/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c index 3ec1a5e73e..82b793e09f 100644 --- a/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c +++ b/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c @@ -24,9 +24,7 @@ int -pthread_getcpuclockid (threadid, clockid) - pthread_t threadid; - clockid_t *clockid; +pthread_getcpuclockid (pthread_t threadid, clockid_t *clockid) { struct pthread *pd = (struct pthread *) threadid; diff --git a/sysdeps/unix/sysv/linux/pthread_getname.c b/sysdeps/unix/sysv/linux/pthread_getname.c index 88ad8a104b..43444b911b 100644 --- a/sysdeps/unix/sysv/linux/pthread_getname.c +++ b/sysdeps/unix/sysv/linux/pthread_getname.c @@ -28,10 +28,7 @@ int -pthread_getname_np (th, buf, len) - pthread_t th; - char *buf; - size_t len; +pthread_getname_np (pthread_t th, char *buf, size_t len) { const struct pthread *pd = (const struct pthread *) th; diff --git a/sysdeps/unix/sysv/linux/pthread_setname.c b/sysdeps/unix/sysv/linux/pthread_setname.c index db185527aa..c3825ebb2f 100644 --- a/sysdeps/unix/sysv/linux/pthread_setname.c +++ b/sysdeps/unix/sysv/linux/pthread_setname.c @@ -28,9 +28,7 @@ int -pthread_setname_np (th, name) - pthread_t th; - const char *name; +pthread_setname_np (pthread_t th, const char *name) { const struct pthread *pd = (const struct pthread *) th; diff --git a/sysdeps/unix/sysv/linux/pthread_sigmask.c b/sysdeps/unix/sysv/linux/pthread_sigmask.c index 764bda192d..3d792318e7 100644 --- a/sysdeps/unix/sysv/linux/pthread_sigmask.c +++ b/sysdeps/unix/sysv/linux/pthread_sigmask.c @@ -23,10 +23,7 @@ int -pthread_sigmask (how, newmask, oldmask) - int how; - const sigset_t *newmask; - sigset_t *oldmask; +pthread_sigmask (int how, const sigset_t *newmask, sigset_t *oldmask) { sigset_t local_newmask; diff --git a/sysdeps/unix/sysv/linux/pthread_sigqueue.c b/sysdeps/unix/sysv/linux/pthread_sigqueue.c index 37830ce838..95ac4da29b 100644 --- a/sysdeps/unix/sysv/linux/pthread_sigqueue.c +++ b/sysdeps/unix/sysv/linux/pthread_sigqueue.c @@ -26,10 +26,7 @@ int -pthread_sigqueue (threadid, signo, value) - pthread_t threadid; - int signo; - const union sigval value; +pthread_sigqueue (pthread_t threadid, int signo, const union sigval value) { #ifdef __NR_rt_tgsigqueueinfo struct pthread *pd = (struct pthread *) threadid; diff --git a/sysdeps/unix/sysv/linux/raise.c b/sysdeps/unix/sysv/linux/raise.c index e2810634d6..bfcec8630a 100644 --- a/sysdeps/unix/sysv/linux/raise.c +++ b/sysdeps/unix/sysv/linux/raise.c @@ -24,8 +24,7 @@ int -raise (sig) - int sig; +raise (int sig) { struct pthread *pd = THREAD_SELF; pid_t pid = THREAD_GETMEM (pd, pid); diff --git a/sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c b/sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c index 5f5e836364..73f79170fa 100644 --- a/sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c +++ b/sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c @@ -32,10 +32,7 @@ /* If ACT is not NULL, change the action for SIG to *ACT. If OACT is not NULL, put the old action for SIG in *OACT. */ int -__libc_sigaction (sig, act, oact) - int sig; - const struct sigaction *act; - struct sigaction *oact; +__libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact) { /* XXX The size argument hopefully will have to be changed to the real size of the user-level sigset_t. */ diff --git a/sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c b/sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c index 173c775cc8..d39bcebf74 100644 --- a/sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c +++ b/sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c @@ -28,8 +28,7 @@ /* Change the set of blocked signals to SET, wait until a signal arrives, and restore the set of blocked signals. */ int -sigpending (set) - sigset_t *set; +sigpending (sigset_t *set) { /* XXX The size argument hopefully will have to be changed to the real size of the user-level sigset_t. */ diff --git a/sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c b/sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c index ef7db5c715..ca0c58a42f 100644 --- a/sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c +++ b/sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c @@ -27,10 +27,7 @@ /* Get and/or change the set of blocked signals. */ int -__sigprocmask (how, set, oset) - int how; - const sigset_t *set; - sigset_t *oset; +__sigprocmask (int how, const sigset_t *set, sigset_t *oset) { /* XXX The size argument hopefully will have to be changed to the diff --git a/sysdeps/unix/sysv/linux/semget.c b/sysdeps/unix/sysv/linux/semget.c index 7221ff22d8..29ca0ae52a 100644 --- a/sysdeps/unix/sysv/linux/semget.c +++ b/sysdeps/unix/sysv/linux/semget.c @@ -28,10 +28,7 @@ KEY. */ int -semget (key, nsems, semflg) - key_t key; - int nsems; - int semflg; +semget (key_t key, int nsems, int semflg) { return INLINE_SYSCALL (ipc, 5, IPCOP_semget, key, nsems, semflg, NULL); } diff --git a/sysdeps/unix/sysv/linux/semop.c b/sysdeps/unix/sysv/linux/semop.c index dc936be856..18a292876b 100644 --- a/sysdeps/unix/sysv/linux/semop.c +++ b/sysdeps/unix/sysv/linux/semop.c @@ -26,10 +26,7 @@ /* Perform user-defined atomical operation of array of semaphores. */ int -semop (semid, sops, nsops) - int semid; - struct sembuf *sops; - size_t nsops; +semop (int semid, struct sembuf *sops, size_t nsops) { return INLINE_SYSCALL (ipc, 5, IPCOP_semop, semid, (int) nsops, 0, sops); } diff --git a/sysdeps/unix/sysv/linux/setrlimit64.c b/sysdeps/unix/sysv/linux/setrlimit64.c index 17f95cbdfc..5b1f657c4f 100644 --- a/sysdeps/unix/sysv/linux/setrlimit64.c +++ b/sysdeps/unix/sysv/linux/setrlimit64.c @@ -25,9 +25,7 @@ Only the super-user can increase hard limits. Return 0 if successful, -1 if not (and sets errno). */ int -setrlimit64 (resource, rlimits) - enum __rlimit_resource resource; - const struct rlimit64 *rlimits; +setrlimit64 (enum __rlimit_resource resource, const struct rlimit64 *rlimits) { #ifdef __ASSUME_PRLIMIT64 return INLINE_SYSCALL (prlimit64, 4, 0, resource, rlimits, NULL); diff --git a/sysdeps/unix/sysv/linux/shmat.c b/sysdeps/unix/sysv/linux/shmat.c index 69bcf77793..b75bb9e23c 100644 --- a/sysdeps/unix/sysv/linux/shmat.c +++ b/sysdeps/unix/sysv/linux/shmat.c @@ -29,10 +29,7 @@ and where the segment is attached. */ void * -shmat (shmid, shmaddr, shmflg) - int shmid; - const void *shmaddr; - int shmflg; +shmat (int shmid, const void *shmaddr, int shmflg) { INTERNAL_SYSCALL_DECL(err); unsigned long resultvar; diff --git a/sysdeps/unix/sysv/linux/shmdt.c b/sysdeps/unix/sysv/linux/shmdt.c index 51bad719c0..e7f4196c5c 100644 --- a/sysdeps/unix/sysv/linux/shmdt.c +++ b/sysdeps/unix/sysv/linux/shmdt.c @@ -27,8 +27,7 @@ from the caller's data segment. */ int -shmdt (shmaddr) - const void *shmaddr; +shmdt (const void *shmaddr) { return INLINE_SYSCALL (ipc, 5, IPCOP_shmdt, 0, 0, 0, (void *) shmaddr); } diff --git a/sysdeps/unix/sysv/linux/shmget.c b/sysdeps/unix/sysv/linux/shmget.c index b3d74e69e5..0cc2650602 100644 --- a/sysdeps/unix/sysv/linux/shmget.c +++ b/sysdeps/unix/sysv/linux/shmget.c @@ -28,10 +28,7 @@ which is associated with KEY. */ int -shmget (key, size, shmflg) - key_t key; - size_t size; - int shmflg; +shmget (key_t key, size_t size, int shmflg) { return INLINE_SYSCALL (ipc, 5, IPCOP_shmget, key, size, shmflg, NULL); } diff --git a/sysdeps/unix/sysv/linux/sigaction.c b/sysdeps/unix/sysv/linux/sigaction.c index 66081d4d7f..c95bc75a3c 100644 --- a/sysdeps/unix/sysv/linux/sigaction.c +++ b/sysdeps/unix/sysv/linux/sigaction.c @@ -31,10 +31,7 @@ /* If ACT is not NULL, change the action for SIG to *ACT. If OACT is not NULL, put the old action for SIG in *OACT. */ int -__libc_sigaction (sig, act, oact) - int sig; - const struct sigaction *act; - struct sigaction *oact; +__libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact) { int result; diff --git a/sysdeps/unix/sysv/linux/sigpending.c b/sysdeps/unix/sysv/linux/sigpending.c index c8f3a8e395..df9c926560 100644 --- a/sysdeps/unix/sysv/linux/sigpending.c +++ b/sysdeps/unix/sysv/linux/sigpending.c @@ -26,8 +26,7 @@ /* Change the set of blocked signals to SET, wait until a signal arrives, and restore the set of blocked signals. */ int -sigpending (set) - sigset_t *set; +sigpending (sigset_t *set) { return INLINE_SYSCALL (rt_sigpending, 2, set, _NSIG / 8); } diff --git a/sysdeps/unix/sysv/linux/sigprocmask.c b/sysdeps/unix/sysv/linux/sigprocmask.c index 574f0d2232..c0eca99b9c 100644 --- a/sysdeps/unix/sysv/linux/sigprocmask.c +++ b/sysdeps/unix/sysv/linux/sigprocmask.c @@ -28,10 +28,7 @@ /* Get and/or change the set of blocked signals. */ int -__sigprocmask (how, set, oset) - int how; - const sigset_t *set; - sigset_t *oset; +__sigprocmask (int how, const sigset_t *set, sigset_t *oset) { #ifdef SIGCANCEL sigset_t local_newmask; diff --git a/sysdeps/unix/sysv/linux/sigqueue.c b/sysdeps/unix/sysv/linux/sigqueue.c index 7970a7c997..cf8a79aae7 100644 --- a/sysdeps/unix/sysv/linux/sigqueue.c +++ b/sysdeps/unix/sysv/linux/sigqueue.c @@ -26,10 +26,7 @@ #ifdef __NR_rt_sigqueueinfo /* Return any pending signal or wait for one for the given time. */ int -__sigqueue (pid, sig, val) - pid_t pid; - int sig; - const union sigval val; +__sigqueue (pid_t pid, int sig, const union sigval val) { siginfo_t info; diff --git a/sysdeps/unix/sysv/linux/sigstack.c b/sysdeps/unix/sysv/linux/sigstack.c index e5e07ec04c..2d86b0335a 100644 --- a/sysdeps/unix/sysv/linux/sigstack.c +++ b/sysdeps/unix/sysv/linux/sigstack.c @@ -24,9 +24,7 @@ #ifdef __NR_sigaltstack int -sigstack (ss, oss) - struct sigstack *ss; - struct sigstack *oss; +sigstack (struct sigstack *ss, struct sigstack *oss) { stack_t sas; stack_t *sasp = NULL; diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c b/sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c index 61b5089d0e..8e1c8a6594 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c +++ b/sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c @@ -25,8 +25,7 @@ /* Change the set of blocked signals to SET, wait until a signal arrives, and restore the set of blocked signals. */ int -sigpending (set) - sigset_t *set; +sigpending (sigset_t *set) { /* XXX The size argument hopefully will have to be changed to the real size of the user-level sigset_t. */ diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c b/sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c index 74ccf55c53..db7d0fdb40 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c +++ b/sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c @@ -24,10 +24,7 @@ /* Get and/or change the set of blocked signals. */ int -__sigprocmask (how, set, oset) - int how; - const sigset_t *set; - sigset_t *oset; +__sigprocmask (int how, const sigset_t *set, sigset_t *oset) { /* XXX The size argument hopefully will have to be changed to the real size of the user-level sigset_t. */ diff --git a/sysdeps/unix/sysv/linux/speed.c b/sysdeps/unix/sysv/linux/speed.c index 43f1e77d62..70d893f7d9 100644 --- a/sysdeps/unix/sysv/linux/speed.c +++ b/sysdeps/unix/sysv/linux/speed.c @@ -34,8 +34,7 @@ /* Return the output baud rate stored in *TERMIOS_P. */ speed_t -cfgetospeed (termios_p) - const struct termios *termios_p; +cfgetospeed (const struct termios *termios_p) { return termios_p->c_cflag & (CBAUD | CBAUDEX); } @@ -45,8 +44,7 @@ cfgetospeed (termios_p) speed, the numerical 0 is a special case for the input baud rate. It should set the input baud rate to the output baud rate. */ speed_t -cfgetispeed (termios_p) - const struct termios *termios_p; +cfgetispeed (const struct termios *termios_p) { return ((termios_p->c_iflag & IBAUD0) ? 0 : termios_p->c_cflag & (CBAUD | CBAUDEX)); @@ -54,9 +52,7 @@ cfgetispeed (termios_p) /* Set the output baud rate stored in *TERMIOS_P to SPEED. */ int -cfsetospeed (termios_p, speed) - struct termios *termios_p; - speed_t speed; +cfsetospeed (struct termios *termios_p, speed_t speed) { if ((speed & ~CBAUD) != 0 && (speed < B57600 || speed > __MAX_BAUD)) @@ -78,9 +74,7 @@ libc_hidden_def (cfsetospeed) speed, the numerical 0 is a special case for the input baud rate. It should set the input baud rate to the output baud rate. */ int -cfsetispeed (termios_p, speed) - struct termios *termios_p; - speed_t speed; +cfsetispeed (struct termios *termios_p, speed_t speed) { if ((speed & ~CBAUD) != 0 && (speed < B57600 || speed > __MAX_BAUD)) diff --git a/sysdeps/unix/sysv/linux/tcflow.c b/sysdeps/unix/sysv/linux/tcflow.c index cbf82c9761..c1c7163d32 100644 --- a/sysdeps/unix/sysv/linux/tcflow.c +++ b/sysdeps/unix/sysv/linux/tcflow.c @@ -22,9 +22,7 @@ /* Suspend or restart transmission on FD. */ int -tcflow (fd, action) - int fd; - int action; +tcflow (int fd, int action) { return __ioctl (fd, TCXONC, action); } diff --git a/sysdeps/unix/sysv/linux/tcflush.c b/sysdeps/unix/sysv/linux/tcflush.c index 2fd81586db..fcb334e771 100644 --- a/sysdeps/unix/sysv/linux/tcflush.c +++ b/sysdeps/unix/sysv/linux/tcflush.c @@ -22,9 +22,7 @@ /* Flush pending data on FD. */ int -tcflush (fd, queue_selector) - int fd; - int queue_selector; +tcflush (int fd, int queue_selector) { return __ioctl (fd, TCFLSH, queue_selector); } diff --git a/sysdeps/unix/sysv/linux/tcgetattr.c b/sysdeps/unix/sysv/linux/tcgetattr.c index 6f71b9eebd..489401ef4a 100644 --- a/sysdeps/unix/sysv/linux/tcgetattr.c +++ b/sysdeps/unix/sysv/linux/tcgetattr.c @@ -30,9 +30,7 @@ /* Put the state of FD into *TERMIOS_P. */ int -__tcgetattr (fd, termios_p) - int fd; - struct termios *termios_p; +__tcgetattr (int fd, struct termios *termios_p) { struct __kernel_termios k_termios; int retval; diff --git a/sysdeps/unix/sysv/linux/tcsetattr.c b/sysdeps/unix/sysv/linux/tcsetattr.c index 59016b5c2c..f7866ead98 100644 --- a/sysdeps/unix/sysv/linux/tcsetattr.c +++ b/sysdeps/unix/sysv/linux/tcsetattr.c @@ -41,10 +41,7 @@ /* Set the state of FD to *TERMIOS_P. */ int -tcsetattr (fd, optional_actions, termios_p) - int fd; - int optional_actions; - const struct termios *termios_p; +tcsetattr (int fd, int optional_actions, const struct termios *termios_p) { struct __kernel_termios k_termios; unsigned long int cmd; diff --git a/sysdeps/unix/sysv/linux/time.c b/sysdeps/unix/sysv/linux/time.c index 8ca2d2b2df..a20efb4363 100644 --- a/sysdeps/unix/sysv/linux/time.c +++ b/sysdeps/unix/sysv/linux/time.c @@ -23,8 +23,7 @@ #ifdef __NR_time time_t -time (t) - time_t *t; +time (time_t *t) { INTERNAL_SYSCALL_DECL (err); time_t res = INTERNAL_SYSCALL (time, err, 1, NULL); diff --git a/sysdeps/unix/sysv/linux/timer_create.c b/sysdeps/unix/sysv/linux/timer_create.c index 121c708bc2..400030200b 100644 --- a/sysdeps/unix/sysv/linux/timer_create.c +++ b/sysdeps/unix/sysv/linux/timer_create.c @@ -35,10 +35,7 @@ int -timer_create (clock_id, evp, timerid) - clockid_t clock_id; - struct sigevent *evp; - timer_t *timerid; +timer_create (clockid_t clock_id, struct sigevent *evp, timer_t *timerid) { #undef timer_create { diff --git a/sysdeps/unix/sysv/linux/timer_delete.c b/sysdeps/unix/sysv/linux/timer_delete.c index 0c24dade4b..1db9cbd7f3 100644 --- a/sysdeps/unix/sysv/linux/timer_delete.c +++ b/sysdeps/unix/sysv/linux/timer_delete.c @@ -29,8 +29,7 @@ int -timer_delete (timerid) - timer_t timerid; +timer_delete (timer_t timerid) { #undef timer_delete struct timer *kt = (struct timer *) timerid; diff --git a/sysdeps/unix/sysv/linux/timer_getoverr.c b/sysdeps/unix/sysv/linux/timer_getoverr.c index 8f00192287..073f53676e 100644 --- a/sysdeps/unix/sysv/linux/timer_getoverr.c +++ b/sysdeps/unix/sysv/linux/timer_getoverr.c @@ -28,8 +28,7 @@ int -timer_getoverrun (timerid) - timer_t timerid; +timer_getoverrun (timer_t timerid) { #undef timer_getoverrun struct timer *kt = (struct timer *) timerid; diff --git a/sysdeps/unix/sysv/linux/timer_gettime.c b/sysdeps/unix/sysv/linux/timer_gettime.c index 79705cf5e8..12667d9551 100644 --- a/sysdeps/unix/sysv/linux/timer_gettime.c +++ b/sysdeps/unix/sysv/linux/timer_gettime.c @@ -29,9 +29,7 @@ int -timer_gettime (timerid, value) - timer_t timerid; - struct itimerspec *value; +timer_gettime (timer_t timerid, struct itimerspec *value) { #undef timer_gettime struct timer *kt = (struct timer *) timerid; diff --git a/sysdeps/unix/sysv/linux/x86_64/sigpending.c b/sysdeps/unix/sysv/linux/x86_64/sigpending.c index c4139e899a..6ae975892e 100644 --- a/sysdeps/unix/sysv/linux/x86_64/sigpending.c +++ b/sysdeps/unix/sysv/linux/x86_64/sigpending.c @@ -28,8 +28,7 @@ /* Change the set of blocked signals to SET, wait until a signal arrives, and restore the set of blocked signals. */ int -sigpending (set) - sigset_t *set; +sigpending (sigset_t *set) { /* XXX The size argument hopefully will have to be changed to the real size of the user-level sigset_t. */ diff --git a/sysdeps/unix/sysv/linux/x86_64/sigprocmask.c b/sysdeps/unix/sysv/linux/x86_64/sigprocmask.c index 251a59b390..145508297a 100644 --- a/sysdeps/unix/sysv/linux/x86_64/sigprocmask.c +++ b/sysdeps/unix/sysv/linux/x86_64/sigprocmask.c @@ -28,10 +28,7 @@ /* Get and/or change the set of blocked signals. */ int -__sigprocmask (how, set, oset) - int how; - const sigset_t *set; - sigset_t *oset; +__sigprocmask (int how, const sigset_t *set, sigset_t *oset) { /* XXX The size argument hopefully will have to be changed to the |