tty stop functions really should return void, not int, and certainly not both.
This commit is contained in:
parent
125a8c5ce5
commit
b3eac79b64
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: scc.c,v 1.19 1996/07/09 00:55:19 cgd Exp $ */
|
||||
/* $NetBSD: scc.c,v 1.20 1996/09/02 06:43:16 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991,1990,1989,1994,1995,1996 Carnegie Mellon University
|
||||
|
@ -1039,7 +1039,7 @@ out:
|
|||
* Stop output on a line.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
void
|
||||
sccstop(tp, flag)
|
||||
register struct tty *tp;
|
||||
int flag;
|
||||
|
@ -1057,8 +1057,6 @@ sccstop(tp, flag)
|
|||
tp->t_state |= TS_FLUSH;
|
||||
}
|
||||
splx(s);
|
||||
|
||||
return 0; /* XXX should be void */
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: wscons.c,v 1.4 1996/05/30 18:44:51 cgd Exp $ */
|
||||
/* $NetBSD: wscons.c,v 1.5 1996/09/02 06:43:20 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
|
||||
|
@ -418,7 +418,7 @@ wsconsstart(tp)
|
|||
splx(s);
|
||||
}
|
||||
|
||||
int
|
||||
void
|
||||
wsconsstop(tp, flag)
|
||||
struct tty *tp;
|
||||
int flag;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ite.c,v 1.42 1996/06/06 04:47:31 mhitch Exp $ */
|
||||
/* $NetBSD: ite.c,v 1.43 1996/09/02 06:43:23 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
|
@ -536,12 +536,12 @@ itetty(dev)
|
|||
return (getitesp(dev)->tp);
|
||||
}
|
||||
|
||||
int
|
||||
void
|
||||
itestop(tp, flag)
|
||||
struct tty *tp;
|
||||
int flag;
|
||||
{
|
||||
return (0);
|
||||
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mfc.c,v 1.14 1996/08/27 21:55:05 cgd Exp $ */
|
||||
/* $NetBSD: mfc.c,v 1.15 1996/09/02 06:43:26 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Michael L. Hitch
|
||||
|
@ -870,7 +870,7 @@ out:
|
|||
* Stop output on a line.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
void
|
||||
mfcsstop(tp, flag)
|
||||
struct tty *tp;
|
||||
int flag;
|
||||
|
@ -883,7 +883,6 @@ mfcsstop(tp, flag)
|
|||
tp->t_state |= TS_FLUSH;
|
||||
}
|
||||
splx(s);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: msc.c,v 1.7 1996/06/06 04:47:34 mhitch Exp $ */
|
||||
/* $NetBSD: msc.c,v 1.8 1996/09/02 06:43:30 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993 Zik.
|
||||
|
@ -1154,7 +1154,7 @@ out:
|
|||
* Stop output on a line.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
void
|
||||
mscstop(tp, flag)
|
||||
register struct tty *tp;
|
||||
int flag; /* defaulted to int anyway */
|
||||
|
@ -1178,7 +1178,6 @@ mscstop(tp, flag)
|
|||
}
|
||||
}
|
||||
splx(s);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ser.c,v 1.35 1996/06/06 04:47:36 mhitch Exp $ */
|
||||
/* $NetBSD: ser.c,v 1.36 1996/09/02 06:43:33 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
|
||||
|
@ -891,7 +891,7 @@ out:
|
|||
* Stop output on a line.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
void
|
||||
serstop(tp, flag)
|
||||
struct tty *tp;
|
||||
int flag;
|
||||
|
@ -904,7 +904,6 @@ serstop(tp, flag)
|
|||
tp->t_state |= TS_FLUSH;
|
||||
}
|
||||
splx(s);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: com.c,v 1.7 1996/06/03 22:30:36 mark Exp $ */
|
||||
/* $NetBSD: com.c,v 1.8 1996/09/02 06:43:37 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993, 1994, 1995, 1996
|
||||
|
@ -892,7 +892,7 @@ stopped:
|
|||
/*
|
||||
* Stop output on a line.
|
||||
*/
|
||||
int
|
||||
void
|
||||
comstop(tp, flag)
|
||||
struct tty *tp;
|
||||
int flag;
|
||||
|
@ -904,7 +904,6 @@ comstop(tp, flag)
|
|||
if (!ISSET(tp->t_state, TS_TTSTOP))
|
||||
SET(tp->t_state, TS_FLUSH);
|
||||
splx(s);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: com.c,v 1.7 1996/06/03 22:30:36 mark Exp $ */
|
||||
/* $NetBSD: com.c,v 1.8 1996/09/02 06:43:37 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993, 1994, 1995, 1996
|
||||
|
@ -892,7 +892,7 @@ stopped:
|
|||
/*
|
||||
* Stop output on a line.
|
||||
*/
|
||||
int
|
||||
void
|
||||
comstop(tp, flag)
|
||||
struct tty *tp;
|
||||
int flag;
|
||||
|
@ -904,7 +904,6 @@ comstop(tp, flag)
|
|||
if (!ISSET(tp->t_state, TS_TTSTOP))
|
||||
SET(tp->t_state, TS_FLUSH);
|
||||
splx(s);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ite.c,v 1.13 1996/06/18 05:54:59 leo Exp $ */
|
||||
/* $NetBSD: ite.c,v 1.14 1996/09/02 06:43:42 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
|
@ -482,12 +482,12 @@ itewrite(dev, uio, flag)
|
|||
return ((*linesw[tp->t_line].l_write) (tp, uio, flag));
|
||||
}
|
||||
|
||||
int
|
||||
void
|
||||
itestop(tp, flag)
|
||||
struct tty *tp;
|
||||
int flag;
|
||||
{
|
||||
return (0);
|
||||
|
||||
}
|
||||
|
||||
struct tty *
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dca.c,v 1.24 1996/06/06 15:36:06 thorpej Exp $ */
|
||||
/* $NetBSD: dca.c,v 1.25 1996/09/02 06:43:45 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996 Jason R. Thorpe. All rights reserved.
|
||||
|
@ -795,7 +795,7 @@ out:
|
|||
* Stop output on a line.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
void
|
||||
dcastop(tp, flag)
|
||||
register struct tty *tp;
|
||||
int flag;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dcm.c,v 1.28 1996/06/06 15:36:10 thorpej Exp $ */
|
||||
/* $NetBSD: dcm.c,v 1.29 1996/09/02 06:43:47 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996 Jason R. Thorpe. All rights reserved.
|
||||
|
@ -1192,7 +1192,7 @@ out:
|
|||
/*
|
||||
* Stop output on a line.
|
||||
*/
|
||||
int
|
||||
void
|
||||
dcmstop(tp, flag)
|
||||
register struct tty *tp;
|
||||
int flag;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pccons.c,v 1.100 1996/05/30 23:59:11 cgd Exp $ */
|
||||
/* $NetBSD: pccons.c,v 1.101 1996/09/02 06:43:51 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993, 1994, 1995 Charles Hannum. All rights reserved.
|
||||
|
@ -729,12 +729,12 @@ out:
|
|||
splx(s);
|
||||
}
|
||||
|
||||
int
|
||||
void
|
||||
pcstop(tp, flag)
|
||||
struct tty *tp;
|
||||
int flag;
|
||||
{
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: z8530tty.c,v 1.3 1996/06/01 00:13:41 scottr Exp $ */
|
||||
/* $NetBSD: z8530tty.c,v 1.4 1996/09/02 06:43:54 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Gordon W. Ross
|
||||
|
@ -645,7 +645,7 @@ out:
|
|||
/*
|
||||
* Stop output, e.g., for ^S or output flush.
|
||||
*/
|
||||
int
|
||||
void
|
||||
zsstop(tp, flag)
|
||||
struct tty *tp;
|
||||
int flag;
|
||||
|
@ -668,7 +668,6 @@ zsstop(tp, flag)
|
|||
tp->t_state |= TS_FLUSH;
|
||||
}
|
||||
splx(s);
|
||||
return (0);
|
||||
}
|
||||
|
||||
#ifndef ZS_TOLERANCE
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: scn.c,v 1.26 1996/03/17 01:39:04 thorpej Exp $ */
|
||||
/* $NetBSD: scn.c,v 1.27 1996/09/02 06:43:57 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991 The Regents of the University of California.
|
||||
|
@ -955,6 +955,7 @@ out:
|
|||
* Stop output on a line.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
scnstop(tp, flag)
|
||||
register struct tty *tp;
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dc.c,v 1.20 1996/06/16 16:50:56 mhitch Exp $ */
|
||||
/* $NetBSD: dc.c,v 1.21 1996/09/02 06:44:00 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -794,7 +794,7 @@ out:
|
|||
* Stop output on a line.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
void
|
||||
dcstop(tp, flag)
|
||||
register struct tty *tp;
|
||||
{
|
||||
|
@ -809,8 +809,6 @@ dcstop(tp, flag)
|
|||
tp->t_state |= TS_FLUSH;
|
||||
}
|
||||
splx(s);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dtop.c,v 1.16 1996/06/16 16:50:58 mhitch Exp $ */
|
||||
/* $NetBSD: dtop.c,v 1.17 1996/09/02 06:44:02 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -690,7 +690,7 @@ dtopparam(tp, t)
|
|||
* Stop output on a line.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
void
|
||||
dtopstop(tp, flag)
|
||||
register struct tty *tp;
|
||||
int flag;
|
||||
|
@ -703,8 +703,6 @@ dtopstop(tp, flag)
|
|||
tp->t_state |= TS_FLUSH;
|
||||
}
|
||||
splx(s);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rcons.c,v 1.9 1996/05/19 01:06:14 jonathan Exp $ */
|
||||
/* $NetBSD: rcons.c,v 1.10 1996/09/02 06:44:03 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995
|
||||
|
@ -340,20 +340,21 @@ rconsioctl(dev, cmd, data, flag, p)
|
|||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
int
|
||||
rconsstop (tp, rw)
|
||||
void
|
||||
rconsstop(tp, rw)
|
||||
struct tty *tp;
|
||||
int rw;
|
||||
{
|
||||
return (0);
|
||||
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
rconsreset (tp, rw)
|
||||
rconsreset(tp, rw)
|
||||
struct tty *tp;
|
||||
int rw;
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cons.c,v 1.8 1995/04/10 07:14:33 mycroft Exp $ */
|
||||
/* $NetBSD: cons.c,v 1.9 1996/09/02 06:44:06 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
|
@ -120,7 +120,7 @@ cnwrite(dev, uio, flag)
|
|||
return ((*cdevsw[major(dev)].d_write)(dev, uio, flag));
|
||||
}
|
||||
|
||||
int
|
||||
void
|
||||
cnstop(tp, flag)
|
||||
struct tty *tp;
|
||||
int flag;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: scc.c,v 1.13 1996/06/16 16:49:07 mhitch Exp $ */
|
||||
/* $NetBSD: scc.c,v 1.14 1996/09/02 06:44:12 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991,1990,1989,1994,1995 Carnegie Mellon University
|
||||
|
@ -1218,7 +1218,7 @@ out:
|
|||
* Stop output on a line.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
void
|
||||
sccstop(tp, flag)
|
||||
register struct tty *tp;
|
||||
int flag;
|
||||
|
@ -1236,8 +1236,6 @@ sccstop(tp, flag)
|
|||
tp->t_state |= TS_FLUSH;
|
||||
}
|
||||
splx(s);
|
||||
|
||||
return 0; /* XXX should be void */
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cons.c,v 1.24 1996/05/29 02:03:11 mrg Exp $ */
|
||||
/* $NetBSD: cons.c,v 1.25 1996/09/02 06:44:15 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -81,13 +81,13 @@ int cons_ocount; /* output byte count */
|
|||
* The output driver may munge the minor number in cons.t_dev.
|
||||
*/
|
||||
struct tty cons; /* rom console tty device */
|
||||
static int (*fcnstop) __P((struct tty *, int));
|
||||
static void (*fcnstop) __P((struct tty *, int));
|
||||
|
||||
static void cnstart __P((struct tty *));
|
||||
int cnstop __P((struct tty *, int));
|
||||
void cnstop __P((struct tty *, int));
|
||||
|
||||
static void cnfbstart __P((struct tty *));
|
||||
static int cnfbstop __P((struct tty *, int));
|
||||
static void cnfbstop __P((struct tty *, int));
|
||||
static void cnfbdma __P((void *));
|
||||
static struct tty *xxcntty __P((dev_t));
|
||||
|
||||
|
@ -467,13 +467,13 @@ cnstart(tp)
|
|||
splx(s);
|
||||
}
|
||||
|
||||
int
|
||||
void
|
||||
cnstop(tp, flag)
|
||||
register struct tty *tp;
|
||||
int flag;
|
||||
{
|
||||
(void)(*fcnstop)(tp, flag);
|
||||
return 0;
|
||||
|
||||
(*fcnstop)(tp, flag);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -517,7 +517,7 @@ cnfbstart(tp)
|
|||
/*
|
||||
* Stop frame buffer output: just assert TS_FLUSH if necessary.
|
||||
*/
|
||||
static int
|
||||
static void
|
||||
cnfbstop(tp, flag)
|
||||
register struct tty *tp;
|
||||
int flag;
|
||||
|
@ -527,7 +527,6 @@ cnfbstop(tp, flag)
|
|||
if ((tp->t_state & (TS_BUSY | TS_TTSTOP)) == TS_BUSY)
|
||||
tp->t_state |= TS_FLUSH;
|
||||
splx(s);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: zs.c,v 1.41 1996/05/30 00:57:35 pk Exp $ */
|
||||
/* $NetBSD: zs.c,v 1.42 1996/09/02 06:44:17 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -418,7 +418,7 @@ zsconsole(tp, unit, out, fnstop)
|
|||
register struct tty *tp;
|
||||
register int unit;
|
||||
int out;
|
||||
int (**fnstop) __P((struct tty *, int));
|
||||
void (**fnstop) __P((struct tty *, int));
|
||||
{
|
||||
int zs;
|
||||
volatile struct zsdevice *addr;
|
||||
|
@ -435,7 +435,7 @@ zsconsole(tp, unit, out, fnstop)
|
|||
v_putc = zscnputc;
|
||||
} else
|
||||
zs_consin = unit;
|
||||
if(fnstop)
|
||||
if (fnstop)
|
||||
*fnstop = &zsstop;
|
||||
zs_ctty = tp;
|
||||
}
|
||||
|
@ -1331,7 +1331,7 @@ out:
|
|||
/*
|
||||
* Stop output, e.g., for ^S or output flush.
|
||||
*/
|
||||
int
|
||||
void
|
||||
zsstop(tp, flag)
|
||||
register struct tty *tp;
|
||||
int flag;
|
||||
|
@ -1351,7 +1351,6 @@ zsstop(tp, flag)
|
|||
tp->t_state |= TS_FLUSH;
|
||||
}
|
||||
splx(s);
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kd.c,v 1.17 1996/06/15 14:58:02 gwr Exp $ */
|
||||
/* $NetBSD: kd.c,v 1.18 1996/09/02 06:44:19 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995 Gordon W. Ross
|
||||
|
@ -259,7 +259,7 @@ kdparam(tp, t)
|
|||
}
|
||||
|
||||
|
||||
int
|
||||
void
|
||||
kdstop(tp, flag)
|
||||
struct tty *tp;
|
||||
int flag;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dhu.c,v 1.5 1996/05/19 16:27:02 ragge Exp $ */
|
||||
/* $NetBSD: dhu.c,v 1.6 1996/09/02 06:44:21 mycroft Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1996 Ken C. Wellsch. All rights reserved.
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -132,7 +132,7 @@ static unsigned dhumctl __P((struct dhu_softc *,int, int, int));
|
|||
int dhuread __P((dev_t, struct uio *, int));
|
||||
int dhuwrite __P((dev_t, struct uio *, int));
|
||||
int dhuioctl __P((dev_t, u_long, caddr_t, int, struct proc *));
|
||||
int dhustop __P((struct tty *, int));
|
||||
void dhustop __P((struct tty *, int));
|
||||
struct tty * dhutty __P((dev_t));
|
||||
|
||||
struct cfdriver dhu_cd = {
|
||||
|
@ -561,7 +561,7 @@ dhutty(dev)
|
|||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
void
|
||||
dhustop(tp, flag)
|
||||
register struct tty *tp;
|
||||
{
|
||||
|
@ -590,7 +590,6 @@ dhustop(tp, flag)
|
|||
tp->t_state |= TS_FLUSH;
|
||||
}
|
||||
(void) splx(s);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dz.c,v 1.1 1996/04/08 17:22:20 ragge Exp $ */
|
||||
/* $NetBSD: dz.c,v 1.2 1996/09/02 06:44:23 mycroft Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1996 Ken C. Wellsch. All rights reserved.
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -121,7 +121,7 @@ struct tty * dztty __P((dev_t));
|
|||
int dzread __P((dev_t, struct uio *, int));
|
||||
int dzwrite __P((dev_t, struct uio *, int));
|
||||
int dzioctl __P((dev_t, int, caddr_t, int, struct proc *));
|
||||
int dzstop __P((struct tty *, int));
|
||||
void dzstop __P((struct tty *, int));
|
||||
|
||||
struct cfdriver dz_cd = {
|
||||
NULL, "dz", DV_TTY
|
||||
|
@ -547,8 +547,8 @@ dztty (dev)
|
|||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
dzstop (tp, flag)
|
||||
void
|
||||
dzstop(tp, flag)
|
||||
register struct tty *tp;
|
||||
{
|
||||
register struct dz_softc *sc;
|
||||
|
@ -560,14 +560,12 @@ dzstop (tp, flag)
|
|||
|
||||
s = spltty();
|
||||
|
||||
if (tp->t_state & TS_BUSY)
|
||||
{
|
||||
if (tp->t_state & TS_BUSY) {
|
||||
sc->sc_dz[line].dz_end = sc->sc_dz[line].dz_mem;
|
||||
if (!(tp->t_state & TS_TTSTOP))
|
||||
tp->t_state |= TS_FLUSH;
|
||||
}
|
||||
(void) splx(s);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: qd.c,v 1.1 1996/08/18 21:28:53 jonathan Exp $ */
|
||||
/* $NetBSD: qd.c,v 1.2 1996/09/02 06:44:25 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1988 Regents of the University of California.
|
||||
|
@ -1583,6 +1583,7 @@ out:
|
|||
} /* qdstart */
|
||||
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
qdstop(tp, flag)
|
||||
register struct tty *tp;
|
||||
int flag;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: qv.c,v 1.1 1996/08/18 21:28:55 jonathan Exp $ */
|
||||
/* $NetBSD: qv.c,v 1.2 1996/09/02 06:44:28 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1988
|
||||
|
@ -956,8 +956,10 @@ out:
|
|||
* Stop output on a line, e.g. for ^S/^Q or output flush.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
qvstop(tp, flag)
|
||||
register struct tty *tp;
|
||||
int flag;
|
||||
{
|
||||
register int s;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dzcons.c,v 1.1 1996/07/20 18:29:49 ragge Exp $ */
|
||||
/* $NetBSD: dzcons.c,v 1.2 1996/09/02 06:44:30 mycroft Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1994 Gordon W. Ross
|
||||
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
|
||||
|
@ -258,11 +258,12 @@ dzcnrint()
|
|||
return;
|
||||
}
|
||||
|
||||
int
|
||||
void
|
||||
dzcnstop(tp, flag)
|
||||
struct tty *tp;
|
||||
int flag;
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
dzcntint()
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: gencons.c,v 1.10 1996/04/08 18:32:36 ragge Exp $ */
|
||||
/* $NetBSD: gencons.c,v 1.11 1996/09/02 06:44:32 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Gordon W. Ross
|
||||
|
@ -68,7 +68,7 @@ void gencninit __P((struct consdev *));
|
|||
struct tty *gencntty __P((dev_t));
|
||||
void gencnrint __P((void));
|
||||
void gencntint __P((void));
|
||||
int gencnstop __P((struct tty *, int));
|
||||
void gencnstop __P((struct tty *, int));
|
||||
void gencnslask __P((void));
|
||||
|
||||
int
|
||||
|
@ -218,12 +218,12 @@ gencnrint()
|
|||
return;
|
||||
}
|
||||
|
||||
int
|
||||
void
|
||||
gencnstop(tp, flag)
|
||||
struct tty *tp;
|
||||
int flag;
|
||||
{
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dc.c,v 1.1 1996/07/20 18:55:09 ragge Exp $ */
|
||||
/* $NetBSD: dc.c,v 1.2 1996/09/02 06:44:34 mycroft Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 1992, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
|
@ -766,6 +766,7 @@ out:
|
|||
* Stop output on a line.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
dcstop(tp, flag)
|
||||
register struct tty *tp;
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: zs.c,v 1.3 1996/06/05 17:13:05 oki Exp $ */
|
||||
/* $NetBSD: zs.c,v 1.4 1996/09/02 06:44:36 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -137,7 +137,7 @@ struct zs_chanstate *zslist;
|
|||
static void zsiopen __P((struct tty *));
|
||||
static void zsiclose __P((struct tty *));
|
||||
static void zsstart __P((struct tty *));
|
||||
int zsstop __P((struct tty *, int));
|
||||
void zsstop __P((struct tty *, int));
|
||||
static int zsparam __P((struct tty *, struct termios *));
|
||||
static int zshwiflow __P((struct tty *, int));
|
||||
|
||||
|
@ -376,7 +376,7 @@ zsconsole(tp, unit, out, fnstop)
|
|||
register struct tty *tp;
|
||||
register int unit;
|
||||
int out;
|
||||
int (**fnstop) __P((struct tty *, int));
|
||||
void (**fnstop) __P((struct tty *, int));
|
||||
{
|
||||
int zs;
|
||||
volatile struct zsdevice *addr;
|
||||
|
@ -391,7 +391,7 @@ zsconsole(tp, unit, out, fnstop)
|
|||
v_putc = zscnputc;
|
||||
} else
|
||||
zs_consin = unit;
|
||||
if(fnstop)
|
||||
if (fnstop)
|
||||
*fnstop = &zsstop;
|
||||
zs_ctty = tp;
|
||||
}
|
||||
|
@ -1292,7 +1292,7 @@ out:
|
|||
/*
|
||||
* Stop output, e.g., for ^S or output flush.
|
||||
*/
|
||||
int
|
||||
void
|
||||
zsstop(tp, flag)
|
||||
register struct tty *tp;
|
||||
int flag;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cons.c,v 1.30 1996/04/08 19:57:30 jonathan Exp $ */
|
||||
/* $NetBSD: cons.c,v 1.31 1996/09/02 06:44:41 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
|
@ -152,12 +152,12 @@ cnwrite(dev, uio, flag)
|
|||
return ((*cdevsw[major(dev)].d_write)(dev, uio, flag));
|
||||
}
|
||||
|
||||
int
|
||||
void
|
||||
cnstop(tp, flag)
|
||||
struct tty *tp;
|
||||
int flag;
|
||||
{
|
||||
return (0);
|
||||
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dz.c,v 1.1 1996/04/08 17:22:20 ragge Exp $ */
|
||||
/* $NetBSD: dz.c,v 1.2 1996/09/02 06:44:23 mycroft Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1996 Ken C. Wellsch. All rights reserved.
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -121,7 +121,7 @@ struct tty * dztty __P((dev_t));
|
|||
int dzread __P((dev_t, struct uio *, int));
|
||||
int dzwrite __P((dev_t, struct uio *, int));
|
||||
int dzioctl __P((dev_t, int, caddr_t, int, struct proc *));
|
||||
int dzstop __P((struct tty *, int));
|
||||
void dzstop __P((struct tty *, int));
|
||||
|
||||
struct cfdriver dz_cd = {
|
||||
NULL, "dz", DV_TTY
|
||||
|
@ -547,8 +547,8 @@ dztty (dev)
|
|||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
dzstop (tp, flag)
|
||||
void
|
||||
dzstop(tp, flag)
|
||||
register struct tty *tp;
|
||||
{
|
||||
register struct dz_softc *sc;
|
||||
|
@ -560,14 +560,12 @@ dzstop (tp, flag)
|
|||
|
||||
s = spltty();
|
||||
|
||||
if (tp->t_state & TS_BUSY)
|
||||
{
|
||||
if (tp->t_state & TS_BUSY) {
|
||||
sc->sc_dz[line].dz_end = sc->sc_dz[line].dz_mem;
|
||||
if (!(tp->t_state & TS_TTSTOP))
|
||||
tp->t_state |= TS_FLUSH;
|
||||
}
|
||||
(void) splx(s);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: com.c,v 1.84 1996/07/10 18:14:04 cgd Exp $ */
|
||||
/* $NetBSD: com.c,v 1.85 1996/09/02 06:44:47 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993, 1994, 1995, 1996
|
||||
|
@ -1055,7 +1055,7 @@ stopped:
|
|||
/*
|
||||
* Stop output on a line.
|
||||
*/
|
||||
int
|
||||
void
|
||||
comstop(tp, flag)
|
||||
struct tty *tp;
|
||||
int flag;
|
||||
|
@ -1067,7 +1067,6 @@ comstop(tp, flag)
|
|||
if (!ISSET(tp->t_state, TS_TTSTOP))
|
||||
SET(tp->t_state, TS_FLUSH);
|
||||
splx(s);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: z8530tty.c,v 1.9 1996/06/13 23:05:40 gwr Exp $ */
|
||||
/* $NetBSD: z8530tty.c,v 1.10 1996/09/02 06:44:44 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Gordon W. Ross
|
||||
|
@ -640,7 +640,7 @@ out:
|
|||
/*
|
||||
* Stop output, e.g., for ^S or output flush.
|
||||
*/
|
||||
int
|
||||
void
|
||||
zsstop(tp, flag)
|
||||
struct tty *tp;
|
||||
int flag;
|
||||
|
@ -665,7 +665,6 @@ zsstop(tp, flag)
|
|||
tp->t_state |= TS_FLUSH;
|
||||
}
|
||||
splx(s);
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: com.c,v 1.84 1996/07/10 18:14:04 cgd Exp $ */
|
||||
/* $NetBSD: com.c,v 1.85 1996/09/02 06:44:47 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993, 1994, 1995, 1996
|
||||
|
@ -1055,7 +1055,7 @@ stopped:
|
|||
/*
|
||||
* Stop output on a line.
|
||||
*/
|
||||
int
|
||||
void
|
||||
comstop(tp, flag)
|
||||
struct tty *tp;
|
||||
int flag;
|
||||
|
@ -1067,7 +1067,6 @@ comstop(tp, flag)
|
|||
if (!ISSET(tp->t_state, TS_TTSTOP))
|
||||
SET(tp->t_state, TS_FLUSH);
|
||||
splx(s);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cy.c,v 1.13 1996/05/30 18:24:16 cgd Exp $ */
|
||||
/* $NetBSD: cy.c,v 1.14 1996/09/02 06:44:49 mycroft Exp $ */
|
||||
|
||||
/* XXX THIS DRIVER IS BROKEN. IT WILL NOT EVEN COMPILE. */
|
||||
|
||||
|
@ -1443,7 +1443,7 @@ cystart(struct tty *tp)
|
|||
} /* end of cystart() */
|
||||
|
||||
|
||||
int
|
||||
void
|
||||
cystop(struct tty *tp, int flag)
|
||||
{
|
||||
u_char unit = UNIT(tp->t_dev);
|
||||
|
@ -1461,8 +1461,6 @@ cystop(struct tty *tp, int flag)
|
|||
*(base + CD1400_SRER) = ip->intr_enable;
|
||||
|
||||
splx(s);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tty_pty.c,v 1.35 1996/07/02 21:19:02 pk Exp $ */
|
||||
/* $NetBSD: tty_pty.c,v 1.36 1996/09/02 06:44:52 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1993
|
||||
|
@ -256,7 +256,7 @@ ptsstart(tp)
|
|||
ptcwakeup(tp, FREAD);
|
||||
}
|
||||
|
||||
int
|
||||
void
|
||||
ptsstop(tp, flush)
|
||||
register struct tty *tp;
|
||||
int flush;
|
||||
|
@ -278,7 +278,6 @@ ptsstop(tp, flush)
|
|||
if (flush & FWRITE)
|
||||
flag |= FREAD;
|
||||
ptcwakeup(tp, flag);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: conf.h,v 1.34 1996/09/01 21:32:24 mycroft Exp $ */
|
||||
/* $NetBSD: conf.h,v 1.35 1996/09/02 06:44:54 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -150,7 +150,7 @@ struct cdevsw {
|
|||
int (*d_write) __P((dev_t dev, struct uio *uio, int ioflag));
|
||||
int (*d_ioctl) __P((dev_t dev, u_long cmd, caddr_t data,
|
||||
int fflag, struct proc *p));
|
||||
int (*d_stop) __P((struct tty *tp, int rw));
|
||||
void (*d_stop) __P((struct tty *tp, int rw));
|
||||
struct tty *
|
||||
(*d_tty) __P((dev_t dev));
|
||||
int (*d_select) __P((dev_t dev, int which, struct proc *p));
|
||||
|
@ -165,7 +165,7 @@ extern struct cdevsw cdevsw[];
|
|||
/* cdevsw-specific types */
|
||||
#define dev_type_read(n) int n __P((dev_t, struct uio *, int))
|
||||
#define dev_type_write(n) int n __P((dev_t, struct uio *, int))
|
||||
#define dev_type_stop(n) int n __P((struct tty *, int))
|
||||
#define dev_type_stop(n) void n __P((struct tty *, int))
|
||||
#define dev_type_tty(n) struct tty *n __P((dev_t))
|
||||
#define dev_type_select(n) int n __P((dev_t, int, struct proc *))
|
||||
#define dev_type_mmap(n) int n __P((dev_t, int, int))
|
||||
|
|
Loading…
Reference in New Issue