device open routine now gets a proc pointer
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Wed, 19 Feb 1992 07:55:27 +0000 (23:55 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Wed, 19 Feb 1992 07:55:27 +0000 (23:55 -0800)
SCCS-vsn: sys/kern/kern_descrip.c 7.30

usr/src/sys/kern/kern_descrip.c

index 134cc7a..ca1a201 100644 (file)
@@ -4,7 +4,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)kern_descrip.c      7.29 (Berkeley) %G%
+ *     @(#)kern_descrip.c      7.30 (Berkeley) %G%
  */
 
 #include "param.h"
  */
 
 #include "param.h"
@@ -684,9 +684,10 @@ flock(p, uap, retval)
  * references to this file will be direct to the other driver.
  */
 /* ARGSUSED */
  * references to this file will be direct to the other driver.
  */
 /* ARGSUSED */
-fdopen(dev, mode, type)
+fdopen(dev, mode, type, p)
        dev_t dev;
        int mode, type;
        dev_t dev;
        int mode, type;
+       struct proc *p;
 {
 
        /*
 {
 
        /*
@@ -697,7 +698,7 @@ fdopen(dev, mode, type)
         * actions in dupfdopen below. Other callers of vn_open or VOP_OPEN
         * will simply report the error.
         */
         * actions in dupfdopen below. Other callers of vn_open or VOP_OPEN
         * will simply report the error.
         */
-       curproc->p_dupfd = minor(dev);          /* XXX */
+       p->p_dupfd = minor(dev);
        return (ENODEV);
 }
 
        return (ENODEV);
 }