summaryrefslogtreecommitdiffstats
path: root/sys/isa
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1998-04-22 10:25:27 +0000
committerjulian <julian@FreeBSD.org>1998-04-22 10:25:27 +0000
commitdb37f632a083922cf897d2643cc01bca4ebff768 (patch)
treef9fe78dbd70b3d36af499750acc24a6235a6fa5f /sys/isa
parent2fe90b3e8973616fd8f5635f2897c83ae98dce83 (diff)
downloadFreeBSD-src-db37f632a083922cf897d2643cc01bca4ebff768.zip
FreeBSD-src-db37f632a083922cf897d2643cc01bca4ebff768.tar.gz
close() is no longer a SLICE method.
Close is simply an open with no-read and no-write once internal to SLICE (it still exports a close to the rest of the kernel)
Diffstat (limited to 'sys/isa')
-rw-r--r--sys/isa/fd.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/sys/isa/fd.c b/sys/isa/fd.c
index abc2634..2d74c99 100644
--- a/sys/isa/fd.c
+++ b/sys/isa/fd.c
@@ -43,7 +43,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
- * $Id: fd.c,v 1.108 1998/04/17 22:36:31 des Exp $
+ * $Id: fd.c,v 1.109 1998/04/19 23:31:41 julian Exp $
*
*/
@@ -318,7 +318,7 @@ static struct isa_device *fdcdevs[NFDC];
static sl_h_IO_req_t fdsIOreq; /* IO req downward (to device) */
static sl_h_ioctl_t fdsioctl; /* ioctl req downward (to device) */
static sl_h_open_t fdsopen; /* downwards travelling open */
-static sl_h_close_t fdsclose; /* downwards travelling close */
+/*static sl_h_close_t fdsclose; */ /* downwards travelling close */
static void fdsinit(void *);
static struct slice_handler slicetype = {
@@ -330,7 +330,7 @@ static struct slice_handler slicetype = {
&fdsIOreq,
&fdsioctl,
&fdsopen,
- &fdsclose,
+ /*&fdsclose*/NULL,
NULL, /* revoke */
NULL, /* claim */
NULL, /* verify */
@@ -2195,9 +2195,14 @@ fdsopen(void *private, int flags, int mode, struct proc *p)
sd = private;
- return(Fdopen(makedev(0,sd->minor), 0 , 0, p));
+ if((flags & (FREAD|FWRITE)) != 0) {
+ return(Fdopen(makedev(0,sd->minor), 0 , 0, p));
+ } else {
+ return(fdclose(makedev(0,sd->minor), 0 , 0, p));
+ }
}
+#if 0
static void
fdsclose(void *private, int flags, int mode, struct proc *p)
{
@@ -2208,6 +2213,7 @@ fdsclose(void *private, int flags, int mode, struct proc *p)
fdclose(makedev(0,sd->minor), 0 , 0, p);
return ;
}
+#endif /* 0 */
#endif /* SLICE */
#endif
OpenPOWER on IntegriCloud