Fix for segfault in top_name stuff.
[monky] / src / openbsd.h
1 /* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*- */
2
3 #ifndef OPENBSD_H_
4 #define OPENBSD_H_
5
6 #include "common.h"
7 #include <sys/param.h>
8 #include <sys/sysctl.h>
9 #include <sys/sensors.h>
10 #include <machine/apmvar.h>
11
12 void parse_obsd_sensor(struct text_object *, const char *);
13 void print_obsd_sensors_temp(struct text_object *, char *, int);
14 void print_obsd_sensors_fan(struct text_object *, char *, int);
15 void print_obsd_sensors_volt(struct text_object *, char *, int);
16 void get_obsd_vendor(char *buf, size_t client_buffer_size);
17 void get_obsd_product(char *buf, size_t client_buffer_size);
18
19 #if defined(i386) || defined(__i386__)
20 typedef struct apm_power_info *apm_info_t;
21 #endif
22
23 int get_entropy_avail(unsigned int *);
24 int get_entropy_poolsize(unsigned int *);
25
26 #endif /*OPENBSD_H_*/