diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2010-04-12 12:57:53 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2010-04-12 12:57:53 +0000 |
commit | 118ff35020024c11792c1aa21a17c399a0c7ae50 (patch) | |
tree | 9098033afb7543fe1823200e5c883020c95b7a7c /sys/arch/mvme88k | |
parent | 9d9ad9bde307f225e9fd28b6db3d7d42a0da8ff7 (diff) |
Some of the line disciplines want to check for suser. Better to pass them
a process instead of using curproc. ok deraadt
Diffstat (limited to 'sys/arch/mvme88k')
-rw-r--r-- | sys/arch/mvme88k/dev/cl.c | 6 | ||||
-rw-r--r-- | sys/arch/mvme88k/dev/dart.c | 6 | ||||
-rw-r--r-- | sys/arch/mvme88k/dev/vx.c | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/sys/arch/mvme88k/dev/cl.c b/sys/arch/mvme88k/dev/cl.c index fddf67860db..a759c06ecdd 100644 --- a/sys/arch/mvme88k/dev/cl.c +++ b/sys/arch/mvme88k/dev/cl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cl.c,v 1.57 2009/11/09 17:53:39 nicm Exp $ */ +/* $OpenBSD: cl.c,v 1.58 2010/04/12 12:57:52 tedu Exp $ */ /* * Copyright (c) 1995 Dale Rahn. All rights reserved. @@ -614,7 +614,7 @@ clopen(dev, flag, mode, p) #ifdef DEBUG cl_dumpport(sc, channel); #endif - return (*linesw[tp->t_line].l_open)(dev, tp); + return (*linesw[tp->t_line].l_open)(dev, tp, p); } int @@ -710,7 +710,7 @@ clclose(dev, flag, mode, p) iot = sc->sc_iot; ioh = sc->sc_ioh; tp = cl->tty; - (*linesw[tp->t_line].l_close)(tp, flag); + (*linesw[tp->t_line].l_close)(tp, flag, p); s = splcl(); bus_space_write_1(iot, ioh, CL_CAR, channel); diff --git a/sys/arch/mvme88k/dev/dart.c b/sys/arch/mvme88k/dev/dart.c index 0fa9d848cfc..0ecedf33613 100644 --- a/sys/arch/mvme88k/dev/dart.c +++ b/sys/arch/mvme88k/dev/dart.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dart.c,v 1.54 2009/11/09 17:53:39 nicm Exp $ */ +/* $OpenBSD: dart.c,v 1.55 2010/04/12 12:57:52 tedu Exp $ */ /* * Mach Operating System @@ -675,7 +675,7 @@ dartopen(dev_t dev, int flag, int mode, struct proc *p) */ tp->t_dev = dev; splx(s); - return ((*linesw[tp->t_line].l_open)(dev, tp)); + return ((*linesw[tp->t_line].l_open)(dev, tp, p)); } int @@ -691,7 +691,7 @@ dartclose(dev_t dev, int flag, int mode, struct proc *p) dart = &sc->sc_dart[port]; tp = dart->tty; - (*linesw[tp->t_line].l_close)(tp, flag); + (*linesw[tp->t_line].l_close)(tp, flag, p); ttyclose(tp); return (0); diff --git a/sys/arch/mvme88k/dev/vx.c b/sys/arch/mvme88k/dev/vx.c index b63546b3697..5ff188bc045 100644 --- a/sys/arch/mvme88k/dev/vx.c +++ b/sys/arch/mvme88k/dev/vx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vx.c,v 1.40 2009/10/31 12:00:07 fgsch Exp $ */ +/* $OpenBSD: vx.c,v 1.41 2010/04/12 12:57:52 tedu Exp $ */ /* * Copyright (c) 1999 Steve Murphree, Jr. * All rights reserved. @@ -475,7 +475,7 @@ vxopen(dev_t dev, int flag, int mode, struct proc *p) tp->t_dev = dev; vxt->open = 1; splx(s); - return (*linesw[tp->t_line].l_open)(dev, tp); + return (*linesw[tp->t_line].l_open)(dev, tp, p); } int @@ -522,7 +522,7 @@ vxclose(dev_t dev, int flag, int mode, struct proc *p) #endif tp = vxt->tty; - (*linesw[tp->t_line].l_close)(tp, flag); + (*linesw[tp->t_line].l_close)(tp, flag, p); s = splvx(); |