Use kqueue() and kevent() from FreeBSD

This commit is contained in:
Sebastian Huber
2013-10-28 15:40:53 +01:00
parent bae343a308
commit 0c9f27ba24
13 changed files with 408 additions and 49 deletions

View File

@@ -45,10 +45,13 @@
#define _RTEMS_BSD_MACHINE_RTEMS_BSD_SYSCALL_API_H_
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/event.h>
#include <sys/poll.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/sysctl.h>
#include <sys/time.h>
__BEGIN_DECLS
@@ -69,6 +72,12 @@ int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict);
int getsockopt(int, int, int, void * __restrict, socklen_t * __restrict);
int kqueue(void);
int kevent(int kq, const struct kevent *changelist, int nchanges,
struct kevent *eventlist, int nevents,
const struct timespec *timeout);
int listen(int, int);
int poll(struct pollfd _pfd[], nfds_t _nfds, int _timeout);