Deleted Added
full compact
pty.c (9858) pty.c (10624)
1/*
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)tty_pty.c 8.2 (Berkeley) 9/23/93
1/*
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)tty_pty.c 8.2 (Berkeley) 9/23/93
34 * $Id: tty_pty.c,v 1.17 1995/08/02 02:55:47 bde Exp $
34 * $Id: tty_pty.c,v 1.19 1995/08/02 11:26:50 ache Exp $
35 */
36
37/*
38 * Pseudo-teletype Driver
39 * (Actually two drivers, requiring two entries in 'cdevsw')
40 */
41#include "pty.h" /* XXX */
42

--- 248 unchanged lines hidden (view full) ---

291 pti = &pt_ioctl[minor(dev)];
292 pti->pt_flags = 0;
293 pti->pt_send = 0;
294 pti->pt_ucntl = 0;
295 return (0);
296}
297
298int
35 */
36
37/*
38 * Pseudo-teletype Driver
39 * (Actually two drivers, requiring two entries in 'cdevsw')
40 */
41#include "pty.h" /* XXX */
42

--- 248 unchanged lines hidden (view full) ---

291 pti = &pt_ioctl[minor(dev)];
292 pti->pt_flags = 0;
293 pti->pt_send = 0;
294 pti->pt_ucntl = 0;
295 return (0);
296}
297
298int
299ptcclose(dev)
299ptcclose(dev, flags, fmt, p)
300 dev_t dev;
300 dev_t dev;
301 int flags;
302 int fmt;
303 struct proc *p;
301{
302 register struct tty *tp;
303
304 tp = &pt_tty[minor(dev)];
305 (void)(*linesw[tp->t_line].l_modem)(tp, 0);
306
307 /*
308 * XXX MDMBUF makes no sense for ptys but would inhibit the above

--- 413 unchanged lines hidden ---
304{
305 register struct tty *tp;
306
307 tp = &pt_tty[minor(dev)];
308 (void)(*linesw[tp->t_line].l_modem)(tp, 0);
309
310 /*
311 * XXX MDMBUF makes no sense for ptys but would inhibit the above

--- 413 unchanged lines hidden ---