From 74f67044d995d7f2c37943589724bfbd72aaa65f Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 20 Mar 2022 14:34:48 -0700 Subject: unifdef -Usgi SGI's End of Support Life for Irix was December 2013 Signed-off-by: Alan Coopersmith --- get_load.c | 17 +++-------------- 1 file 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 # 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; -- cgit v1.2.3