summaryrefslogtreecommitdiff
path: root/sysdeps/mach/hurd
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd')
-rw-r--r--sysdeps/mach/hurd/_exit.c3
-rw-r--r--sysdeps/mach/hurd/access.c4
-rw-r--r--sysdeps/mach/hurd/adjtime.c4
-rw-r--r--sysdeps/mach/hurd/chdir.c3
-rw-r--r--sysdeps/mach/hurd/chmod.c4
-rw-r--r--sysdeps/mach/hurd/chown.c5
-rw-r--r--sysdeps/mach/hurd/cthreads.c14
-rw-r--r--sysdeps/mach/hurd/euidaccess.c4
-rw-r--r--sysdeps/mach/hurd/faccessat.c6
-rw-r--r--sysdeps/mach/hurd/fchdir.c3
-rw-r--r--sysdeps/mach/hurd/fchmod.c4
-rw-r--r--sysdeps/mach/hurd/fchmodat.c6
-rw-r--r--sysdeps/mach/hurd/fchown.c5
-rw-r--r--sysdeps/mach/hurd/fchownat.c7
-rw-r--r--sysdeps/mach/hurd/flock.c4
-rw-r--r--sysdeps/mach/hurd/fsync.c3
-rw-r--r--sysdeps/mach/hurd/ftruncate.c4
-rw-r--r--sysdeps/mach/hurd/getgroups.c4
-rw-r--r--sysdeps/mach/hurd/gethostname.c4
-rw-r--r--sysdeps/mach/hurd/getitimer.c4
-rw-r--r--sysdeps/mach/hurd/getlogin_r.c4
-rw-r--r--sysdeps/mach/hurd/getpgid.c3
-rw-r--r--sysdeps/mach/hurd/getrusage.c4
-rw-r--r--sysdeps/mach/hurd/getsockname.c5
-rw-r--r--sysdeps/mach/hurd/group_member.c3
-rw-r--r--sysdeps/mach/hurd/isatty.c3
-rw-r--r--sysdeps/mach/hurd/lchown.c5
-rw-r--r--sysdeps/mach/hurd/link.c4
-rw-r--r--sysdeps/mach/hurd/linkat.c7
-rw-r--r--sysdeps/mach/hurd/listen.c4
-rw-r--r--sysdeps/mach/hurd/mkdir.c4
-rw-r--r--sysdeps/mach/hurd/mkdirat.c5
-rw-r--r--sysdeps/mach/hurd/openat.c5
-rw-r--r--sysdeps/mach/hurd/poll.c5
-rw-r--r--sysdeps/mach/hurd/readlink.c5
-rw-r--r--sysdeps/mach/hurd/readlinkat.c6
-rw-r--r--sysdeps/mach/hurd/recv.c6
-rw-r--r--sysdeps/mach/hurd/rename.c4
-rw-r--r--sysdeps/mach/hurd/renameat.c6
-rw-r--r--sysdeps/mach/hurd/revoke.c3
-rw-r--r--sysdeps/mach/hurd/rewinddir.c3
-rw-r--r--sysdeps/mach/hurd/rmdir.c3
-rw-r--r--sysdeps/mach/hurd/seekdir.c4
-rw-r--r--sysdeps/mach/hurd/send.c6
-rw-r--r--sysdeps/mach/hurd/setdomain.c4
-rw-r--r--sysdeps/mach/hurd/setegid.c3
-rw-r--r--sysdeps/mach/hurd/seteuid.c3
-rw-r--r--sysdeps/mach/hurd/setgid.c3
-rw-r--r--sysdeps/mach/hurd/setgroups.c4
-rw-r--r--sysdeps/mach/hurd/sethostid.c3
-rw-r--r--sysdeps/mach/hurd/sethostname.c4
-rw-r--r--sysdeps/mach/hurd/setlogin.c3
-rw-r--r--sysdeps/mach/hurd/setpgid.c4
-rw-r--r--sysdeps/mach/hurd/setregid.c4
-rw-r--r--sysdeps/mach/hurd/setreuid.c4
-rw-r--r--sysdeps/mach/hurd/settimeofday.c4
-rw-r--r--sysdeps/mach/hurd/setuid.c3
-rw-r--r--sysdeps/mach/hurd/shutdown.c4
-rw-r--r--sysdeps/mach/hurd/sigaction.c5
-rw-r--r--sysdeps/mach/hurd/sigaltstack.c4
-rw-r--r--sysdeps/mach/hurd/sigpending.c3
-rw-r--r--sysdeps/mach/hurd/sigprocmask.c5
-rw-r--r--sysdeps/mach/hurd/sigsuspend.c3
-rw-r--r--sysdeps/mach/hurd/socket.c5
-rw-r--r--sysdeps/mach/hurd/symlink.c4
-rw-r--r--sysdeps/mach/hurd/symlinkat.c5
-rw-r--r--sysdeps/mach/hurd/telldir.c3
-rw-r--r--sysdeps/mach/hurd/truncate.c4
-rw-r--r--sysdeps/mach/hurd/umask.c3
-rw-r--r--sysdeps/mach/hurd/unlink.c3
-rw-r--r--sysdeps/mach/hurd/unlinkat.c5
71 files changed, 74 insertions, 230 deletions
diff --git a/sysdeps/mach/hurd/_exit.c b/sysdeps/mach/hurd/_exit.c
index 978b68f0ec..c71f9d9a27 100644
--- a/sysdeps/mach/hurd/_exit.c
+++ b/sysdeps/mach/hurd/_exit.c
@@ -46,8 +46,7 @@ _hurd_exit (int status)
}
void
-_exit (status)
- int status;
+_exit (int status)
{
_hurd_exit (W_EXITCODE (status, 0));
}
diff --git a/sysdeps/mach/hurd/access.c b/sysdeps/mach/hurd/access.c
index ead583bf40..259bb5805d 100644
--- a/sysdeps/mach/hurd/access.c
+++ b/sysdeps/mach/hurd/access.c
@@ -24,9 +24,7 @@
/* Test for access to FILE by our real user and group IDs. */
int
-__access (file, type)
- const char *file;
- int type;
+__access (const char *file, int type)
{
error_t err;
file_t rcrdir, rcwdir, io;
diff --git a/sysdeps/mach/hurd/adjtime.c b/sysdeps/mach/hurd/adjtime.c
index cdf62cae8c..02dd342b56 100644
--- a/sysdeps/mach/hurd/adjtime.c
+++ b/sysdeps/mach/hurd/adjtime.c
@@ -24,9 +24,7 @@
of time adjustment remaining to be done from the last `__adjtime' call.
This call is restricted to the super-user. */
int
-__adjtime (delta, olddelta)
- const struct timeval *delta;
- struct timeval *olddelta;
+__adjtime (const struct timeval *delta, struct timeval *olddelta)
{
error_t err;
mach_port_t hostpriv;
diff --git a/sysdeps/mach/hurd/chdir.c b/sysdeps/mach/hurd/chdir.c
index eaaf6466d3..ab11329e16 100644
--- a/sysdeps/mach/hurd/chdir.c
+++ b/sysdeps/mach/hurd/chdir.c
@@ -22,8 +22,7 @@
/* Change the current directory to FILE_NAME. */
int
-__chdir (file_name)
- const char *file_name;
+__chdir (const char *file_name)
{
return _hurd_change_directory_port_from_name (&_hurd_ports[INIT_PORT_CWDIR],
file_name);
diff --git a/sysdeps/mach/hurd/chmod.c b/sysdeps/mach/hurd/chmod.c
index 5a08a818f8..f3cbcbeb14 100644
--- a/sysdeps/mach/hurd/chmod.c
+++ b/sysdeps/mach/hurd/chmod.c
@@ -22,9 +22,7 @@
/* Change the protections of FILE to MODE. */
int
-__chmod (file, mode)
- const char *file;
- mode_t mode;
+__chmod (const char *file, mode_t mode)
{
error_t err;
file_t port = __file_name_lookup (file, 0, 0);
diff --git a/sysdeps/mach/hurd/chown.c b/sysdeps/mach/hurd/chown.c
index 1cf252545b..50c3e9e951 100644
--- a/sysdeps/mach/hurd/chown.c
+++ b/sysdeps/mach/hurd/chown.c
@@ -22,10 +22,7 @@
/* Change the owner and group of FILE. */
int
-__chown (file, owner, group)
- const char *file;
- uid_t owner;
- gid_t group;
+__chown (const char *file, uid_t owner, gid_t group)
{
error_t err;
file_t port = __file_name_lookup (file, 0, 0);
diff --git a/sysdeps/mach/hurd/cthreads.c b/sysdeps/mach/hurd/cthreads.c
index 695a243395..71082c5553 100644
--- a/sysdeps/mach/hurd/cthreads.c
+++ b/sysdeps/mach/hurd/cthreads.c
@@ -22,8 +22,7 @@
/* Placeholder for key creation routine from Hurd cthreads library. */
int
weak_function
-cthread_keycreate (key)
- cthread_key_t *key;
+cthread_keycreate (cthread_key_t *key)
{
__set_errno (ENOSYS);
*key = -1;
@@ -33,9 +32,7 @@ cthread_keycreate (key)
/* Placeholder for key retrieval routine from Hurd cthreads library. */
int
weak_function
-cthread_getspecific (key, pval)
- cthread_key_t key;
- void **pval;
+cthread_getspecific (cthread_key_t key, void **pval)
{
*pval = NULL;
__set_errno (ENOSYS);
@@ -45,9 +42,7 @@ cthread_getspecific (key, pval)
/* Placeholder for key setting routine from Hurd cthreads library. */
int
weak_function
-cthread_setspecific (key, val)
- cthread_key_t key;
- void *val;
+cthread_setspecific (cthread_key_t key, void *val)
{
__set_errno (ENOSYS);
return -1;
@@ -56,8 +51,7 @@ cthread_setspecific (key, val)
/* Call cthread_getspecific which gets a pointer to the return value instead
of just returning it. */
void *
-__libc_getspecific (key)
- cthread_key_t key;
+__libc_getspecific (cthread_key_t key)
{
void *val;
cthread_getspecific (key, &val);
diff --git a/sysdeps/mach/hurd/euidaccess.c b/sysdeps/mach/hurd/euidaccess.c
index 266c82dfb9..cbb880ea03 100644
--- a/sysdeps/mach/hurd/euidaccess.c
+++ b/sysdeps/mach/hurd/euidaccess.c
@@ -23,9 +23,7 @@
#include <hurd.h>
int
-__euidaccess (file, type)
- const char *file;
- int type;
+__euidaccess (const char *file, int type)
{
error_t err;
file_t port;
diff --git a/sysdeps/mach/hurd/faccessat.c b/sysdeps/mach/hurd/faccessat.c
index 3b84e8757d..2348e9bc79 100644
--- a/sysdeps/mach/hurd/faccessat.c
+++ b/sysdeps/mach/hurd/faccessat.c
@@ -25,11 +25,7 @@
#include <hurd/fd.h>
int
-faccessat (fd, file, type, flag)
- int fd;
- const char *file;
- int type;
- int flag;
+faccessat (int fd, const char *file, int type, int flag)
{
error_t err;
file_t port;
diff --git a/sysdeps/mach/hurd/fchdir.c b/sysdeps/mach/hurd/fchdir.c
index 9c613b318e..932c652ba3 100644
--- a/sysdeps/mach/hurd/fchdir.c
+++ b/sysdeps/mach/hurd/fchdir.c
@@ -24,8 +24,7 @@
/* Change the current directory to FD. */
int
-__fchdir (fd)
- int fd;
+__fchdir (int fd)
{
return _hurd_change_directory_port_from_fd (&_hurd_ports[INIT_PORT_CWDIR],
fd);
diff --git a/sysdeps/mach/hurd/fchmod.c b/sysdeps/mach/hurd/fchmod.c
index fd1a6bd9cc..2b01917922 100644
--- a/sysdeps/mach/hurd/fchmod.c
+++ b/sysdeps/mach/hurd/fchmod.c
@@ -23,9 +23,7 @@
/* Change the permissions of the file referenced by FD to MODE. */
int
-__fchmod (fd, mode)
- int fd;
- mode_t mode;
+__fchmod (int fd, mode_t mode)
{
error_t err;
diff --git a/sysdeps/mach/hurd/fchmodat.c b/sysdeps/mach/hurd/fchmodat.c
index f678fb46a7..1ba678017e 100644
--- a/sysdeps/mach/hurd/fchmodat.c
+++ b/sysdeps/mach/hurd/fchmodat.c
@@ -25,11 +25,7 @@
#include <hurd/fd.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)
{
error_t err;
file_t port = __file_name_lookup_at (fd, flag, file, 0, 0);
diff --git a/sysdeps/mach/hurd/fchown.c b/sysdeps/mach/hurd/fchown.c
index 747150539b..fcbe7800be 100644
--- a/sysdeps/mach/hurd/fchown.c
+++ b/sysdeps/mach/hurd/fchown.c
@@ -23,10 +23,7 @@
/* Change the owner and group of the file referred to by FD. */
int
-__fchown (fd, owner, group)
- int fd;
- uid_t owner;
- gid_t group;
+__fchown (int fd, uid_t owner, gid_t group)
{
error_t err;
diff --git a/sysdeps/mach/hurd/fchownat.c b/sysdeps/mach/hurd/fchownat.c
index dd1ee9a990..d77c40459b 100644
--- a/sysdeps/mach/hurd/fchownat.c
+++ b/sysdeps/mach/hurd/fchownat.c
@@ -26,12 +26,7 @@
/* Change the owner and group of FILE. */
int
-fchownat (fd, file, owner, group, flag)
- int fd;
- const char *file;
- uid_t owner;
- gid_t group;
- int flag;
+fchownat (int fd, const char *file, uid_t owner, gid_t group, int flag)
{
error_t err;
file_t port = __file_name_lookup_at (fd, flag, file, 0, 0);
diff --git a/sysdeps/mach/hurd/flock.c b/sysdeps/mach/hurd/flock.c
index 7c716e9da4..4186c67e01 100644
--- a/sysdeps/mach/hurd/flock.c
+++ b/sysdeps/mach/hurd/flock.c
@@ -23,9 +23,7 @@
/* Apply or remove an advisory lock, according to OPERATION,
on the file FD refers to. */
int
-__flock (fd, operation)
- int fd;
- int operation;
+__flock (int fd, int operation)
{
error_t err;
diff --git a/sysdeps/mach/hurd/fsync.c b/sysdeps/mach/hurd/fsync.c
index 49fca8dcf4..04ce7294fb 100644
--- a/sysdeps/mach/hurd/fsync.c
+++ b/sysdeps/mach/hurd/fsync.c
@@ -22,8 +22,7 @@
/* Make all changes done to FD actually appear on disk. */
int
-fsync (fd)
- int fd;
+fsync (int fd)
{
error_t err = HURD_DPORT_USE (fd, __file_sync (port, 1, 0));
if (err)
diff --git a/sysdeps/mach/hurd/ftruncate.c b/sysdeps/mach/hurd/ftruncate.c
index f2134265cd..780c31483c 100644
--- a/sysdeps/mach/hurd/ftruncate.c
+++ b/sysdeps/mach/hurd/ftruncate.c
@@ -23,9 +23,7 @@
/* Truncate the file referenced by FD to LENGTH bytes. */
int
-__ftruncate (fd, length)
- int fd;
- __off_t length;
+__ftruncate (int fd, __off_t length)
{
error_t err;
if (err = HURD_DPORT_USE (fd, __file_set_size (port, length)))
diff --git a/sysdeps/mach/hurd/getgroups.c b/sysdeps/mach/hurd/getgroups.c
index bf5de3b348..679d4f01d7 100644
--- a/sysdeps/mach/hurd/getgroups.c
+++ b/sysdeps/mach/hurd/getgroups.c
@@ -22,9 +22,7 @@
#include <string.h>
int
-__getgroups (n, gidset)
- int n;
- gid_t *gidset;
+__getgroups (int n, gid_t *gidset)
{
error_t err;
int ngids;
diff --git a/sysdeps/mach/hurd/gethostname.c b/sysdeps/mach/hurd/gethostname.c
index a1fe95e7e7..f3fb9dd283 100644
--- a/sysdeps/mach/hurd/gethostname.c
+++ b/sysdeps/mach/hurd/gethostname.c
@@ -22,9 +22,7 @@
The result is null-terminated if LEN is large enough for the full
name and the terminator. */
int
-__gethostname (name, len)
- char *name;
- size_t len;
+__gethostname (char *name, size_t len)
{
/* The host name is just the contents of the file /etc/hostname. */
ssize_t n = _hurd_get_host_config ("/etc/hostname", name, len);
diff --git a/sysdeps/mach/hurd/getitimer.c b/sysdeps/mach/hurd/getitimer.c
index 96d7043bff..9da05c8b64 100644
--- a/sysdeps/mach/hurd/getitimer.c
+++ b/sysdeps/mach/hurd/getitimer.c
@@ -42,9 +42,7 @@ subtract_timeval (struct timeval *from, const struct timeval *subtract)
/* Set *VALUE to the current setting of timer WHICH.
Return 0 on success, -1 on errors. */
int
-__getitimer (which, value)
- enum __itimer_which which;
- struct itimerval *value;
+__getitimer (enum __itimer_which which, struct itimerval *value)
{
struct itimerval val;
struct timeval elapsed;
diff --git a/sysdeps/mach/hurd/getlogin_r.c b/sysdeps/mach/hurd/getlogin_r.c
index 9c66f865ab..ccdfe60b4f 100644
--- a/sysdeps/mach/hurd/getlogin_r.c
+++ b/sysdeps/mach/hurd/getlogin_r.c
@@ -25,9 +25,7 @@
If it cannot be determined or some other error occurred, return the error
code. Otherwise return 0. */
int
-__getlogin_r (name, name_len)
- char *name;
- size_t name_len;
+__getlogin_r (char *name, size_t name_len)
{
string_t login;
error_t err;
diff --git a/sysdeps/mach/hurd/getpgid.c b/sysdeps/mach/hurd/getpgid.c
index a27edae34c..65bd3c65bb 100644
--- a/sysdeps/mach/hurd/getpgid.c
+++ b/sysdeps/mach/hurd/getpgid.c
@@ -22,8 +22,7 @@
/* Get the process group ID of process PID. */
int
-__getpgid (pid)
- pid_t pid;
+__getpgid (pid_t pid)
{
error_t err;
pid_t pgrp;
diff --git a/sysdeps/mach/hurd/getrusage.c b/sysdeps/mach/hurd/getrusage.c
index 769ba8e023..1ad09b3c4d 100644
--- a/sysdeps/mach/hurd/getrusage.c
+++ b/sysdeps/mach/hurd/getrusage.c
@@ -26,9 +26,7 @@
/* Return resource usage information on process indicated by WHO
and put it in *USAGE. Returns 0 for success, -1 for failure. */
int
-__getrusage (who, usage)
- enum __rusage_who who;
- struct rusage *usage;
+__getrusage (enum __rusage_who who, struct rusage *usage)
{
struct task_basic_info bi;
struct task_events_info ei;
diff --git a/sysdeps/mach/hurd/getsockname.c b/sysdeps/mach/hurd/getsockname.c
index 4c26b6bd58..f0dd63567e 100644
--- a/sysdeps/mach/hurd/getsockname.c
+++ b/sysdeps/mach/hurd/getsockname.c
@@ -24,10 +24,7 @@
/* Put the local address of FD into *ADDR and its length in *LEN. */
int
-__getsockname (fd, addrarg, len)
- int fd;
- __SOCKADDR_ARG addrarg;
- socklen_t *len;
+__getsockname (int fd, __SOCKADDR_ARG addrarg, socklen_t *len)
{
error_t err;
struct sockaddr *addr = addrarg.__sockaddr__;
diff --git a/sysdeps/mach/hurd/group_member.c b/sysdeps/mach/hurd/group_member.c
index 991bd919eb..cc29782506 100644
--- a/sysdeps/mach/hurd/group_member.c
+++ b/sysdeps/mach/hurd/group_member.c
@@ -22,8 +22,7 @@
#include <hurd/id.h>
int
-__group_member (gid)
- gid_t gid;
+__group_member (gid_t gid)
{
int member = 0;
error_t err;
diff --git a/sysdeps/mach/hurd/isatty.c b/sysdeps/mach/hurd/isatty.c
index 3fd5077717..37971543aa 100644
--- a/sysdeps/mach/hurd/isatty.c
+++ b/sysdeps/mach/hurd/isatty.c
@@ -22,8 +22,7 @@
/* Return 1 if FD is a terminal, 0 if not. */
int
-__isatty (fd)
- int fd;
+__isatty (int fd)
{
error_t err;
mach_port_t id;
diff --git a/sysdeps/mach/hurd/lchown.c b/sysdeps/mach/hurd/lchown.c
index 8bfe9f8155..f924fe9f6a 100644
--- a/sysdeps/mach/hurd/lchown.c
+++ b/sysdeps/mach/hurd/lchown.c
@@ -24,10 +24,7 @@
/* Change the owner and group of FILE; if it's a link, do the link and
not the target. */
int
-__lchown (file, owner, group)
- const char *file;
- uid_t owner;
- gid_t group;
+__lchown (const char *file, uid_t owner, gid_t group)
{
error_t err;
file_t port = __file_name_lookup (file, O_NOLINK, 0);
diff --git a/sysdeps/mach/hurd/link.c b/sysdeps/mach/hurd/link.c
index 49e6249c9d..4685ae8889 100644
--- a/sysdeps/mach/hurd/link.c
+++ b/sysdeps/mach/hurd/link.c
@@ -22,9 +22,7 @@
/* Make a link to FROM called TO. */
int
-__link (from, to)
- const char *from;
- const char *to;
+__link (const char *from, const char *to)
{
error_t err;
file_t oldfile, linknode, todir;
diff --git a/sysdeps/mach/hurd/linkat.c b/sysdeps/mach/hurd/linkat.c
index 10f653d2c6..0dfa702bab 100644
--- a/sysdeps/mach/hurd/linkat.c
+++ b/sysdeps/mach/hurd/linkat.c
@@ -26,12 +26,7 @@
/* Make a link to FROM relative to FROMFD called TO relative to TOFD. */
int
-linkat (fromfd, from, tofd, to, flags)
- int fromfd;
- const char *from;
- int tofd;
- const char *to;
- int flags;
+linkat (int fromfd, const char *from, int tofd, const char *to, int flags)
{
error_t err;
file_t oldfile, linknode, todir;
diff --git a/sysdeps/mach/hurd/listen.c b/sysdeps/mach/hurd/listen.c
index 3be59d0ca1..dea1728fa1 100644
--- a/sysdeps/mach/hurd/listen.c
+++ b/sysdeps/mach/hurd/listen.c
@@ -26,9 +26,7 @@
Returns 0 on success, -1 for errors. */
int
-__listen (fd, n)
- int fd;
- int n;
+__listen (int fd, int n)
{
error_t err = HURD_DPORT_USE (fd, __socket_listen (port, n));
if (err)
diff --git a/sysdeps/mach/hurd/mkdir.c b/sysdeps/mach/hurd/mkdir.c
index 329f110a83..9b0db713d0 100644
--- a/sysdeps/mach/hurd/mkdir.c
+++ b/sysdeps/mach/hurd/mkdir.c
@@ -23,9 +23,7 @@
/* Create a directory named FILE_NAME with protections MODE. */
int
-__mkdir (file_name, mode)
- const char *file_name;
- mode_t mode;
+__mkdir (const char *file_name, mode_t mode)
{
error_t err;
const char *name;
diff --git a/sysdeps/mach/hurd/mkdirat.c b/sysdeps/mach/hurd/mkdirat.c
index 75560dc4f3..7b7501a013 100644
--- a/sysdeps/mach/hurd/mkdirat.c
+++ b/sysdeps/mach/hurd/mkdirat.c
@@ -24,10 +24,7 @@
#include <string.h>
int
-mkdirat (fd, path, mode)
- int fd;
- const char *path;
- mode_t mode;
+mkdirat (int fd, const char *path, mode_t mode)
{
error_t err;
const char *name;
diff --git a/sysdeps/mach/hurd/openat.c b/sysdeps/mach/hurd/openat.c
index 0d3e138890..84a2b08596 100644
--- a/sysdeps/mach/hurd/openat.c
+++ b/sysdeps/mach/hurd/openat.c
@@ -29,10 +29,7 @@
the directory associated with FD. If O_CREAT or O_TMPFILE is in OFLAG, a
third argument is the file protection. */
int
-__openat (fd, file, oflag)
- int fd;
- const char *file;
- int oflag;
+__openat (int fd, const char *file, int oflag)
{
mode_t mode;
io_t port;
diff --git a/sysdeps/mach/hurd/poll.c b/sysdeps/mach/hurd/poll.c
index 30a390cce6..cf42b2ea87 100644
--- a/sysdeps/mach/hurd/poll.c
+++ b/sysdeps/mach/hurd/poll.c
@@ -28,10 +28,7 @@
or -1 for errors. */
int
-__poll (fds, nfds, timeout)
- struct pollfd *fds;
- nfds_t nfds;
- int timeout;
+__poll (struct pollfd *fds, nfds_t nfds, int timeout)
{
struct timespec ts, *to;
diff --git a/sysdeps/mach/hurd/readlink.c b/sysdeps/mach/hurd/readlink.c
index b36a9494f9..8727d1ac20 100644
--- a/sysdeps/mach/hurd/readlink.c
+++ b/sysdeps/mach/hurd/readlink.c
@@ -25,10 +25,7 @@
LEN bytes of BUF. The contents are not null-terminated.
Returns the number of characters read, or -1 for errors. */
ssize_t
-__readlink (file_name, buf, len)
- const char *file_name;
- char *buf;
- size_t len;
+__readlink (const char *file_name, char *buf, size_t len)
{
error_t err;
file_t file;
diff --git a/sysdeps/mach/hurd/readlinkat.c b/sysdeps/mach/hurd/readlinkat.c
index b538a3bccf..5a92bb5fc3 100644
--- a/sysdeps/mach/hurd/readlinkat.c
+++ b/sysdeps/mach/hurd/readlinkat.c
@@ -26,11 +26,7 @@
than LEN bytes of BUF. The contents are not null-terminated.
Returns the number of characters read, or -1 for errors. */
ssize_t
-readlinkat (fd, file_name, buf, len)
- int fd;
- const char *file_name;
- char *buf;
- size_t len;
+readlinkat (int fd, const char *file_name, char *buf, size_t len)
{
error_t err;
file_t file;
diff --git a/sysdeps/mach/hurd/recv.c b/sysdeps/mach/hurd/recv.c
index 358380e7a6..832b39736a 100644
--- a/sysdeps/mach/hurd/recv.c
+++ b/sysdeps/mach/hurd/recv.c
@@ -26,11 +26,7 @@
Returns the number read or -1 for errors. */
ssize_t
-__recv (fd, buf, n, flags)
- int fd;
- void *buf;
- size_t n;
- int flags;
+__recv (int fd, void *buf, size_t n, int flags)
{
error_t err;
mach_port_t addrport;
diff --git a/sysdeps/mach/hurd/rename.c b/sysdeps/mach/hurd/rename.c
index e04371398e..ad580179bb 100644
--- a/sysdeps/mach/hurd/rename.c
+++ b/sysdeps/mach/hurd/rename.c
@@ -20,9 +20,7 @@
/* Rename the file OLD to NEW. */
int
-rename (old, new)
- const char *old;
- const char *new;
+rename (const char *old, const char *new)
{
error_t err;
file_t olddir, newdir;
diff --git a/sysdeps/mach/hurd/renameat.c b/sysdeps/mach/hurd/renameat.c
index eabf28f977..958499e80d 100644
--- a/sysdeps/mach/hurd/renameat.c
+++ b/sysdeps/mach/hurd/renameat.c
@@ -22,11 +22,7 @@
/* Rename the file OLD relative to OLDFD to NEW relative to NEWFD. */
int
-renameat (oldfd, old, newfd, new)
- int oldfd;
- const char *old;
- int newfd;
- const char *new;
+renameat (int oldfd, const char *old, int newfd, const char *new)
{
error_t err;
file_t olddir, newdir;
diff --git a/sysdeps/mach/hurd/revoke.c b/sysdeps/mach/hurd/revoke.c
index 3412e6c439..6bbb8dab3a 100644
--- a/sysdeps/mach/hurd/revoke.c
+++ b/sysdeps/mach/hurd/revoke.c
@@ -21,8 +21,7 @@
#include <hurd.h>
int
-revoke (file_name)
- const char *file_name;
+revoke (const char *file_name)
{
error_t err;
file_t file = __file_name_lookup (file_name, 0, 0);
diff --git a/sysdeps/mach/hurd/rewinddir.c b/sysdeps/mach/hurd/rewinddir.c
index 1e045f1584..06c7a41ce2 100644
--- a/sysdeps/mach/hurd/rewinddir.c
+++ b/sysdeps/mach/hurd/rewinddir.c
@@ -22,8 +22,7 @@
/* Rewind DIRP to the beginning of the directory. */
void
-__rewinddir (dirp)
- DIR *dirp;
+__rewinddir (DIR *dirp)
{
seekdir (dirp, (off_t) 0L);
}
diff --git a/sysdeps/mach/hurd/rmdir.c b/sysdeps/mach/hurd/rmdir.c
index f1ac498a10..1c18165187 100644
--- a/sysdeps/mach/hurd/rmdir.c
+++ b/sysdeps/mach/hurd/rmdir.c
@@ -22,8 +22,7 @@
/* Remove the directory FILE_NAME. */
int
-__rmdir (file_name)
- const char *file_name;
+__rmdir (const char *file_name)
{
error_t err;
const char *name;
diff --git a/sysdeps/mach/hurd/seekdir.c b/sysdeps/mach/hurd/seekdir.c
index d13561cf5e..ccbef320f6 100644
--- a/sysdeps/mach/hurd/seekdir.c
+++ b/sysdeps/mach/hurd/seekdir.c
@@ -24,9 +24,7 @@
/* Seek to position POS in DIRP. */
/* XXX should be __seekdir ? */
void
-seekdir (dirp, pos)
- DIR *dirp;
- long int pos;
+seekdir (DIR *dirp, long int pos)
{
__libc_lock_lock (dirp->__lock);
/* Change our entry index pointer to POS and discard any data already
diff --git a/sysdeps/mach/hurd/send.c b/sysdeps/mach/hurd/send.c
index 4ba85e1988..78de0f2c9b 100644
--- a/sysdeps/mach/hurd/send.c
+++ b/sysdeps/mach/hurd/send.c
@@ -23,11 +23,7 @@
/* Send N bytes of BUF to socket FD. Returns the number sent or -1. */
ssize_t
-__send (fd, buf, n, flags)
- int fd;
- const void *buf;
- size_t n;
- int flags;
+__send (int fd, const void *buf, size_t n, int flags)
{
error_t err;
size_t wrote;
diff --git a/sysdeps/mach/hurd/setdomain.c b/sysdeps/mach/hurd/setdomain.c
index 8f786d46c5..3949d1a7f2 100644
--- a/sysdeps/mach/hurd/setdomain.c
+++ b/sysdeps/mach/hurd/setdomain.c
@@ -21,9 +21,7 @@
/* Set the name of the current YP domain to NAME, which is LEN bytes long.
This call is restricted to the super-user. */
int
-setdomainname (name, len)
- const char *name;
- size_t len;
+setdomainname (const char *name, size_t len)
{
/* The NIS domain name is just the contents of the file /etc/nisdomain. */
ssize_t n = _hurd_set_host_config ("/etc/nisdomain", name, len);
diff --git a/sysdeps/mach/hurd/setegid.c b/sysdeps/mach/hurd/setegid.c
index 23a780db29..aee4a3da11 100644
--- a/sysdeps/mach/hurd/setegid.c
+++ b/sysdeps/mach/hurd/setegid.c
@@ -24,8 +24,7 @@
/* Set the effective user ID of the calling process to GID. */
int
-setegid (gid)
- gid_t gid;
+setegid (gid_t gid)
{
auth_t newauth;
error_t err;
diff --git a/sysdeps/mach/hurd/seteuid.c b/sysdeps/mach/hurd/seteuid.c
index dad9ffd68d..e2db6c5fc8 100644
--- a/sysdeps/mach/hurd/seteuid.c
+++ b/sysdeps/mach/hurd/seteuid.c
@@ -24,8 +24,7 @@
/* Set the effective user ID of the calling process to UID. */
int
-seteuid (uid)
- uid_t uid;
+seteuid (uid_t uid)
{
auth_t newauth;
error_t err;
diff --git a/sysdeps/mach/hurd/setgid.c b/sysdeps/mach/hurd/setgid.c
index 49d598e6d4..bb354ad8a7 100644
--- a/sysdeps/mach/hurd/setgid.c
+++ b/sysdeps/mach/hurd/setgid.c
@@ -27,8 +27,7 @@
and effective group IDs, and the saved set-group-ID to UID;
if not, the effective group ID is set to GID. */
int
-__setgid (gid)
- gid_t gid;
+__setgid (gid_t gid)
{
auth_t newauth;
error_t err;
diff --git a/sysdeps/mach/hurd/setgroups.c b/sysdeps/mach/hurd/setgroups.c
index 3c75d7c4a6..43260859d2 100644
--- a/sysdeps/mach/hurd/setgroups.c
+++ b/sysdeps/mach/hurd/setgroups.c
@@ -23,9 +23,7 @@
/* Set the group set for the current user to GROUPS (N of them). */
int
-setgroups (n, groups)
- size_t n;
- const gid_t *groups;
+setgroups (size_t n, const gid_t *groups)
{
error_t err;
auth_t newauth;
diff --git a/sysdeps/mach/hurd/sethostid.c b/sysdeps/mach/hurd/sethostid.c
index 727a83c2ea..51d5bdb33e 100644
--- a/sysdeps/mach/hurd/sethostid.c
+++ b/sysdeps/mach/hurd/sethostid.c
@@ -25,8 +25,7 @@
/* XXX should be __sethostid?
isn't hostid supposed to be hardwired and unchangeable? */
int
-sethostid (id)
- long int id;
+sethostid (long int id)
{
char buf[8], *bp;
ssize_t n;
diff --git a/sysdeps/mach/hurd/sethostname.c b/sysdeps/mach/hurd/sethostname.c
index 21b64e9686..469975eea0 100644
--- a/sysdeps/mach/hurd/sethostname.c
+++ b/sysdeps/mach/hurd/sethostname.c
@@ -22,9 +22,7 @@
This call is restricted to the super-user. */
/* XXX should be __sethostname ? */
int
-sethostname (name, len)
- const char *name;
- size_t len;
+sethostname (const char *name, size_t len)
{
/* The host name is just the contents of the file /etc/hostname. */
ssize_t n = _hurd_set_host_config ("/etc/hostname", name, len);
diff --git a/sysdeps/mach/hurd/setlogin.c b/sysdeps/mach/hurd/setlogin.c
index d9bfcb1c06..58176ad873 100644
--- a/sysdeps/mach/hurd/setlogin.c
+++ b/sysdeps/mach/hurd/setlogin.c
@@ -21,8 +21,7 @@
/* Set the login name returned by `getlogin'. */
int
-setlogin (name)
- const char *name;
+setlogin (const char *name)
{
error_t err;
if (err = __USEPORT (PROC, __proc_setlogin (port, name)))
diff --git a/sysdeps/mach/hurd/setpgid.c b/sysdeps/mach/hurd/setpgid.c
index 24b640f249..0b539d0bb6 100644
--- a/sysdeps/mach/hurd/setpgid.c
+++ b/sysdeps/mach/hurd/setpgid.c
@@ -24,9 +24,7 @@
If PID is zero, the current process's process group ID is set.
If PGID is zero, the process ID of the process is used. */
int
-__setpgid (pid, pgid)
- pid_t pid;
- pid_t pgid;
+__setpgid (pid_t pid, pid_t pgid)
{
error_t err;
unsigned int stamp;
diff --git a/sysdeps/mach/hurd/setregid.c b/sysdeps/mach/hurd/setregid.c
index c2b3daf41e..28b7855211 100644
--- a/sysdeps/mach/hurd/setregid.c
+++ b/sysdeps/mach/hurd/setregid.c
@@ -23,9 +23,7 @@
#include <string.h>
int
-__setregid (rgid, egid)
- gid_t rgid;
- gid_t egid;
+__setregid (gid_t rgid, gid_t egid)
{
auth_t newauth;
error_t err;
diff --git a/sysdeps/mach/hurd/setreuid.c b/sysdeps/mach/hurd/setreuid.c
index 070e93deb6..2ca6bb3458 100644
--- a/sysdeps/mach/hurd/setreuid.c
+++ b/sysdeps/mach/hurd/setreuid.c
@@ -23,9 +23,7 @@
#include <string.h>
int
-__setreuid (ruid, euid)
- uid_t ruid;
- uid_t euid;
+__setreuid (uid_t ruid, uid_t euid)
{
auth_t newauth;
error_t err;
diff --git a/sysdeps/mach/hurd/settimeofday.c b/sysdeps/mach/hurd/settimeofday.c
index b866fc772b..6fa4ae93e2 100644
--- a/sysdeps/mach/hurd/settimeofday.c
+++ b/sysdeps/mach/hurd/settimeofday.c
@@ -23,9 +23,7 @@
/* Set the current time of day and timezone information.
This call is restricted to the super-user. */
int
-__settimeofday (tv, tz)
- const struct timeval *tv;
- const struct timezone *tz;
+__settimeofday (const struct timeval *tv, const struct timezone *tz)
{
error_t err;
mach_port_t hostpriv;
diff --git a/sysdeps/mach/hurd/setuid.c b/sysdeps/mach/hurd/setuid.c
index 4b757b9607..7cb1cf87cf 100644
--- a/sysdeps/mach/hurd/setuid.c
+++ b/sysdeps/mach/hurd/setuid.c
@@ -27,8 +27,7 @@
and effective user IDs, and the saved set-user-ID to UID;
if not, the effective user ID is set to UID. */
int
-__setuid (uid)
- uid_t uid;
+__setuid (uid_t uid)
{
auth_t newauth;
error_t err;
diff --git a/sysdeps/mach/hurd/shutdown.c b/sysdeps/mach/hurd/shutdown.c
index fdaddbecc0..2ae4613d3b 100644
--- a/sysdeps/mach/hurd/shutdown.c
+++ b/sysdeps/mach/hurd/shutdown.c
@@ -29,9 +29,7 @@
Returns 0 on success, -1 for errors. */
/* XXX should be __shutdown ? */
int
-shutdown (fd, how)
- int fd;
- int how;
+shutdown (int fd, int how)
{
error_t err = HURD_DPORT_USE (fd, __socket_shutdown (port, how));
if (err)
diff --git a/sysdeps/mach/hurd/sigaction.c b/sysdeps/mach/hurd/sigaction.c
index 34be28f5e1..aba740776f 100644
--- a/sysdeps/mach/hurd/sigaction.c
+++ b/sysdeps/mach/hurd/sigaction.c
@@ -24,10 +24,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
-__sigaction (sig, act, oact)
- int sig;
- const struct sigaction *act;
- struct sigaction *oact;
+__sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
{
struct hurd_sigstate *ss;
struct sigaction a, old;
diff --git a/sysdeps/mach/hurd/sigaltstack.c b/sysdeps/mach/hurd/sigaltstack.c
index f573c5ce07..00f83e4be8 100644
--- a/sysdeps/mach/hurd/sigaltstack.c
+++ b/sysdeps/mach/hurd/sigaltstack.c
@@ -22,9 +22,7 @@
/* Run signals handlers on the stack specified by SS (if not NULL).
If OSS is not NULL, it is filled in with the old signal stack status. */
int
-__sigaltstack (argss, oss)
- const struct sigaltstack *argss;
- struct sigaltstack *oss;
+__sigaltstack (const struct sigaltstack *argss, struct sigaltstack *oss)
{
struct hurd_sigstate *s;
struct sigaltstack ss, old;
diff --git a/sysdeps/mach/hurd/sigpending.c b/sysdeps/mach/hurd/sigpending.c
index 254b055c8b..a941e1e59a 100644
--- a/sysdeps/mach/hurd/sigpending.c
+++ b/sysdeps/mach/hurd/sigpending.c
@@ -24,8 +24,7 @@
/* Store in SET all signals that are blocked and pending. */
/* XXX should be __sigpending ? */
int
-sigpending (set)
- sigset_t *set;
+sigpending (sigset_t *set)
{
struct hurd_sigstate *ss;
sigset_t pending;
diff --git a/sysdeps/mach/hurd/sigprocmask.c b/sysdeps/mach/hurd/sigprocmask.c
index 2e496dc63b..a1e8f444f8 100644
--- a/sysdeps/mach/hurd/sigprocmask.c
+++ b/sysdeps/mach/hurd/sigprocmask.c
@@ -25,10 +25,7 @@
according to HOW, which may be SIG_BLOCK, SIG_UNBLOCK or SIG_SETMASK.
If OSET is not NULL, store the old set of blocked signals in *OSET. */
int
-__sigprocmask (how, set, oset)
- int how;
- const sigset_t *set;
- sigset_t *oset;
+__sigprocmask (int how, const sigset_t *set, sigset_t *oset)
{
struct hurd_sigstate *ss;
sigset_t old, new;
diff --git a/sysdeps/mach/hurd/sigsuspend.c b/sysdeps/mach/hurd/sigsuspend.c
index 5bd7da9302..3e9e0f6387 100644
--- a/sysdeps/mach/hurd/sigsuspend.c
+++ b/sysdeps/mach/hurd/sigsuspend.c
@@ -24,8 +24,7 @@
/* 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)
{
struct hurd_sigstate *ss;
sigset_t newmask, oldmask, pending;
diff --git a/sysdeps/mach/hurd/socket.c b/sysdeps/mach/hurd/socket.c
index bb7daddb5e..9cdaedb6a2 100644
--- a/sysdeps/mach/hurd/socket.c
+++ b/sysdeps/mach/hurd/socket.c
@@ -26,10 +26,7 @@
protocol PROTOCOL. If PROTOCOL is zero, one is chosen automatically.
Returns a file descriptor for the new socket, or -1 for errors. */
int
-__socket (domain, type, protocol)
- int domain;
- int type;
- int protocol;
+__socket (int domain, int type, int protocol)
{
error_t err;
socket_t sock, server;
diff --git a/sysdeps/mach/hurd/symlink.c b/sysdeps/mach/hurd/symlink.c
index bf1b0a0399..9ddd8d4018 100644
--- a/sysdeps/mach/hurd/symlink.c
+++ b/sysdeps/mach/hurd/symlink.c
@@ -23,9 +23,7 @@
/* Make a link to FROM called TO. */
int
-__symlink (from, to)
- const char *from;
- const char *to;
+__symlink (const char *from, const char *to)
{
error_t err;
file_t dir, node;
diff --git a/sysdeps/mach/hurd/symlinkat.c b/sysdeps/mach/hurd/symlinkat.c
index 0a6a9363a6..c72b3a4176 100644
--- a/sysdeps/mach/hurd/symlinkat.c
+++ b/sysdeps/mach/hurd/symlinkat.c
@@ -28,10 +28,7 @@
/* Make a link to FROM called TO relative to FD. */
int
-symlinkat (from, fd, to)
- const char *from;
- int fd;
- const char *to;
+symlinkat (const char *from, int fd, const char *to)
{
error_t err;
file_t dir, node;
diff --git a/sysdeps/mach/hurd/telldir.c b/sysdeps/mach/hurd/telldir.c
index 21fb8f2bc0..ed5a325828 100644
--- a/sysdeps/mach/hurd/telldir.c
+++ b/sysdeps/mach/hurd/telldir.c
@@ -25,8 +25,7 @@
/* Return the current position of DIRP. */
/* XXX should be __telldir ? */
long int
-telldir (dirp)
- DIR *dirp;
+telldir (DIR *dirp)
{
return dirp->__entry_ptr;
}
diff --git a/sysdeps/mach/hurd/truncate.c b/sysdeps/mach/hurd/truncate.c
index 89661e683d..bbbda6496e 100644
--- a/sysdeps/mach/hurd/truncate.c
+++ b/sysdeps/mach/hurd/truncate.c
@@ -23,9 +23,7 @@
/* Truncate FILE_NAME to LENGTH bytes. */
int
-__truncate (file_name, length)
- const char *file_name;
- off_t length;
+__truncate (const char *file_name, off_t length)
{
error_t err;
file_t file = __file_name_lookup (file_name, O_WRITE, 0);
diff --git a/sysdeps/mach/hurd/umask.c b/sysdeps/mach/hurd/umask.c
index 8e1a9bebaa..3dc367a52a 100644
--- a/sysdeps/mach/hurd/umask.c
+++ b/sysdeps/mach/hurd/umask.c
@@ -20,8 +20,7 @@
/* Set the file creation mask to MASK, returning the old mask. */
mode_t
-__umask (mask)
- mode_t mask;
+__umask (mode_t mask)
{
mode_t omask;
mask &= 0777;
diff --git a/sysdeps/mach/hurd/unlink.c b/sysdeps/mach/hurd/unlink.c
index 607eb3a422..03350a6c2e 100644
--- a/sysdeps/mach/hurd/unlink.c
+++ b/sysdeps/mach/hurd/unlink.c
@@ -23,8 +23,7 @@
/* Remove the link named NAME. */
int
-__unlink (name)
- const char *name;
+__unlink (const char *name)
{
error_t err;
file_t dir;
diff --git a/sysdeps/mach/hurd/unlinkat.c b/sysdeps/mach/hurd/unlinkat.c
index 95151e6c4f..050f21dde7 100644
--- a/sysdeps/mach/hurd/unlinkat.c
+++ b/sysdeps/mach/hurd/unlinkat.c
@@ -26,10 +26,7 @@
/* Remove the link named NAME. */
int
-unlinkat (fd, name, flag)
- int fd;
- const char *name;
- int flag;
+unlinkat (int fd, const char *name, int flag)
{
error_t err;
file_t dir;