summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-02-24 08:38:54 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-02-24 08:42:53 -0800
commit6f106ec95c47e6e36aaa24fa5ebfbfabc4203435 (patch)
tree622c66fb64b60b25f57ce00121a3adcb5178f8e0
parent8bc6852a27343737d662f64c0523648f6fe14e43 (diff)
unifdef -Usony
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--get_load.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/get_load.c b/get_load.c
index cee6797..42d0b6c 100644
--- a/get_load.c
+++ b/get_load.c
@@ -138,14 +138,6 @@ void GetLoadPoint(
#define FSCALE 1024.0
#endif
-#if defined(sony) && OSMAJORVERSION == 4
-#ifdef mips
-#include <sys/fixpoint.h>
-#else
-#include <sys/param.h>
-#endif
-#endif
-
#ifdef __osf__
/*
* Use the table(2) interface; it doesn't require setuid root.
@@ -691,23 +683,7 @@ void GetLoadPoint( w, closure, call_data )
*loadavg = (double)temp/FSCALE;
}
#else /* else not UTEK or sequent or alliant or SVR4 or sgi or hcx */
-# if defined(sony) && OSMAJORVERSION == 4
-# ifdef mips
- {
- fix temp;
- (void) read(kmem, (char *)&temp, sizeof(fix));
- *loadavg = FIX_TO_DBL(temp);
- }
-# else /* not mips */
- {
- long temp;
- (void) read(kmem, (char *)&temp, sizeof(long));
- *loadavg = (double)temp/FSCALE;
- }
-# endif /* mips */
-# else /* not sony NEWSOS4 */
(void) read(kmem, (char *)loadavg, sizeof(double));
-# endif /* sony NEWOS4 */
#endif /* SVR4 or ... else */
return;
}