timer: add time management functions
[netsniff-ng.git] / xutils.h
blob2e0e25184673b207263fd4e79c40c63a5eadbda8
1 /*
2 * netsniff-ng - the packet sniffing beast
3 * Copyright 2009, 2010 Daniel Borkmann.
4 * Copyright 2009, 2010 Emmanuel Roullit.
5 * Subject to the GPL, version 2.
6 */
8 #ifndef XSYS_H
9 #define XSYS_H
11 #define _GNU_SOURCE
12 #include <errno.h>
13 #include <stdint.h>
14 #include <sys/socket.h>
15 #include <unistd.h>
16 #include <linux/ethtool.h>
17 #include <linux/if.h>
18 #include <linux/wireless.h>
19 #include <poll.h>
20 #include <sys/poll.h>
21 #include <sched.h>
22 #include <stdbool.h>
23 #include <sys/resource.h>
24 #include <sys/time.h>
26 #include "built_in.h"
28 extern void set_epoll_descriptor(int fd_epoll, int action, int fd_toadd, int events);
29 extern int set_epoll_descriptor2(int fd_epoll, int action, int fd_toadd, int events);
31 #endif /* XSYS_H */