about summary refs log tree commit diff
path: root/posix
diff options
context:
space:
mode:
Diffstat (limited to 'posix')
-rw-r--r--posix/_exit.c3
-rw-r--r--posix/alarm.c3
-rw-r--r--posix/confstr.c5
-rw-r--r--posix/fpathconf.c4
-rw-r--r--posix/getgroups.c4
-rw-r--r--posix/getpgid.c3
-rw-r--r--posix/group_member.c3
-rw-r--r--posix/pathconf.c4
-rw-r--r--posix/sched_getaffinity.c5
-rw-r--r--posix/sched_setaffinity.c5
-rw-r--r--posix/setgid.c3
-rw-r--r--posix/setpgid.c4
-rw-r--r--posix/setuid.c3
-rw-r--r--posix/sleep.c3
-rw-r--r--posix/sysconf.c3
-rw-r--r--posix/times.c3
-rw-r--r--posix/uname.c3
-rw-r--r--posix/waitid.c6
18 files changed, 18 insertions, 49 deletions
diff --git a/posix/_exit.c b/posix/_exit.c
index f4d76a10d0..c8cf1ef7b0 100644
--- a/posix/_exit.c
+++ b/posix/_exit.c
@@ -22,8 +22,7 @@
    terminate program execution, using the low-order 8 bits of the
    given integer as status.  */
 void
-_exit (status)
-     int status;
+_exit (int status)
 {
   status &= 0xff;
   abort ();
diff --git a/posix/alarm.c b/posix/alarm.c
index 1ecfc4fbb8..33e5c27eeb 100644
--- a/posix/alarm.c
+++ b/posix/alarm.c
@@ -26,8 +26,7 @@
    to 0 and check its value after calling `alarm', and this might tell you.
    The signal may come late due to processor scheduling.  */
 unsigned int
-alarm (seconds)
-     unsigned int seconds;
+alarm (unsigned int seconds)
 {
   __set_errno (ENOSYS);
   return 0;
diff --git a/posix/confstr.c b/posix/confstr.c
index 7271c5c55f..56f49b9595 100644
--- a/posix/confstr.c
+++ b/posix/confstr.c
@@ -29,10 +29,7 @@
    of BUF with the value corresponding to NAME and zero-terminate BUF.
    Return the number of bytes required to hold NAME's entire value.  */
 size_t
-confstr (name, buf, len)
-     int name;
-     char *buf;
-     size_t len;
+confstr (int name, char *buf, size_t len)
 {
   const char *string = "";
   size_t string_len = 1;
diff --git a/posix/fpathconf.c b/posix/fpathconf.c
index c4f1cfec29..cf6e5103f1 100644
--- a/posix/fpathconf.c
+++ b/posix/fpathconf.c
@@ -22,9 +22,7 @@
 
 /* Get file-specific information about descriptor FD.  */
 long int
-__fpathconf (fd, name)
-     int fd;
-     int name;
+__fpathconf (int fd, int name)
 {
   if (fd < 0)
     {
diff --git a/posix/getgroups.c b/posix/getgroups.c
index d8288129dc..49dc5b3d0b 100644
--- a/posix/getgroups.c
+++ b/posix/getgroups.c
@@ -26,9 +26,7 @@
    the calling process is in.  Otherwise, fill in the group IDs
    of its supplementary groups in LIST and return the number written.  */
 int
-__getgroups (size, list)
-     int size;
-     gid_t *list;
+__getgroups (int size, gid_t *list)
 {
 #if defined (NGROUPS_MAX) && NGROUPS_MAX == 0
   /* The system has no supplementary groups.  */
diff --git a/posix/getpgid.c b/posix/getpgid.c
index 05f72c34ab..8de62cbdbe 100644
--- a/posix/getpgid.c
+++ b/posix/getpgid.c
@@ -20,8 +20,7 @@
 
 /* Get the process group ID of process PID.  */
 pid_t
-__getpgid (pid)
-     pid_t pid;
+__getpgid (pid_t pid)
 {
   return pid;
 }
diff --git a/posix/group_member.c b/posix/group_member.c
index 032b1cea5b..fce7d441ce 100644
--- a/posix/group_member.c
+++ b/posix/group_member.c
@@ -26,8 +26,7 @@
 #endif
 
 int
-__group_member (gid)
-     gid_t gid;
+__group_member (gid_t gid)
 {
   int n, size;
   gid_t *groups;
diff --git a/posix/pathconf.c b/posix/pathconf.c
index 2343d8dcdf..37cc406627 100644
--- a/posix/pathconf.c
+++ b/posix/pathconf.c
@@ -22,9 +22,7 @@
 
 /* Get file-specific information about PATH.  */
 long int
-__pathconf (path, name)
-     const char *path;
-     int name;
+__pathconf (const char *path, int name)
 {
   if (path == NULL)
     {
diff --git a/posix/sched_getaffinity.c b/posix/sched_getaffinity.c
index 2d8f838ae8..9e059d4096 100644
--- a/posix/sched_getaffinity.c
+++ b/posix/sched_getaffinity.c
@@ -22,10 +22,7 @@
 
 /* Retrieve the CPU affinity mask for a particular process.  */
 int
-sched_getaffinity (pid, cpusetsize, cpuset)
-     pid_t pid;
-     size_t cpusetsize;
-     cpu_set_t *cpuset;
+sched_getaffinity (pid_t pid, size_t cpusetsize, cpu_set_t *cpuset)
 {
   __set_errno (ENOSYS);
   return -1;
diff --git a/posix/sched_setaffinity.c b/posix/sched_setaffinity.c
index 579fc390e5..c07bbcf0ec 100644
--- a/posix/sched_setaffinity.c
+++ b/posix/sched_setaffinity.c
@@ -22,10 +22,7 @@
 
 /* Retrieve the CPU affinity mask for a particular process.  */
 int
-sched_setaffinity (pid, cpusetsize, cpuset)
-     pid_t pid;
-     size_t cpusetsize;
-     const cpu_set_t *cpuset;
+sched_setaffinity (pid_t pid, size_t cpusetsize, const cpu_set_t *cpuset)
 {
   __set_errno (ENOSYS);
   return -1;
diff --git a/posix/setgid.c b/posix/setgid.c
index 4a37cc77d8..42f3ca2cc4 100644
--- a/posix/setgid.c
+++ b/posix/setgid.c
@@ -24,8 +24,7 @@
    and effective group IDs, and the saved set-group-ID to GID;
    if not, the effective group ID is set to GID.  */
 int
-__setgid (gid)
-     gid_t gid;
+__setgid (gid_t gid)
 {
   __set_errno (ENOSYS);
   return -1;
diff --git a/posix/setpgid.c b/posix/setpgid.c
index 7289148d74..a01af84294 100644
--- a/posix/setpgid.c
+++ b/posix/setpgid.c
@@ -22,9 +22,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)
-     int pid;
-     int pgid;
+__setpgid (int pid, int pgid)
 {
   __set_errno (ENOSYS);
   return -1;
diff --git a/posix/setuid.c b/posix/setuid.c
index 794eb02508..4a53cbde21 100644
--- a/posix/setuid.c
+++ b/posix/setuid.c
@@ -24,8 +24,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)
 {
   __set_errno (ENOSYS);
   return -1;
diff --git a/posix/sleep.c b/posix/sleep.c
index 0ae79c1c4b..b5a7077d02 100644
--- a/posix/sleep.c
+++ b/posix/sleep.c
@@ -28,8 +28,7 @@
    signal afterwards is undefined.  There is no return value to indicate
    error, but if `sleep' returns SECONDS, it probably didn't work.  */
 unsigned int
-__sleep (seconds)
-     unsigned int seconds;
+__sleep (unsigned int seconds)
 {
   __set_errno (ENOSYS);
   return seconds;
diff --git a/posix/sysconf.c b/posix/sysconf.c
index 0ad15c24ff..31910e003b 100644
--- a/posix/sysconf.c
+++ b/posix/sysconf.c
@@ -28,8 +28,7 @@
 
 /* Get the value of the system variable NAME.  */
 long int
-__sysconf (name)
-     int name;
+__sysconf (int name)
 {
   switch (name)
     {
diff --git a/posix/times.c b/posix/times.c
index 48ee9cdfa1..fb6a28a9a1 100644
--- a/posix/times.c
+++ b/posix/times.c
@@ -24,8 +24,7 @@
    Return the elapsed real time, or (clock_t) -1 for errors.
    All times are in CLK_TCKths of a second.  */
 clock_t
-__times (buffer)
-     struct tms *buffer;
+__times (struct tms *buffer)
 {
   if (buffer == NULL)
     {
diff --git a/posix/uname.c b/posix/uname.c
index 072e868151..22591b3877 100644
--- a/posix/uname.c
+++ b/posix/uname.c
@@ -26,8 +26,7 @@
 
 /* Put information about the system in NAME.  */
 int
-__uname (name)
-     struct utsname *name;
+__uname (struct utsname *name)
 {
   int save;
 
diff --git a/posix/waitid.c b/posix/waitid.c
index a82462fa80..f72bca9297 100644
--- a/posix/waitid.c
+++ b/posix/waitid.c
@@ -22,11 +22,7 @@
 #include <sys/wait.h>
 
 int
-__waitid (idtype, id, infop, options)
-     idtype_t idtype;
-     id_t id;
-     siginfo_t *infop;
-     int options;
+__waitid (idtype_t idtype, id_t id, siginfo_t *infop, int options)
 {
   __set_errno (ENOSYS);
   return -1;