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/alpha | |
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/alpha')
-rw-r--r-- | sys/arch/alpha/alpha/promcons.c | 6 | ||||
-rw-r--r-- | sys/arch/alpha/tc/scc.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/alpha/alpha/promcons.c b/sys/arch/alpha/alpha/promcons.c index ad333ab7a26..5df9fef0afa 100644 --- a/sys/arch/alpha/alpha/promcons.c +++ b/sys/arch/alpha/alpha/promcons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: promcons.c,v 1.12 2009/11/09 17:53:38 nicm Exp $ */ +/* $OpenBSD: promcons.c,v 1.13 2010/04/12 12:57:51 tedu Exp $ */ /* $NetBSD: promcons.c,v 1.5 1996/11/13 22:20:55 cgd Exp $ */ /* @@ -100,7 +100,7 @@ promopen(dev, flag, mode, p) splx(s); - error = (*linesw[tp->t_line].l_open)(dev, tp); + error = (*linesw[tp->t_line].l_open)(dev, tp, p); if (error == 0 && setuptimeout) { timeout_set(&prom_to, promtimeout, tp); timeout_add(&prom_to, 1); @@ -118,7 +118,7 @@ promclose(dev, flag, mode, p) struct tty *tp = prom_tty[unit]; timeout_del(&prom_to); - (*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/alpha/tc/scc.c b/sys/arch/alpha/tc/scc.c index b8fdf3a5e18..a5a47265404 100644 --- a/sys/arch/alpha/tc/scc.c +++ b/sys/arch/alpha/tc/scc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scc.c,v 1.25 2009/11/09 17:53:38 nicm Exp $ */ +/* $OpenBSD: scc.c,v 1.26 2010/04/12 12:57:51 tedu Exp $ */ /* $NetBSD: scc.c,v 1.58 2002/03/17 19:40:27 atatat Exp $ */ /* @@ -498,7 +498,7 @@ sccopen(dev, flag, mode, p) splx(s); if (error) return (error); - error = (*linesw[tp->t_line].l_open)(dev, tp); + error = (*linesw[tp->t_line].l_open)(dev, tp, p); return (error); } @@ -520,7 +520,7 @@ sccclose(dev, flag, mode, p) sc->scc_wreg[line].wr5 &= ~ZSWR5_BREAK; ttyoutput(0, tp); } - (*linesw[tp->t_line].l_close)(tp, flag); + (*linesw[tp->t_line].l_close)(tp, flag, p); if ((tp->t_cflag & HUPCL) || (tp->t_state & TS_WOPEN) || !(tp->t_state & TS_ISOPEN)) (void) sccmctl(sc, line, 0, DMSET); |