New file. Imported from top 3.4.
1998-07-15 Martin Baulig <martin@home-of-linux.org> * sysdeps/sun4/loadavg.h: New file. Imported from top 3.4. * sysdeps/sun4/uptime.c (glibtop_get_uptime_p): Added implementation of that function using glibtop_get_cpu (). * sysdeps/sun4/loadavg.c (glibtop_get_loadavg_p): Added implementation of that feature. * sysdeps/sun4/{shm_limits.c, msg_limits.c, shm_limits.c}: Added implementation of this features.
This commit is contained in:
committed by
Martin Baulig
parent
4bfef8c254
commit
5f4131f248
@@ -44,6 +44,8 @@
|
||||
#include <sys/syscall.h>
|
||||
#endif
|
||||
|
||||
#include "loadavg.h"
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
/* Older versions of SunOS don't have a typedef for pid_t.
|
||||
@@ -63,10 +65,13 @@ typedef int pid_t;
|
||||
#define X_CP_TIME 6
|
||||
#define X_PAGES 7
|
||||
#define X_EPAGES 8
|
||||
#define X_SHMINFO 9
|
||||
#define X_MSGINFO 10
|
||||
#define X_SEMINFO 11
|
||||
|
||||
#ifdef MULTIPROCESSOR
|
||||
#define X_NCPU 9
|
||||
#define X_MP_TIME 10
|
||||
#define X_NCPU 12
|
||||
#define X_MP_TIME 13
|
||||
#endif
|
||||
|
||||
/* Log base 2 of 1024 is 10 (2^10 == 1024) */
|
||||
|
Reference in New Issue
Block a user