kvm_proc needs synchronized access
[monky] / src / freebsd.h
index 8835c0c..7b3db6a 100644 (file)
@@ -1,15 +1,23 @@
+/* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*- */
+
 #ifndef FREEBSD_H_
 #define FREEBSD_H_
 
 #include "common.h"
+#include <sys/param.h>
 #include <sys/mount.h>
 #include <sys/ucred.h>
 #include <fcntl.h>
 #include <kvm.h>
+#include <pthread.h>
 #if (defined(i386) || defined(__i386__))
 #include <machine/apm_bios.h>
 #endif /* i386 || __i386__ */
 
 kvm_t *kd;
+pthread_mutex_t kvm_proc_mutex;
+
+int get_entropy_avail(unsigned int *);
+int get_entropy_poolsize(unsigned int *);
 
 #endif /*FREEBSD_H_*/