diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-07-28 21:44:42 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2010-07-28 21:44:42 +0000 |
commit | 3903ec1f48bbae92c39629cac0911966d41de3bb (patch) | |
tree | 049c4e7eb191b2a355a6801b4c161234eaa3ac60 /sys/arch | |
parent | 230a75587a06168d5d360de70253d641410dee76 (diff) |
Add a dummy kqueue filter similar to seltrue and use it for anything
using seltrue for poll. Based on code from NetBSD.
Also remove a stray duplicate lpt entry from loongson, from deraadt.
ok tedu deraadt
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/loongson/loongson/conf.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/arch/loongson/loongson/conf.c b/sys/arch/loongson/loongson/conf.c index 3a6857b3e04..52241f3e726 100644 --- a/sys/arch/loongson/loongson/conf.c +++ b/sys/arch/loongson/loongson/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.7 2010/07/03 03:59:16 krw Exp $ */ +/* $OpenBSD: conf.c,v 1.8 2010/07/28 21:44:41 nicm Exp $ */ /* * Copyright (c) 1992, 1993 @@ -86,12 +86,6 @@ int nblkdev = sizeof (bdevsw) / sizeof (bdevsw[0]); * Character devices. */ -/* open, close, write, ioctl */ -#define cdev_lpt_init(c,n) { \ - dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \ - dev_init(c,n,write), dev_init(c,n,ioctl), (dev_type_stop((*))) enodev, \ - 0, seltrue, (dev_type_mmap((*))) enodev } - #define mmread mmrw #define mmwrite mmrw dev_type_read(mmrw); |