lib/physmem.c


Log

Author Commit Date CI Message
Paul Eggert 6375cdce 2003-09-09T23:28:39 (physmem_total, physmem_available, main): Define with prototypes.
Paul Eggert 33ad5e9f 2003-08-15T03:23:11 Merge in portability changes from gcc/libiberty to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there for credits and details. Thanks to Kaveh Ghazi for helping to keep these files in sync. (ARRAY_SIZE): Define it. (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
Jim Meyering d774ba63 2001-11-16T09:20:25 [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>. (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to determine the amount of total physical memory, use pstat_getstatic. HPUX-11 doesn't define _SC_PHYS_PAGES. (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]: If sysconf couldn't be used to determine the amount of available physical memory, use both pstat_getstatic and pstat_getdynamic. Based on a patch from Bob Proulx.
Jim Meyering b4428806 2000-12-19T08:22:18 *** empty log message ***