2025-09-09 Bruno Haible <bruno@clisp.org>
+ physmem: Remove support for OSF/1.
+ * lib/physmem.c: Don't include <machine/hal_sysinfo.h>, <sys/table.h>.
+ (physmem_total, physmem_claimable): Remove code for OSF/1.
+
mountlist: Remove support for OSF/1.
* m4/mountlist.m4 (gl_MOUNTLIST): Update description of
MOUNTED_GETFSSTAT.
#endif
#if HAVE_SYS_SYSINFO_H
-/* Linux, AIX, HP-UX, IRIX, OSF/1, Solaris, Cygwin, Android */
+/* Linux, AIX, HP-UX, IRIX, Solaris, Cygwin, Android */
# include <sys/sysinfo.h>
#endif
-#if HAVE_MACHINE_HAL_SYSINFO_H /* OSF/1 */
-# include <machine/hal_sysinfo.h>
-#endif
-
-#if HAVE_SYS_TABLE_H /* OSF/1 */
-# include <sys/table.h>
-#endif
-
#include <sys/types.h>
#if HAVE_SYS_PARAM_H
}
#endif
-#if HAVE_GETSYSINFO && defined GSI_PHYSMEM
- { /* This works on Tru64 UNIX V4/5. */
- int physmem;
-
- if (getsysinfo (GSI_PHYSMEM, (caddr_t) &physmem, sizeof (physmem),
- NULL, NULL, NULL) == 1)
- {
- double kbytes = physmem;
-
- if (0 <= kbytes)
- return kbytes * 1024.0;
- }
- }
-#endif
-
#if HAVE_SYSCTL && !(defined __GLIBC__ && defined __linux__) && defined HW_PHYSMEM
{ /* This works on *bsd, kfreebsd-gnu, and darwin. */
unsigned int physmem;
}
#endif
-#if HAVE_TABLE && defined TBL_VMSTATS
- { /* This works on Tru64 UNIX V4/5. */
- struct tbl_vmstats vmstats;
-
- if (table (TBL_VMSTATS, 0, &vmstats, 1, sizeof (vmstats)) == 1)
- {
- double pages = vmstats.free_count;
- double pagesize = vmstats.pagesize;
-
- if (0 <= pages && 0 <= pagesize)
- return pages * pagesize;
- }
- }
-#endif
-
#if HAVE_SYSCTL && !(defined __GLIBC__ && defined __linux__) && defined HW_USERMEM
{ /* This works on *bsd, kfreebsd-gnu, and darwin. */
unsigned int usermem;