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/sparc | |
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/sparc')
-rw-r--r-- | sys/arch/sparc/dev/magma.c | 6 | ||||
-rw-r--r-- | sys/arch/sparc/dev/spif.c | 6 | ||||
-rw-r--r-- | sys/arch/sparc/dev/z8530tty.c | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/sys/arch/sparc/dev/magma.c b/sys/arch/sparc/dev/magma.c index 1390ed82200..38413d86e58 100644 --- a/sys/arch/sparc/dev/magma.c +++ b/sys/arch/sparc/dev/magma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: magma.c,v 1.24 2009/11/09 17:53:39 nicm Exp $ */ +/* $OpenBSD: magma.c,v 1.25 2010/04/12 12:57:52 tedu Exp $ */ /*- * Copyright (c) 1998 Iain Hibbert @@ -978,7 +978,7 @@ mttyopen(dev, flags, mode, p) splx(s); - return ((*linesw[tp->t_line].l_open)(dev, tp)); + return ((*linesw[tp->t_line].l_open)(dev, tp, p)); } /* @@ -996,7 +996,7 @@ mttyclose(dev, flag, mode, p) struct tty *tp = mp->mp_tty; int s; - (*linesw[tp->t_line].l_close)(tp, flag); + (*linesw[tp->t_line].l_close)(tp, flag, p); s = spltty(); /* diff --git a/sys/arch/sparc/dev/spif.c b/sys/arch/sparc/dev/spif.c index c045e404d83..ab6cca4aa9f 100644 --- a/sys/arch/sparc/dev/spif.c +++ b/sys/arch/sparc/dev/spif.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spif.c,v 1.24 2009/11/09 17:53:39 nicm Exp $ */ +/* $OpenBSD: spif.c,v 1.25 2010/04/12 12:57:52 tedu Exp $ */ /* * Copyright (c) 1999 Jason L. Wright (jason@thought.net) @@ -345,7 +345,7 @@ sttyopen(dev, flags, mode, p) splx(s); - return ((*linesw[tp->t_line].l_open)(dev, tp)); + return ((*linesw[tp->t_line].l_open)(dev, tp, p)); } int @@ -362,7 +362,7 @@ sttyclose(dev, flags, mode, p) int port = SPIF_PORT(dev); int s; - (*linesw[tp->t_line].l_close)(tp, flags); + (*linesw[tp->t_line].l_close)(tp, flags, p); s = spltty(); if (ISSET(tp->t_cflag, HUPCL) || !ISSET(tp->t_state, TS_ISOPEN)) { diff --git a/sys/arch/sparc/dev/z8530tty.c b/sys/arch/sparc/dev/z8530tty.c index 359209f0af0..1ee386b33ae 100644 --- a/sys/arch/sparc/dev/z8530tty.c +++ b/sys/arch/sparc/dev/z8530tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: z8530tty.c,v 1.14 2010/03/03 20:13:32 miod Exp $ */ +/* $OpenBSD: z8530tty.c,v 1.15 2010/04/12 12:57:52 tedu Exp $ */ /* $NetBSD: z8530tty.c,v 1.13 1996/10/16 20:42:14 gwr Exp $ */ /*- @@ -678,7 +678,7 @@ zsopen(dev, flags, mode, p) splx(s); if (error == 0) - error = ((*linesw[tp->t_line].l_open)(dev, tp)); + error = ((*linesw[tp->t_line].l_open)(dev, tp, p)); if (error) goto bad; @@ -719,7 +719,7 @@ zsclose(dev, flags, mode, p) if (!ISSET(tp->t_state, TS_ISOPEN)) return 0; - (*linesw[tp->t_line].l_close)(tp, flags); + (*linesw[tp->t_line].l_close)(tp, flags, p); s = spltty(); cs->cs_cua = 0; |