procps/proc/sysinfo.h

31 lines
622 B
C
Raw Normal View History

2002-12-09 07:00:07 +00:00
#ifndef PROC_SYSINFO_H
#define PROC_SYSINFO_H
2003-05-31 00:38:55 +00:00
#include <sys/types.h>
#include <dirent.h>
2002-11-25 10:16:33 +00:00
#include <features.h>
__BEGIN_DECLS
2002-12-09 07:00:07 +00:00
extern int have_privs; /* boolean, true if setuid or similar */
2002-02-01 22:47:29 +00:00
long procps_cpu_count(void);
long procps_hertz_get(void);
int procps_loadavg(double *av1, double *av5, double *av15);
unsigned int procps_pid_length(void);
2002-02-01 22:47:29 +00:00
2005-10-30 00:14:16 +00:00
#define BUFFSIZE (64*1024)
2002-10-06 16:46:06 +00:00
2003-06-08 17:28:06 +00:00
typedef struct slab_cache{
char name[48];
unsigned active_objs;
unsigned num_objs;
unsigned objsize;
unsigned objperslab;
}slab_cache;
extern unsigned int getslabinfo (struct slab_cache**);
2003-07-03 05:20:19 +00:00
__END_DECLS
2002-02-01 22:47:29 +00:00
#endif /* SYSINFO_H */