aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/getsysstats.c6
-rw-r--r--sysdeps/generic/sys/sysinfo.h8
2 files changed, 7 insertions, 7 deletions
diff --git a/sysdeps/generic/getsysstats.c b/sysdeps/generic/getsysstats.c
index d43a86ae5a..bc517b7a75 100644
--- a/sysdeps/generic/getsysstats.c
+++ b/sysdeps/generic/getsysstats.c
@@ -1,5 +1,5 @@
/* getsysstats - Determine various system internal values, stub version.
- Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
@@ -44,7 +44,7 @@ weak_alias (__get_nprocs, get_nprocs)
link_warning (get_nprocs, "warning: get_nprocs will always return 1")
-int
+long int
__get_phys_pages ()
{
/* We have no general way to determine this value. */
@@ -56,7 +56,7 @@ weak_alias (__get_phys_pages, get_phys_pages)
stub_warning (get_phys_pages)
-int
+long int
__get_avphys_pages ()
{
/* We have no general way to determine this value. */
diff --git a/sysdeps/generic/sys/sysinfo.h b/sysdeps/generic/sys/sysinfo.h
index e4ef69b902..01c5474258 100644
--- a/sysdeps/generic/sys/sysinfo.h
+++ b/sysdeps/generic/sys/sysinfo.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -17,8 +17,8 @@
Boston, MA 02111-1307, USA. */
#ifndef _SYS_SYSINFO_H
-
#define _SYS_SYSINFO_H 1
+
#include <features.h>
/* Return number of configured processors. */
@@ -29,9 +29,9 @@ extern int get_nprocs (void) __THROW;
/* Return number of physical pages of memory in the system. */
-extern int get_phys_pages (void) __THROW;
+extern long int get_phys_pages (void) __THROW;
/* Return number of available physical pages of memory in the system. */
-extern int get_avphys_pages (void) __THROW;
+extern long int get_avphys_pages (void) __THROW;
#endif /* sys/sysinfo.h */