From: Bruno Haible Date: Tue, 9 Sep 2025 10:44:36 +0000 (+0200) Subject: physmem: Remove support for OSF/1. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecb38797c8c2317883ba58b30f0c39a34cc6b3f2;p=thirdparty%2Fgnulib.git physmem: Remove support for OSF/1. * lib/physmem.c: Don't include , . (physmem_total, physmem_claimable): Remove code for OSF/1. --- diff --git a/ChangeLog b/ChangeLog index 40988ca0bf..9d1a4e59f1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2025-09-09 Bruno Haible + physmem: Remove support for OSF/1. + * lib/physmem.c: Don't include , . + (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. diff --git a/lib/physmem.c b/lib/physmem.c index f2e60effda..d0b27bcc39 100644 --- a/lib/physmem.c +++ b/lib/physmem.c @@ -35,18 +35,10 @@ #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 #endif -#if HAVE_MACHINE_HAL_SYSINFO_H /* OSF/1 */ -# include -#endif - -#if HAVE_SYS_TABLE_H /* OSF/1 */ -# include -#endif - #include #if HAVE_SYS_PARAM_H @@ -144,21 +136,6 @@ physmem_total (void) } #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; @@ -331,21 +308,6 @@ physmem_claimable (double aggressivity) } #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;