summaryrefslogtreecommitdiffstats
path: root/sys/sys/event.h
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2007-05-30 00:23:48 +0000
committertedu <tedu@openbsd.org>2007-05-30 00:23:48 +0000
commit47cb05d5f5850771937fb2bb28791bdc7becc877 (patch)
tree5b892c3b0d532676f982ce8d971cc2aa5689fc60 /sys/sys/event.h
parentbackout more code that shouldn't have gone in. (diff)
downloadwireguard-openbsd-47cb05d5f5850771937fb2bb28791bdc7becc877.tar.xz
wireguard-openbsd-47cb05d5f5850771937fb2bb28791bdc7becc877.zip
add a new kevent filter type for timers. this allows processes to create
a series of oneshot or periodic timers. capped to a global limit. from freebsd via brad. ok art pedro
Diffstat (limited to 'sys/sys/event.h')
-rw-r--r--sys/sys/event.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/sys/event.h b/sys/sys/event.h
index 8ad142979d9..d6b9596f29d 100644
--- a/sys/sys/event.h
+++ b/sys/sys/event.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: event.h,v 1.10 2005/12/19 19:09:20 millert Exp $ */
+/* $OpenBSD: event.h,v 1.11 2007/05/30 00:23:48 tedu Exp $ */
/*-
* Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org>
@@ -37,8 +37,9 @@
#define EVFILT_VNODE (-4) /* attached to vnodes */
#define EVFILT_PROC (-5) /* attached to struct proc */
#define EVFILT_SIGNAL (-6) /* attached to struct proc */
+#define EVFILT_TIMER (-7) /* timers */
-#define EVFILT_SYSCOUNT 6
+#define EVFILT_SYSCOUNT 7
#define EV_SET(kevp, a, b, c, d, e, f) do { \
(kevp)->ident = (a); \