diff options
author | julian <julian@FreeBSD.org> | 1998-05-06 22:14:48 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1998-05-06 22:14:48 +0000 |
commit | 0cb054bfeab729f000a87716a669b995215502fc (patch) | |
tree | f0dd71a43184ebf7ebaf3423df86fdafb6633e4b /sys/isa/fd.c | |
parent | 719d62b3b0b317b7bd93f23baf86382fc6c6969f (diff) | |
download | FreeBSD-src-0cb054bfeab729f000a87716a669b995215502fc.zip FreeBSD-src-0cb054bfeab729f000a87716a669b995215502fc.tar.gz |
Add dump support to the DEVFS/slice code.
now we can actually catch our crashes :-)
Submitted by: Luoqi Chen <luoqi@chen.ml.org> (the man who's everywhere)
Diffstat (limited to 'sys/isa/fd.c')
-rw-r--r-- | sys/isa/fd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/isa/fd.c b/sys/isa/fd.c index 2d74c99..9afadd2 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.109 1998/04/19 23:31:41 julian Exp $ + * $Id: fd.c,v 1.110 1998/04/22 10:25:15 julian Exp $ * */ @@ -2196,9 +2196,9 @@ fdsopen(void *private, int flags, int mode, struct proc *p) sd = private; if((flags & (FREAD|FWRITE)) != 0) { - return(Fdopen(makedev(0,sd->minor), 0 , 0, p)); + return(Fdopen(makedev(0,sd->minor), flags , mode, p)); } else { - return(fdclose(makedev(0,sd->minor), 0 , 0, p)); + return(fdclose(makedev(0,sd->minor), 0 , mode, p)); } } |