/*
* 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
*
*/
#include <stdio.h>
#include <termio.h>
#include "stty.h"
"0", B0, 0,
0,
};
"parenb", PARENB, 0,
"-parenb", 0, PARENB,
"parodd", PARODD, 0,
"-parodd", 0, PARODD,
"cstopb", CSTOPB, 0,
"-cstopb", 0, CSTOPB,
"hupcl", HUPCL, 0,
"hup", HUPCL, 0,
"-hupcl", 0, HUPCL,
"-hup", 0, HUPCL,
"clocal", CLOCAL, 0,
"-clocal", 0, CLOCAL,
"loblk", LOBLK, 0,
"-loblk", 0, LOBLK,
"cread", CREAD, 0,
"-cread", 0, CREAD,
"crtscts", (long)CRTSCTS, 0,
"-crtscts", 0, (long)CRTSCTS,
"crtsxoff", CRTSXOFF, 0,
"-crtsxoff", 0, CRTSXOFF,
0
};
"parext", PAREXT, 0,
"-parext", 0, PAREXT,
0
};
"ignbrk", IGNBRK, 0,
"-ignbrk", 0, IGNBRK,
"brkint", BRKINT, 0,
"-brkint", 0, BRKINT,
"ignpar", IGNPAR, 0,
"-ignpar", 0, IGNPAR,
"parmrk", PARMRK, 0,
"-parmrk", 0, PARMRK,
"inpck", INPCK, 0,
"-inpck", 0, INPCK,
"istrip", ISTRIP, 0,
"-istrip", 0, ISTRIP,
"inlcr", INLCR, 0,
"-inlcr", 0, INLCR,
"igncr", IGNCR, 0,
"-igncr", 0, IGNCR,
"icrnl", ICRNL, 0,
"-icrnl", 0, ICRNL,
#ifdef XPG4
"nl", ICRNL, 0,
#else
"nl", 0, ICRNL,
#endif
"iuclc", IUCLC, 0,
"-iuclc", 0, IUCLC,
"lcase", IUCLC, 0,
"-lcase", 0, IUCLC,
"LCASE", IUCLC, 0,
"-LCASE", 0, IUCLC,
"ixon", IXON, 0,
"-ixon", 0, IXON,
"ixany", IXANY, 0,
"-ixany", 0, IXANY,
"ixoff", IXOFF, 0,
"-ixoff", 0, IXOFF,
"raw", 0, -1,
0
};
"imaxbel", IMAXBEL, 0,
"-imaxbel", 0, IMAXBEL,
0
};
"isig", ISIG, 0,
"-isig", 0, ISIG,
"icanon", ICANON, 0,
"-icanon", 0, ICANON,
"xcase", XCASE, 0,
"-xcase", 0, XCASE,
"lcase", XCASE, 0,
"-lcase", 0, XCASE,
"LCASE", XCASE, 0,
"-LCASE", 0, XCASE,
"echo", ECHO, 0,
"-echo", 0, ECHO,
"echoe", ECHOE, 0,
"-echoe", 0, ECHOE,
"echok", ECHOK, 0,
"-echok", 0, ECHOK,
"lfkc", ECHOK, 0,
"-lfkc", 0, ECHOK,
"echonl", ECHONL, 0,
"-echonl", 0, ECHONL,
"noflsh", NOFLSH, 0,
"-noflsh", 0, NOFLSH,
"stflush", STFLUSH, 0,
"-stflush", 0, STFLUSH,
"stwrap", STWRAP, 0,
"-stwrap", 0, STWRAP,
"stappl", STAPPL, 0,
"-stappl", 0, STAPPL,
0,
};
"tostop", TOSTOP, 0,
"-tostop", 0, TOSTOP,
"echoctl", ECHOCTL, 0,
"-echoctl", 0, ECHOCTL,
"echoprt", ECHOPRT, 0,
"-echoprt", 0, ECHOPRT,
"echoke", ECHOKE, 0,
"-echoke", 0, ECHOKE,
"defecho", DEFECHO, 0,
"-defecho", 0, DEFECHO,
"flusho", FLUSHO, 0,
"-flusho", 0, FLUSHO,
"pendin", PENDIN, 0,
"-pendin", 0, PENDIN,
"iexten", IEXTEN, 0,
"-iexten", 0, IEXTEN,
0
};
"opost", OPOST, 0,
"-opost", 0, OPOST,
"olcuc", OLCUC, 0,
"-olcuc", 0, OLCUC,
"lcase", OLCUC, 0,
"-lcase", 0, OLCUC,
"LCASE", OLCUC, 0,
"-LCASE", 0, OLCUC,
"onlcr", ONLCR, 0,
"-onlcr", 0, ONLCR,
"nl", 0, ONLCR,
"ocrnl", OCRNL, 0,
"-ocrnl", 0, OCRNL,
"onocr", ONOCR, 0,
"-onocr", 0, ONOCR,
"onlret", ONLRET, 0,
"-onlret", 0, ONLRET,
"ofill", OFILL, 0,
"-ofill", 0, OFILL,
"ofdel", OFDEL, 0,
"-ofdel", 0, OFDEL,
"raw", 0, OPOST,
"-raw", OPOST, 0,
"cooked", OPOST, 0,
0,
};
"-rtsxoff", 0, RTSXOFF,
"rtsxoff", RTSXOFF, 0,
"-ctsxon", 0, CTSXON,
"ctsxon", CTSXON, 0,
"-dtrxoff", 0, DTRXOFF,
"dtrxoff", DTRXOFF, 0,
"-cdxon", 0, CDXON,
"cdxon", CDXON, 0,
"-isxoff", 0, ISXOFF,
"isxoff", ISXOFF, 0,
0,
};
0,
};
const char *not_supported[] = {
"rtsxoff",
"ctsxon",
"dtrxoff",
"cdxon",
"isxoff",
"xcibrg",
"xctset",
"scrset",
"rcibrg",
"rctset",
"rcrset",
"tsetcoff",
"tsetcrbrg",
"rsetcbrg",
"rsetctbrg",
"rsetctset",
"rsetcrset",
0,
};