summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2020-02-20 16:56:54 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2020-02-20 16:56:54 +0000
commitec03129c70182f2b24dd73c23b65e21de8134a24 (patch)
treeaff61980f07f1f0d612de2436534affed30f3ae6 /sys/arch
parent00bbf32646352eb0f9b77ee2a5ab19f6b3f53f7b (diff)
Replace field f_isfd with field f_flags in struct filterops to allow
adding more filter properties without cluttering the struct. OK mpi@, anton@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/arm64/dev/apm.c4
-rw-r--r--sys/arch/i386/i386/apm.c4
-rw-r--r--sys/arch/loongson/dev/apm.c4
-rw-r--r--sys/arch/macppc/dev/apm.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/sys/arch/arm64/dev/apm.c b/sys/arch/arm64/dev/apm.c
index 85b2ea7c75a..93d9ae7eb85 100644
--- a/sys/arch/arm64/dev/apm.c
+++ b/sys/arch/arm64/dev/apm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apm.c,v 1.2 2019/12/31 13:48:31 visa Exp $ */
+/* $OpenBSD: apm.c,v 1.3 2020/02/20 16:56:51 visa Exp $ */
/*-
* Copyright (c) 2001 Alexander Guy. All rights reserved.
@@ -88,7 +88,7 @@ int apmkqfilter(dev_t dev, struct knote *kn);
int apm_getdefaultinfo(struct apm_power_info *);
const struct filterops apmread_filtops = {
- .f_isfd = 1,
+ .f_flags = FILTEROP_ISFD,
.f_attach = NULL,
.f_detach = filt_apmrdetach,
.f_event = filt_apmread,
diff --git a/sys/arch/i386/i386/apm.c b/sys/arch/i386/i386/apm.c
index 99a1c2daf6b..cf62219d414 100644
--- a/sys/arch/i386/i386/apm.c
+++ b/sys/arch/i386/i386/apm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apm.c,v 1.121 2019/12/31 13:48:31 visa Exp $ */
+/* $OpenBSD: apm.c,v 1.122 2020/02/20 16:56:51 visa Exp $ */
/*-
* Copyright (c) 1998-2001 Michael Shalayeff. All rights reserved.
@@ -104,7 +104,7 @@ void filt_apmrdetach(struct knote *kn);
int filt_apmread(struct knote *kn, long hint);
const struct filterops apmread_filtops = {
- .f_isfd = 1,
+ .f_flags = FILTEROP_ISFD,
.f_attach = NULL,
.f_detach = filt_apmrdetach,
.f_event = filt_apmread,
diff --git a/sys/arch/loongson/dev/apm.c b/sys/arch/loongson/dev/apm.c
index 38fd5a8c30e..4527a1cf0e1 100644
--- a/sys/arch/loongson/dev/apm.c
+++ b/sys/arch/loongson/dev/apm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apm.c,v 1.34 2020/02/16 23:37:23 jca Exp $ */
+/* $OpenBSD: apm.c,v 1.35 2020/02/20 16:56:51 visa Exp $ */
/*-
* Copyright (c) 2001 Alexander Guy. All rights reserved.
@@ -94,7 +94,7 @@ int apm_getdefaultinfo(struct apm_power_info *);
int apm_suspend(int state);
const struct filterops apmread_filtops = {
- .f_isfd = 1,
+ .f_flags = FILTEROP_ISFD,
.f_attach = NULL,
.f_detach = filt_apmrdetach,
.f_event = filt_apmread,
diff --git a/sys/arch/macppc/dev/apm.c b/sys/arch/macppc/dev/apm.c
index 86eb7dc58fd..743dc53fc7b 100644
--- a/sys/arch/macppc/dev/apm.c
+++ b/sys/arch/macppc/dev/apm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apm.c,v 1.20 2019/12/31 13:48:31 visa Exp $ */
+/* $OpenBSD: apm.c,v 1.21 2020/02/20 16:56:51 visa Exp $ */
/*-
* Copyright (c) 2001 Alexander Guy. All rights reserved.
@@ -86,7 +86,7 @@ int filt_apmread(struct knote *kn, long hint);
int apmkqfilter(dev_t dev, struct knote *kn);
const struct filterops apmread_filtops = {
- .f_isfd = 1,
+ .f_flags = FILTEROP_ISFD,
.f_attach = NULL,
.f_detach = filt_apmrdetach,
.f_event = filt_apmread,