about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/getpagesize.c2
-rw-r--r--sysdeps/mach/getsysstats.c8
-rw-r--r--sysdeps/mach/hurd/dl-sysdep.c2
-rw-r--r--sysdeps/mach/hurd/getclktck.c2
-rw-r--r--sysdeps/mach/hurd/getdtsz.c2
-rw-r--r--sysdeps/mach/hurd/getegid.c2
-rw-r--r--sysdeps/mach/hurd/geteuid.c2
-rw-r--r--sysdeps/mach/hurd/getgid.c2
-rw-r--r--sysdeps/mach/hurd/gethostid.c2
-rw-r--r--sysdeps/mach/hurd/getlogin.c2
-rw-r--r--sysdeps/mach/hurd/getpid.c2
-rw-r--r--sysdeps/mach/hurd/getppid.c2
-rw-r--r--sysdeps/mach/hurd/getuid.c2
-rw-r--r--sysdeps/mach/hurd/sync.c2
-rw-r--r--sysdeps/posix/clock.c2
-rw-r--r--sysdeps/unix/bsd/setsid.c2
-rw-r--r--sysdeps/unix/getpagesize.c2
-rw-r--r--sysdeps/unix/sysv/linux/getclktck.c2
-rw-r--r--sysdeps/unix/sysv/linux/gethostid.c2
-rw-r--r--sysdeps/unix/sysv/linux/getpagesize.c2
-rw-r--r--sysdeps/unix/sysv/linux/getsysstats.c8
21 files changed, 27 insertions, 27 deletions
diff --git a/sysdeps/mach/getpagesize.c b/sysdeps/mach/getpagesize.c
index fe8fec8b23..8bf49c9fc0 100644
--- a/sysdeps/mach/getpagesize.c
+++ b/sysdeps/mach/getpagesize.c
@@ -20,7 +20,7 @@
 
 /* Return the system page size.  */
 int
-__getpagesize ()
+__getpagesize (void)
 {
   return __vm_page_size;
 }
diff --git a/sysdeps/mach/getsysstats.c b/sysdeps/mach/getsysstats.c
index cc28f57c77..075511308c 100644
--- a/sysdeps/mach/getsysstats.c
+++ b/sysdeps/mach/getsysstats.c
@@ -24,7 +24,7 @@
 
 /* Return the number of processors configured on the system. */
 int
-__get_nprocs_conf ()
+__get_nprocs_conf (void)
 {
   struct host_basic_info hbi;
   kern_return_t err;
@@ -43,7 +43,7 @@ weak_alias (__get_nprocs_conf, get_nprocs_conf)
 
 /* Return the number of processors currently available on the system. */
 int
-__get_nprocs ()
+__get_nprocs (void)
 {
   struct host_basic_info hbi;
   kern_return_t err;
@@ -62,7 +62,7 @@ weak_alias (__get_nprocs, get_nprocs)
 
 /* Return the number of physical pages on the system. */
 long int
-__get_phys_pages ()
+__get_phys_pages (void)
 {
   struct host_basic_info hbi;
   kern_return_t err;
@@ -81,7 +81,7 @@ weak_alias (__get_phys_pages, get_phys_pages)
 
 /* Return the number of available physical pages */
 long int
-__get_avphys_pages ()
+__get_avphys_pages (void)
 {
   vm_statistics_data_t vs;
   kern_return_t err;
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
index 94b6d094a2..d85c22a036 100644
--- a/sysdeps/mach/hurd/dl-sysdep.c
+++ b/sysdeps/mach/hurd/dl-sysdep.c
@@ -553,7 +553,7 @@ __access (const char *file, int type)
 }
 
 pid_t weak_function
-__getpid ()
+__getpid (void)
 {
   pid_t pid, ppid;
   int orphaned;
diff --git a/sysdeps/mach/hurd/getclktck.c b/sysdeps/mach/hurd/getclktck.c
index 69be2cc352..2eea58df6a 100644
--- a/sysdeps/mach/hurd/getclktck.c
+++ b/sysdeps/mach/hurd/getclktck.c
@@ -21,7 +21,7 @@
 /* Return frequency of `times'.
    Since Mach reports CPU times in microseconds, we always use 1 million.  */
 int
-__getclktck ()
+__getclktck (void)
 {
   return 1000000;
 }
diff --git a/sysdeps/mach/hurd/getdtsz.c b/sysdeps/mach/hurd/getdtsz.c
index 16a0b78112..db5104c6b4 100644
--- a/sysdeps/mach/hurd/getdtsz.c
+++ b/sysdeps/mach/hurd/getdtsz.c
@@ -24,7 +24,7 @@
 /* Return the maximum number of file descriptors the current process
    could possibly have (until it raises the resource limit).  */
 int
-__getdtablesize ()
+__getdtablesize (void)
 {
   rlim_t limit;
 
diff --git a/sysdeps/mach/hurd/getegid.c b/sysdeps/mach/hurd/getegid.c
index 3ab46ed20d..dac104d006 100644
--- a/sysdeps/mach/hurd/getegid.c
+++ b/sysdeps/mach/hurd/getegid.c
@@ -22,7 +22,7 @@
 
 /* Get the effective group ID of the calling process.  */
 gid_t
-__getegid ()
+__getegid (void)
 {
   error_t err;
   gid_t egid;
diff --git a/sysdeps/mach/hurd/geteuid.c b/sysdeps/mach/hurd/geteuid.c
index e30c028b1c..32e59c2b1b 100644
--- a/sysdeps/mach/hurd/geteuid.c
+++ b/sysdeps/mach/hurd/geteuid.c
@@ -22,7 +22,7 @@
 
 /* Get the effective user ID of the calling process.  */
 uid_t
-__geteuid ()
+__geteuid (void)
 {
   error_t err;
   uid_t euid;
diff --git a/sysdeps/mach/hurd/getgid.c b/sysdeps/mach/hurd/getgid.c
index 9168994386..3c6397d2f4 100644
--- a/sysdeps/mach/hurd/getgid.c
+++ b/sysdeps/mach/hurd/getgid.c
@@ -22,7 +22,7 @@
 
 /* Get the real group ID of the calling process.  */
 gid_t
-__getgid ()
+__getgid (void)
 {
   error_t err;
   gid_t gid;
diff --git a/sysdeps/mach/hurd/gethostid.c b/sysdeps/mach/hurd/gethostid.c
index d1d0c6225d..4fc3016977 100644
--- a/sysdeps/mach/hurd/gethostid.c
+++ b/sysdeps/mach/hurd/gethostid.c
@@ -21,7 +21,7 @@
 
 /* Return the current machine's Internet number.  */
 long int
-gethostid ()
+gethostid (void)
 {
   /* The hostid is just the contents of the file /etc/hostid,
      kept as text of hexadecimal digits.  */
diff --git a/sysdeps/mach/hurd/getlogin.c b/sysdeps/mach/hurd/getlogin.c
index d88c043774..ce638afaf8 100644
--- a/sysdeps/mach/hurd/getlogin.c
+++ b/sysdeps/mach/hurd/getlogin.c
@@ -23,7 +23,7 @@
 /* Return the login name of the user, or NULL if it can't be determined.
    The returned pointer, if not NULL, is good only until the next call.  */
 char *
-getlogin ()
+getlogin (void)
 {
   static char login[1024];	/* XXX */
   error_t err;
diff --git a/sysdeps/mach/hurd/getpid.c b/sysdeps/mach/hurd/getpid.c
index e0a8865d4d..0c595f7df7 100644
--- a/sysdeps/mach/hurd/getpid.c
+++ b/sysdeps/mach/hurd/getpid.c
@@ -21,7 +21,7 @@
 
 /* Get the process ID of the calling process.  */
 pid_t
-__getpid ()
+__getpid (void)
 {
   /* Assumes atomic word fetch and store, so doesn't lock _hurd_pid_lock.  */
   return _hurd_pid;
diff --git a/sysdeps/mach/hurd/getppid.c b/sysdeps/mach/hurd/getppid.c
index c622ee9e68..9e35645a26 100644
--- a/sysdeps/mach/hurd/getppid.c
+++ b/sysdeps/mach/hurd/getppid.c
@@ -23,7 +23,7 @@
 
 /* Get the parent process ID of the calling process.  */
 pid_t
-__getppid ()
+__getppid (void)
 {
   /* Assumes atomic word fetch and store, so doesn't lock _hurd_pid_lock.  */
   return _hurd_ppid;
diff --git a/sysdeps/mach/hurd/getuid.c b/sysdeps/mach/hurd/getuid.c
index fa9e2f8b40..6d9a707ca3 100644
--- a/sysdeps/mach/hurd/getuid.c
+++ b/sysdeps/mach/hurd/getuid.c
@@ -22,7 +22,7 @@
 
 /* Get the real user ID of the calling process.  */
 uid_t
-__getuid ()
+__getuid (void)
 {
   error_t err;
   uid_t uid;
diff --git a/sysdeps/mach/hurd/sync.c b/sysdeps/mach/hurd/sync.c
index f4ddf7076b..775182edab 100644
--- a/sysdeps/mach/hurd/sync.c
+++ b/sysdeps/mach/hurd/sync.c
@@ -21,7 +21,7 @@
 
 /* Make all changes done to all files actually appear on disk.  */
 void
-sync ()
+sync (void)
 {
   /* This is not actually synchronous; we don't wait.  */
   error_t err = __USEPORT (CRDIR, __file_syncfs (port, 0, 1));
diff --git a/sysdeps/posix/clock.c b/sysdeps/posix/clock.c
index e762fa7f63..98fe3b8ba8 100644
--- a/sysdeps/posix/clock.c
+++ b/sysdeps/posix/clock.c
@@ -20,7 +20,7 @@
 
 /* Return the time used by the program so far (user time + system time).  */
 clock_t
-clock ()
+clock (void)
 {
   struct tms buf;
 
diff --git a/sysdeps/unix/bsd/setsid.c b/sysdeps/unix/bsd/setsid.c
index 6c2f22c7a9..a42dc1dfd8 100644
--- a/sysdeps/unix/bsd/setsid.c
+++ b/sysdeps/unix/bsd/setsid.c
@@ -25,7 +25,7 @@
    The process group IDs of the session and the calling process
    are set to the process ID of the calling process, which is returned.  */
 int
-__setsid ()
+__setsid (void)
 {
   pid_t pid = getpid ();
   int tty;
diff --git a/sysdeps/unix/getpagesize.c b/sysdeps/unix/getpagesize.c
index 3d1fe8cb73..18b2503d1e 100644
--- a/sysdeps/unix/getpagesize.c
+++ b/sysdeps/unix/getpagesize.c
@@ -20,7 +20,7 @@
 
 /* Return the system page size.  */
 int
-__getpagesize ()
+__getpagesize (void)
 {
 #ifdef	EXEC_PAGESIZE
   return EXEC_PAGESIZE;
diff --git a/sysdeps/unix/sysv/linux/getclktck.c b/sysdeps/unix/sysv/linux/getclktck.c
index 55e9f4f92f..47ec6c06db 100644
--- a/sysdeps/unix/sysv/linux/getclktck.c
+++ b/sysdeps/unix/sysv/linux/getclktck.c
@@ -25,7 +25,7 @@
 
 /* Return frequency of times().  */
 int
-__getclktck ()
+__getclktck (void)
 {
   return GLRO(dl_clktck) ?: SYSTEM_CLK_TCK;
 }
diff --git a/sysdeps/unix/sysv/linux/gethostid.c b/sysdeps/unix/sysv/linux/gethostid.c
index 2cc3bb65ac..6f551b7682 100644
--- a/sysdeps/unix/sysv/linux/gethostid.c
+++ b/sysdeps/unix/sysv/linux/gethostid.c
@@ -66,7 +66,7 @@ sethostid (id)
 # include <netinet/in.h>
 
 long int
-gethostid ()
+gethostid (void)
 {
   char hostname[MAXHOSTNAMELEN + 1];
   size_t buflen;
diff --git a/sysdeps/unix/sysv/linux/getpagesize.c b/sysdeps/unix/sysv/linux/getpagesize.c
index 2a9184dad3..e1454158c4 100644
--- a/sysdeps/unix/sysv/linux/getpagesize.c
+++ b/sysdeps/unix/sysv/linux/getpagesize.c
@@ -24,7 +24,7 @@
 
 /* Return the system page size.  */
 int
-__getpagesize ()
+__getpagesize (void)
 {
   assert (GLRO(dl_pagesize) != 0);
   return GLRO(dl_pagesize);
diff --git a/sysdeps/unix/sysv/linux/getsysstats.c b/sysdeps/unix/sysv/linux/getsysstats.c
index 249bd19c39..88f28c9e19 100644
--- a/sysdeps/unix/sysv/linux/getsysstats.c
+++ b/sysdeps/unix/sysv/linux/getsysstats.c
@@ -124,7 +124,7 @@ next_line (int fd, char *const buffer, char **cp, char **re,
 
 
 int
-__get_nprocs ()
+__get_nprocs (void)
 {
   static int cached_result;
   static time_t timestamp;
@@ -234,7 +234,7 @@ weak_alias (__get_nprocs, get_nprocs)
 /* On some architectures it is possible to distinguish between configured
    and active cpus.  */
 int
-__get_nprocs_conf ()
+__get_nprocs_conf (void)
 {
   /* XXX Here will come a test for the new system call.  */
 
@@ -333,7 +333,7 @@ phys_pages_info (const char *format)
    But not all systems have support for the /proc filesystem.  If it
    is not available we return -1 as an error signal.  */
 long int
-__get_phys_pages ()
+__get_phys_pages (void)
 {
   /* XXX Here will come a test for the new system call.  */
 
@@ -354,7 +354,7 @@ weak_alias (__get_phys_pages, get_phys_pages)
    But not all systems have support for the /proc filesystem.  If it
    is not available we return -1 as an error signal.  */
 long int
-__get_avphys_pages ()
+__get_avphys_pages (void)
 {
   /* XXX Here will come a test for the new system call.  */