tty_compat.c (12370) | tty_compat.c (12819) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1991, 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_compat.c 8.1 (Berkeley) 6/10/93 | 1/*- 2 * Copyright (c) 1982, 1986, 1991, 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_compat.c 8.1 (Berkeley) 6/10/93 |
34 * $Id: tty_compat.c,v 1.17 1995/08/02 12:53:14 ache Exp $ | 34 * $Id: tty_compat.c,v 1.18 1995/11/18 11:07:00 bde Exp $ |
35 */ 36 37/* 38 * mapping routines for old line discipline (yuck) 39 */ 40#if defined(COMPAT_43) || defined(COMPAT_SUNOS) 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/ioctl.h> 45#include <sys/proc.h> 46#include <sys/tty.h> 47#include <sys/termios.h> 48#include <sys/file.h> 49#include <sys/conf.h> 50#include <sys/kernel.h> | 35 */ 36 37/* 38 * mapping routines for old line discipline (yuck) 39 */ 40#if defined(COMPAT_43) || defined(COMPAT_SUNOS) 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/ioctl.h> 45#include <sys/proc.h> 46#include <sys/tty.h> 47#include <sys/termios.h> 48#include <sys/file.h> 49#include <sys/conf.h> 50#include <sys/kernel.h> |
51#include <sys/sysctl.h> |
|
51#include <sys/syslog.h> 52 53static int ttcompatgetflags __P((struct tty *tp)); 54static void ttcompatsetflags __P((struct tty *tp, struct termios *t)); 55static void ttcompatsetlflags __P((struct tty *tp, struct termios *t)); 56static int ttcompatspeedtab __P((int speed, struct speedtab *table)); 57 | 52#include <sys/syslog.h> 53 54static int ttcompatgetflags __P((struct tty *tp)); 55static void ttcompatsetflags __P((struct tty *tp, struct termios *t)); 56static void ttcompatsetlflags __P((struct tty *tp, struct termios *t)); 57static int ttcompatspeedtab __P((int speed, struct speedtab *table)); 58 |
58int ttydebug = 0; | 59static int ttydebug = 0; 60SYSCTL_INT(_debug, OID_AUTO, ttydebug, CTLFLAG_RW, &ttydebug, 0, ""); |
59 60static struct speedtab compatspeeds[] = { 61#define MAX_SPEED 17 62 { 115200, 17 }, 63 { 57600, 16 }, 64 { 38400, 15 }, 65 { 19200, 14 }, 66 { 9600, 13 }, --- 425 unchanged lines hidden --- | 61 62static struct speedtab compatspeeds[] = { 63#define MAX_SPEED 17 64 { 115200, 17 }, 65 { 57600, 16 }, 66 { 38400, 15 }, 67 { 19200, 14 }, 68 { 9600, 13 }, --- 425 unchanged lines hidden --- |