summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/include/machine/rtems-bsd-syscall-api.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-28 15:40:53 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-31 13:18:52 +0100
commit0c9f27ba24d11dc7c50b0348036074dbc6a08846 (patch)
tree81213e30d906800a1d84522611a3009838c7dafc /rtemsbsd/include/machine/rtems-bsd-syscall-api.h
parentUse compile-time constant for vm_guest (diff)
downloadrtems-libbsd-0c9f27ba24d11dc7c50b0348036074dbc6a08846.tar.bz2
Use kqueue() and kevent() from FreeBSD
Diffstat (limited to 'rtemsbsd/include/machine/rtems-bsd-syscall-api.h')
-rw-r--r--rtemsbsd/include/machine/rtems-bsd-syscall-api.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/rtemsbsd/include/machine/rtems-bsd-syscall-api.h b/rtemsbsd/include/machine/rtems-bsd-syscall-api.h
index f3031a25..0358df6b 100644
--- a/rtemsbsd/include/machine/rtems-bsd-syscall-api.h
+++ b/rtemsbsd/include/machine/rtems-bsd-syscall-api.h
@@ -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);