summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-03-20 14:34:48 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-03-20 14:38:54 -0700
commit74f67044d995d7f2c37943589724bfbd72aaa65f (patch)
treeabfc0e4814e1a84900998dc33e4dbd3bf20d09cf
parentc4908fbfb34d0dfb9dc36308a271fe280593c36b (diff)
unifdef -Usgi
SGI's End of Support Life for Irix was December 2013 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--get_load.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/get_load.c b/get_load.c
index 026ec6b..cb4e4f4 100644
--- a/get_load.c
+++ b/get_load.c
@@ -142,9 +142,6 @@ void GetLoadPoint(
# include <sys/param.h>
# endif
-# ifdef sgi
-# define FSCALE 1024.0
-# endif
# ifdef __osf__
/*
@@ -521,11 +518,6 @@ void GetLoadPoint(
# define KERNEL_FILE "/hp-ux"
# endif /* hpux */
-# ifdef sgi
-# if (OSMAJORVERSION > 4)
-# define KERNEL_FILE "/unix"
-# endif
-# endif
/*
* provide default for everyone else
@@ -569,9 +561,6 @@ void GetLoadPoint(
# endif /* hp9000s800 */
# endif /* hpux */
-# ifdef sgi
-# define KERNEL_LOAD_VARIABLE "avenrun"
-# endif /* sgi */
# endif /* KERNEL_LOAD_VARIABLE */
@@ -603,7 +592,7 @@ static long loadavg_seek;
void InitLoadPoint()
{
-# if !defined(SVR4) && !defined(sgi) && !defined(AIXV5) && !(BSD >= 199103) && !defined(__APPLE__)
+# if !defined(SVR4) && !defined(AIXV5) && !(BSD >= 199103) && !defined(__APPLE__)
extern void nlist();
# endif
@@ -634,13 +623,13 @@ void GetLoadPoint( w, closure, call_data )
(void) lseek(kmem, loadavg_seek, 0);
-# if defined(SVR4) || defined(sgi) || (BSD >= 199103)
+# if defined(SVR4) || (BSD >= 199103)
{
long temp;
(void) read(kmem, (char *)&temp, sizeof(long));
*loadavg = (double)temp/FSCALE;
}
-# else /* else not SVR4 or sgi or BSD */
+# else /* else not SVR4 or BSD */
(void) read(kmem, (char *)loadavg, sizeof(double));
# endif /* SVR4 or ... else */
return;