OpenBSD porting of sigar_proc_ functions

This commit is contained in:
Doug MacEachern committed 2008-02-18 01:42:52 +00:00
1 parent 4ef57c1ae0
commit 3bd2bd2c6d
2 files changed
+70 -17

No files matched your search

+7 -1
View File
@@ -37,12 +37,18 @@ enum {
KOFFSET_MAX
};
#ifdef __OpenBSD__
typedef struct kinfo_proc2 bsd_pinfo_t;
#else
typedef struct kinfo_proc bsd_pinfo_t;
#endif
struct sigar_t {
SIGAR_T_BASE;
int pagesize;
time_t last_getprocs;
sigar_pid_t last_pid;
struct kinfo_proc *pinfo;
bsd_pinfo_t *pinfo;
#ifdef DARWIN
mach_port_t mach_port;
#else