From 9bea2e228ef3358e00b1ce2600dd1effa042f515 Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 6 May 1996 11:31:09 +0000 Subject: [PATCH] defn cdev_scanner_init() --- sys/sys/conf.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sys/sys/conf.h b/sys/sys/conf.h index 21ba2eba41f..98ad0446a45 100644 --- a/sys/sys/conf.h +++ b/sys/sys/conf.h @@ -1,5 +1,5 @@ -/* $OpenBSD: conf.h,v 1.8 1996/05/04 18:51:02 mickey Exp $ */ -/* $NetBSD: conf.h,v 1.32 1996/03/30 21:52:04 christos Exp $ */ +/* $OpenBSD: conf.h,v 1.9 1996/05/06 11:31:09 deraadt Exp $ */ +/* $NetBSD: conf.h,v 1.33 1996/05/03 20:03:32 christos Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -188,6 +188,12 @@ extern struct cdevsw cdevsw[]; dev_init(c,n,write), dev_init(c,n,ioctl), (dev_type_stop((*))) enodev, \ 0, seltrue, (dev_type_mmap((*))) enodev, D_TAPE } +#define cdev_scanner_init(c,n) { \ + dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \ + (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \ + (dev_type_stop((*))) nullop, \ + 0, seltrue, (dev_type_mmap((*))) enodev, 0 } + /* open, close, read, write, ioctl, stop, tty */ #define cdev_tty_init(c,n) { \ dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \ -- 2.20.1