mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-10-02 15:09:07 +00:00
45 lines
811 B
C
45 lines
811 B
C
|
/* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*- */
|
||
|
|
||
|
#ifndef HAIKU_H_
|
||
|
#define HAIKU_H_
|
||
|
|
||
|
#include <fcntl.h>
|
||
|
#include <time.h>
|
||
|
#include <unistd.h>
|
||
|
#include <err.h>
|
||
|
#include <limits.h>
|
||
|
#include <paths.h>
|
||
|
|
||
|
#include <sys/time.h>
|
||
|
#include <sys/types.h>
|
||
|
#include <sys/socket.h>
|
||
|
|
||
|
#include <net/if.h>
|
||
|
|
||
|
#include <kernel/fs_info.h>
|
||
|
|
||
|
#include "conky.h"
|
||
|
#include "common.h"
|
||
|
|
||
|
int get_entropy_avail(unsigned int *);
|
||
|
int get_entropy_poolsize(unsigned int *);
|
||
|
|
||
|
|
||
|
/* let's just mimic statfs64 */
|
||
|
|
||
|
struct statfs : public fs_info {};
|
||
|
|
||
|
inline int statfs(const char *path, struct statfs *buf)
|
||
|
{
|
||
|
return fs_stat_dev(dev_for_path(path), buf);
|
||
|
}
|
||
|
|
||
|
#define f_blocks total_blocks
|
||
|
#define f_bsize block_size
|
||
|
#define f_bavail free_blocks
|
||
|
#define f_bfree free_blocks
|
||
|
#define f_fstypename fsh_name
|
||
|
|
||
|
|
||
|
#endif /*HAIKU_H_*/
|