summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2010-04-12 12:57:53 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2010-04-12 12:57:53 +0000
commit118ff35020024c11792c1aa21a17c399a0c7ae50 (patch)
tree9098033afb7543fe1823200e5c883020c95b7a7c /sys/dev/ic
parent9d9ad9bde307f225e9fd28b6db3d7d42a0da8ff7 (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/dev/ic')
-rw-r--r--sys/dev/ic/com.c6
-rw-r--r--sys/dev/ic/cy.c6
-rw-r--r--sys/dev/ic/z8530tty.c6
3 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/ic/com.c b/sys/dev/ic/com.c
index fb06e1360a0..ab41d22e286 100644
--- a/sys/dev/ic/com.c
+++ b/sys/dev/ic/com.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com.c,v 1.137 2009/11/09 17:53:39 nicm Exp $ */
+/* $OpenBSD: com.c,v 1.138 2010/04/12 12:57:52 tedu Exp $ */
/* $NetBSD: com.c,v 1.82.4.1 1996/06/02 09:08:00 mrg Exp $ */
/*
@@ -466,7 +466,7 @@ comopen(dev_t dev, int flag, int mode, struct proc *p)
}
splx(s);
- return (*linesw[tp->t_line].l_open)(dev, tp);
+ return (*linesw[tp->t_line].l_open)(dev, tp, p);
}
int
@@ -488,7 +488,7 @@ comclose(dev_t dev, int flag, int mode, struct proc *p)
if(sc->sc_swflags & COM_SW_DEAD)
return 0;
- (*linesw[tp->t_line].l_close)(tp, flag);
+ (*linesw[tp->t_line].l_close)(tp, flag, p);
s = spltty();
if (ISSET(tp->t_state, TS_WOPEN)) {
/* tty device is waiting for carrier; drop dtr then re-raise */
diff --git a/sys/dev/ic/cy.c b/sys/dev/ic/cy.c
index bcf7f43023b..e076b8f2dfc 100644
--- a/sys/dev/ic/cy.c
+++ b/sys/dev/ic/cy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cy.c,v 1.28 2009/11/09 17:53:39 nicm Exp $ */
+/* $OpenBSD: cy.c,v 1.29 2010/04/12 12:57:52 tedu Exp $ */
/*
* Copyright (c) 1996 Timo Rossi.
* All rights reserved.
@@ -400,7 +400,7 @@ cyopen(dev, flag, mode, p)
splx(s);
- return (*linesw[tp->t_line].l_open)(dev, tp);
+ return (*linesw[tp->t_line].l_open)(dev, tp, p);
}
/*
@@ -424,7 +424,7 @@ cyclose(dev, flag, mode, p)
port, flag, mode);
#endif
- (*linesw[tp->t_line].l_close)(tp, flag);
+ (*linesw[tp->t_line].l_close)(tp, flag, p);
s = spltty();
if (ISSET(tp->t_cflag, HUPCL) &&
diff --git a/sys/dev/ic/z8530tty.c b/sys/dev/ic/z8530tty.c
index f8c9f388b51..2206573686d 100644
--- a/sys/dev/ic/z8530tty.c
+++ b/sys/dev/ic/z8530tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: z8530tty.c,v 1.20 2009/11/09 17:53:39 nicm Exp $ */
+/* $OpenBSD: z8530tty.c,v 1.21 2010/04/12 12:57:52 tedu Exp $ */
/* $NetBSD: z8530tty.c,v 1.13 1996/10/16 20:42:14 gwr Exp $ */
/*
@@ -416,7 +416,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);
return (error);
}
@@ -444,7 +444,7 @@ zsclose(dev, flags, mode, p)
if ((tp->t_state & TS_ISOPEN) == 0)
return 0;
- (*linesw[tp->t_line].l_close)(tp, flags);
+ (*linesw[tp->t_line].l_close)(tp, flags, p);
hup = tp->t_cflag & HUPCL;
if (zst->zst_swflags & TIOCFLAG_SOFTCAR)
hup = 0;