Deleted Added
full compact
pty.c (1817) pty.c (2807)
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$
34 * $Id: tty_pty.c,v 1.3 1994/08/02 07:42:51 davidg Exp $
35 */
36
37/*
38 * Pseudo-teletype Driver
39 * (Actually two drivers, requiring two entries in 'cdevsw')
40 */
41#include "pty.h" /* XXX */
42

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

333 if (tp->t_state&TS_ISOPEN) {
334 if (pti->pt_flags&PF_PKT && pti->pt_send) {
335 error = ureadc((int)pti->pt_send, uio);
336 if (error)
337 return (error);
338 if (pti->pt_send & TIOCPKT_IOCTL) {
339 cc = min(uio->uio_resid,
340 sizeof(tp->t_termios));
35 */
36
37/*
38 * Pseudo-teletype Driver
39 * (Actually two drivers, requiring two entries in 'cdevsw')
40 */
41#include "pty.h" /* XXX */
42

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

333 if (tp->t_state&TS_ISOPEN) {
334 if (pti->pt_flags&PF_PKT && pti->pt_send) {
335 error = ureadc((int)pti->pt_send, uio);
336 if (error)
337 return (error);
338 if (pti->pt_send & TIOCPKT_IOCTL) {
339 cc = min(uio->uio_resid,
340 sizeof(tp->t_termios));
341 uiomove(&tp->t_termios, cc, uio);
341 uiomove((caddr_t)&tp->t_termios, cc,
342 uio);
342 }
343 pti->pt_send = 0;
344 return (0);
345 }
346 if (pti->pt_flags&PF_UCNTL && pti->pt_ucntl) {
347 error = ureadc((int)pti->pt_ucntl, uio);
348 if (error)
349 return (error);

--- 356 unchanged lines hidden ---
343 }
344 pti->pt_send = 0;
345 return (0);
346 }
347 if (pti->pt_flags&PF_UCNTL && pti->pt_ucntl) {
348 error = ureadc((int)pti->pt_ucntl, uio);
349 if (error)
350 return (error);

--- 356 unchanged lines hidden ---