Deleted Added
full compact
tty.c (7469) tty.c (7470)
1/*-
2 * Copyright (c) 1982, 1986, 1990, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)tty.c 8.8 (Berkeley) 1/21/94
1/*-
2 * Copyright (c) 1982, 1986, 1990, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)tty.c 8.8 (Berkeley) 1/21/94
39 * $Id: tty.c,v 1.39 1995/03/29 18:55:20 ache Exp $
39 * $Id: tty.c,v 1.40 1995/03/29 19:22:37 ache Exp $
40 */
41
42#include "snp.h"
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/ioctl.h>
47#include <sys/proc.h>

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

277 ++tk_nin;
278
279 /* Handle exceptional conditions (break, parity, framing). */
280 cc = tp->t_cc;
281 iflag = tp->t_iflag;
282 err = (ISSET(c, TTY_ERRORMASK));
283 if (err) {
284 CLR(c, TTY_ERRORMASK);
40 */
41
42#include "snp.h"
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/ioctl.h>
47#include <sys/proc.h>

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

277 ++tk_nin;
278
279 /* Handle exceptional conditions (break, parity, framing). */
280 cc = tp->t_cc;
281 iflag = tp->t_iflag;
282 err = (ISSET(c, TTY_ERRORMASK));
283 if (err) {
284 CLR(c, TTY_ERRORMASK);
285 if (ISSET(err, TTY_BI) { /* Break. */
285 if (ISSET(err, TTY_BI)) { /* Break. */
286 if (ISSET(iflag, IGNBRK))
287 return (0);
288 else if (ISSET(iflag, BRKINT) &&
289 ISSET(lflag, ISIG) &&
290 (cc[VINTR] != _POSIX_VDISABLE))
291 c = cc[VINTR];
292 else if (ISSET(iflag, PARMRK))
293 goto parmrk;

--- 1920 unchanged lines hidden ---
286 if (ISSET(iflag, IGNBRK))
287 return (0);
288 else if (ISSET(iflag, BRKINT) &&
289 ISSET(lflag, ISIG) &&
290 (cc[VINTR] != _POSIX_VDISABLE))
291 c = cc[VINTR];
292 else if (ISSET(iflag, PARMRK))
293 goto parmrk;

--- 1920 unchanged lines hidden ---