diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-03-20 14:34:48 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-03-20 14:38:54 -0700 |
commit | 74f67044d995d7f2c37943589724bfbd72aaa65f (patch) | |
tree | abfc0e4814e1a84900998dc33e4dbd3bf20d09cf /get_load.c | |
parent | c4908fbfb34d0dfb9dc36308a271fe280593c36b (diff) |
unifdef -Usgi
SGI's End of Support Life for Irix was December 2013
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'get_load.c')
-rw-r--r-- | get_load.c | 17 |
1 files changed, 3 insertions, 14 deletions
@@ -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; |