/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* merged together.
*/
#include "mt.h"
#include "uucp.h"
static const struct sg_spds {
int sp_val,
} spds[] = {
{ 50, B50},
{ 75, B75},
{ 110, B110},
{ 134, B134},
{ 150, B150},
{ 200, B200},
{ 300, B300},
{ 600, B600},
{1200, B1200},
{1800, B1800},
{2400, B2400},
{4800, B4800},
{9600, B9600},
#ifdef EXTA
{19200, EXTA},
#endif
#ifdef B19200
{19200, B19200},
#endif
#ifdef B38400
{38400, B38400},
#endif
{57600, B57600},
{76800, B76800},
{115200, B115200},
{153600, B153600},
{230400, B230400},
{307200, B307200},
{460800, B460800},
{921600, B921600},
{0, 0}
};
static int
/*
* tty -> terminal name
* spwant -> speed
* type -> type
*
* if spwant == 0, speed is untouched
* type is unused, but needed for compatibility
*
* return:
* none
*/
/*ARGSUSED*/
static void
{
return;
for (i = 0; i < NCC; i++)
}
if (spwant > 0) {
break;
}
if (speed < 0) {
/*EMPTY*/
}
} else { /* determine the current speed setting */
break;
}
}
/* set attributes associated with -h, -t, -e, and -o options */
if (line_8bit) {
} else {
}
if (Evenflag) { /* even parity -e */
exit(1);
}
} else if (Oddflag) { /* odd parity -o */
exit(1);
}
}
if (!Duplex) /* half duplex -h */
if (Terminal) /* -t */
} else { /* non-cu */
}
if (istermios < 0) {
for (i = 0; i < NCC; i++)
} else {
}
}
static void
{
return;
}
}
static void
{
}
static int
savline(void)
{
Saved_line = FALSE;
} else {
Saved_line = TRUE;
}
} else {
Saved_line = TRUE;
}
return (0);
}
static int
restline(void)
{
if (Saved_line == TRUE) {
if (Saved_termios < 0)
else
}
return (0);
}