From 317043010879767bc6a3bef6cbec0c5f300d1ce0 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Mon, 19 Oct 2020 13:54:31 +0300 Subject: sys: update to 6.8 --- sys/sys/event.h | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'sys/sys/event.h') diff --git a/sys/sys/event.h b/sys/sys/event.h index 2c345f3..fefbfcc 100644 --- a/sys/sys/event.h +++ b/sys/sys/event.h @@ -1,4 +1,4 @@ -/* $OpenBSD: event.h,v 1.35 2020/04/07 13:27:52 visa Exp $ */ +/* $OpenBSD: event.h,v 1.45 2020/08/23 07:05:29 mpi Exp $ */ /*- * Copyright (c) 1999,2000,2001 Jonathan Lemon @@ -39,8 +39,9 @@ #define EVFILT_SIGNAL (-6) /* attached to struct process */ #define EVFILT_TIMER (-7) /* timers */ #define EVFILT_DEVICE (-8) /* devices */ +#define EVFILT_EXCEPT (-9) /* exceptional conditions */ -#define EVFILT_SYSCOUNT 8 +#define EVFILT_SYSCOUNT 9 #define EV_SET(kevp, a, b, c, d, e, f) do { \ struct kevent *__kevp = (kevp); \ @@ -86,6 +87,12 @@ struct kevent { #define NOTE_LOWAT 0x0001 /* low water mark */ #define NOTE_EOF 0x0002 /* return on EOF */ +/* + * data/hint flags for EVFILT_EXCEPT, shared with userspace and with + * EVFILT_{READ|WRITE} + */ +#define NOTE_OOB 0x0004 /* OOB data on a socket */ + /* * data/hint flags for EVFILT_VNODE, shared with userspace */ @@ -129,6 +136,10 @@ struct klist { #ifdef _KERNEL +/* kernel-only flags */ +#define __EV_POLL 0x1000 /* match behavior of poll & select */ +#define __EV_HUP EV_FLAG1 /* device or socket disconnected */ + #define EVFILT_MARKER 0xf /* placemarker for tailq */ /* @@ -136,10 +147,10 @@ struct klist { */ #define NOTE_SUBMIT 0x01000000 /* initial knote submission */ -#define KNOTE(list_, hint) do { \ - struct klist *list = (list_); \ - if ((list) != NULL) \ - knote((list), (hint)); \ +#define KNOTE(list, hint) do { \ + struct klist *__list = (list); \ + if (__list != NULL) \ + knote(__list, hint); \ } while (0) #define KN_HASHSIZE 64 /* XXX should be tunable */ @@ -192,6 +203,7 @@ struct knote { struct proc; extern const struct filterops sig_filtops; +extern const struct filterops dead_filtops; extern void knote(struct klist *list, long hint); extern void knote_activate(struct knote *); -- cgit v1.2.3