kvm_proc needs synchronized access
[monky] / src / freebsd.h
1 /* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*- */
2
3 #ifndef FREEBSD_H_
4 #define FREEBSD_H_
5
6 #include "common.h"
7 #include <sys/param.h>
8 #include <sys/mount.h>
9 #include <sys/ucred.h>
10 #include <fcntl.h>
11 #include <kvm.h>
12 #include <pthread.h>
13 #if (defined(i386) || defined(__i386__))
14 #include <machine/apm_bios.h>
15 #endif /* i386 || __i386__ */
16
17 kvm_t *kd;
18 pthread_mutex_t kvm_proc_mutex;
19
20 int get_entropy_avail(unsigned int *);
21 int get_entropy_poolsize(unsigned int *);
22
23 #endif /*FREEBSD_H_*/