diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-02-11 15:30:13 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-02-11 15:31:40 -0800 |
commit | 4842fc779bc6bfc9ba932b2602d0166317b415d9 (patch) | |
tree | 3e38e6d7afafec2ece05475366fbf8c987a6256f /get_load.c | |
parent | 0e0df8ca1d53fddeeddb918323050b9e9bbffd4a (diff) |
unifdef __osf__
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'get_load.c')
-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 */ |