diff options
-rw-r--r-- | get_load.c | 35 |
1 files changed, 0 insertions, 35 deletions
@@ -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 <sys/table.h> -# 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 <time.h> @@ -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 */ |