From 4842fc779bc6bfc9ba932b2602d0166317b415d9 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 11 Feb 2024 15:30:13 -0800 Subject: unifdef __osf__ Signed-off-by: Alan Coopersmith --- get_load.c | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/get_load.c b/get_load.c index abe2ceb..94caa4a 100644 --- a/get_load.c +++ b/get_load.c @@ -143,17 +143,6 @@ void GetLoadPoint( # endif -# ifdef __osf__ -/* - * Use the table(2) interface; it doesn't require setuid root. - * - * Select 0, 1, or 2 for 5, 30, or 60 second load averages. - */ -# ifndef WHICH_AVG -# define WHICH_AVG 1 -# endif -# include -# endif # ifdef SVR4 # ifndef FSCALE @@ -308,29 +297,6 @@ void GetLoadPoint( w, closure, call_data ) # else /* not LOADSTUB */ -# ifdef __osf__ - -void InitLoadPoint() -{ -} - -/*ARGSUSED*/ -void GetLoadPoint( w, closure, call_data ) - Widget w; /* unused */ - XtPointer closure; /* unused */ - XtPointer call_data; /* pointer to (double) return value */ -{ - double *loadavg = (double *)call_data; - struct tbl_loadavg load_data; - - if (table(TBL_LOADAVG, 0, (char *)&load_data, 1, sizeof(load_data)) < 0) - xload_error("error reading load average", ""); - *loadavg = (load_data.tl_lscale == 0) ? - load_data.tl_avenrun.d[WHICH_AVG] : - load_data.tl_avenrun.l[WHICH_AVG] / (double)load_data.tl_lscale; -} - -# else /* not __osf__ */ # ifdef __QNXNTO__ # include @@ -540,7 +506,6 @@ void GetLoadPoint( w, closure, call_data ) } # endif /* __bsdi__ else */ # endif /* __QNXNTO__ else */ -# endif /* __osf__ else */ # endif /* LOADSTUB else */ # endif /* __APPLE__ else */ # endif /* __GNU__ else */ -- cgit v1.2.3