Commit e9019af6 by Kaveh R. Ghazi Committed by Kaveh Ghazi

physmem.c (physmem_total, [...]): De-ANSI-fy.

	* physmem.c (physmem_total, physmem_available): De-ANSI-fy.
	* configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
	pstat_getdynamic.

From-SVN: r63203
parent a7582c8c
2003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* physmem.c (physmem_total, physmem_available): De-ANSI-fy.
* configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
pstat_getdynamic.
2003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* Makefile.in (CFILES): Add physmem.c.
......
......@@ -114,6 +114,12 @@
/* Define if you have the psignal function. */
#undef HAVE_PSIGNAL
/* Define if you have the pstat_getdynamic function. */
#undef HAVE_PSTAT_GETDYNAMIC
/* Define if you have the pstat_getstatic function. */
#undef HAVE_PSTAT_GETSTATIC
/* Define if you have the putenv function. */
#undef HAVE_PUTENV
......
......@@ -219,6 +219,7 @@ if test "x" = "y"; then
AC_CHECK_FUNCS(strtod strtol strtoul tmpnam vasprintf vfprintf vprintf)
AC_CHECK_FUNCS(vsprintf waitpid getrusage on_exit psignal strerror strsignal)
AC_CHECK_FUNCS(sysconf times sbrk gettimeofday ffs)
AC_CHECK_FUNCS(pstat_getstatic pstat_getdynamic)
AC_CHECK_FUNCS(realpath canonicalize_file_name)
AC_DEFINE(HAVE_SYS_ERRLIST, 1, [Define if you have the sys_errlist variable.])
AC_DEFINE(HAVE_SYS_NERR, 1, [Define if you have the sys_nerr variable.])
......
......@@ -31,7 +31,7 @@
/* Return the total amount of physical memory. */
double
physmem_total (void)
physmem_total ()
{
#if defined _SC_PHYS_PAGES && defined _SC_PAGESIZE
{
......@@ -61,7 +61,7 @@ physmem_total (void)
/* Return the amount of physical memory available. */
double
physmem_available (void)
physmem_available ()
{
#if defined _SC_AVPHYS_PAGES && defined _SC_PAGESIZE
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment