diff options
author | mpi <mpi@openbsd.org> | 2020-06-15 15:29:40 +0000 |
---|---|---|
committer | mpi <mpi@openbsd.org> | 2020-06-15 15:29:40 +0000 |
commit | 2b88cdafd374c425bef518b6071e7ccde4677902 (patch) | |
tree | aefd54b8dc75dea5c6e4e32724595afd2e05035d /sys/sys/event.h | |
parent | Document EVP_read_pw_string_min(3) (diff) | |
download | wireguard-openbsd-2b88cdafd374c425bef518b6071e7ccde4677902.tar.xz wireguard-openbsd-2b88cdafd374c425bef518b6071e7ccde4677902.zip |
Set __EV_HUP when the conditions matching poll(2)'s POLLUP are found.
This is only done in poll-compatibility mode, when __EV_POLL is set.
ok visa@, millert@
Diffstat (limited to 'sys/sys/event.h')
-rw-r--r-- | sys/sys/event.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/sys/event.h b/sys/sys/event.h index c0e7b0846b8..b4539666c9a 100644 --- a/sys/sys/event.h +++ b/sys/sys/event.h @@ -1,4 +1,4 @@ -/* $OpenBSD: event.h,v 1.41 2020/06/12 09:34:17 mpi Exp $ */ +/* $OpenBSD: event.h,v 1.42 2020/06/15 15:29:40 mpi Exp $ */ /*- * Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org> @@ -74,7 +74,6 @@ struct kevent { #define EV_DISPATCH 0x0080 /* disable event after reporting */ #define EV_SYSFLAGS 0xF000 /* reserved by system */ -#define __EV_POLL 0x1000 /* match behavior of poll & select */ #define EV_FLAG1 0x2000 /* filter-specific flag */ /* returned values */ @@ -130,6 +129,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 */ /* |