mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-15 17:47:09 +00:00
8922603b91
This patch ought to be small and simple ... The reason why it's not is me wanting the entropy data out of struct information. This means update_entropy() can not be used anymore, as it uses this globally available object. The solution I am presenting here is quite messy regarding header includes. Hopefully this will go away soon as I plan on creating some sort of "OS library" containing all OS specific routines and defining macros for easier capability checking in the non-specific code. This on the other hand means we'll need "wrappers" around OS specific objects, but that's not as bad as it seems - having non-specific text objects only will definitely clean up the code, and capabilities can be checked where they should be.
37 lines
670 B
C
37 lines
670 B
C
/* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*- */
|
|
|
|
#ifndef NETBSD_H_
|
|
#define NETBSD_H_
|
|
|
|
#include <fcntl.h>
|
|
#include <time.h>
|
|
#include <unistd.h>
|
|
#include <err.h>
|
|
#include <limits.h>
|
|
#include <paths.h>
|
|
#include <kvm.h>
|
|
#include <nlist.h>
|
|
|
|
#include <sys/time.h>
|
|
#include <sys/sysctl.h>
|
|
#include <sys/types.h>
|
|
#include <sys/user.h>
|
|
#include <sys/socket.h>
|
|
#include <sys/swap.h>
|
|
#include <sys/sched.h>
|
|
#include <sys/envsys.h>
|
|
|
|
#include <net/if.h>
|
|
|
|
#include <uvm/uvm_extern.h>
|
|
|
|
#include <machine/param.h>
|
|
|
|
#include "conky.h"
|
|
#include "common.h"
|
|
|
|
int get_entropy_avail(unsigned int *);
|
|
int get_entropy_poolsize(unsigned int *);
|
|
|
|
#endif /*NETBSD_H_*/
|