/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the 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
* 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 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984 AT&T */
/* All Rights Reserved */
#pragma ident "%Z%%M% %I% %E% SMI"
char t_eofc;
/* end-of-file */ char t_brkc;
/* input delimiter (like nl) */ };
char t_suspc;
/* stop process signal */ char t_dsuspc;
/* delayed stop process signal */ char t_flushc;
/* flush output (toggles) */ char t_lnextc;
/* literal next character */ };
/*
* Structure for TIOCGETP and TIOCSETP ioctls.
*/
};
#endif
/*
* 4.3BSD tty ioctl commands that are either:
* 1) deprecated
* 2) not implemented (and never were implemented)
* 3) implemented on top of new-style "ioctl"s.
*/
#
define TIOCGETD _IOR(
't', 0,
int)
/* get line discipline */#
define TIOCSETD _IOW(
't',
1,
int)
/* set line discipline */#
define TIOCHPCL _IO(
't',
2)
/* hang up on last close */#
define TIOCMODG _IOR(
't',
3,
int)
/* get modem state - OBSOLETE */#
define TIOCMODS _IOW(
't',
4,
int)
/* set modem state - OBSOLETE */#
define TIOCEXCL _IO(
't',
13)
/* set exclusive use of tty */#
define TIOCNXCL _IO(
't',
14)
/* reset exclusive use of tty */#
define O_TANDEM 0x00000001 /* send stopc on out q full */#
define O_CBREAK 0x00000002 /* half-cooked mode */#
define O_LCASE 0x00000004 /* simulate lower case */#
define O_ECHO 0x00000008 /* echo input */#
define O_CRMOD 0x00000010 /* map \r to \r\n on output */#
define O_RAW 0x00000020 /* no i/o processing */#
define O_NL1 0x00000100 /* tty 37 */#
define O_NL2 0x00000200 /* vt05 */#
define O_TBDELAY 0x00000c00 /* horizontal tab delay */#
define O_TAB1 0x00000400 /* tty 37 */#
define O_XTABS 0x00000c00 /* expand tabs on output */#
define O_CR1 0x00001000 /* tn 300 */#
define O_CR2 0x00002000 /* tty 37 */#
define O_CR3 0x00003000 /* concept 100 */#
define O_VTDELAY 0x00004000 /* vertical tab delay */#
define O_FF1 0x00004000 /* tty 37 */#
define O_CRTBS 0x00010000 /* do backspacing for crt */#
define O_PRTERA 0x00020000 /* \ ... / erase */#
define O_CRTERA 0x00040000 /* " \b " to wipe out char */#
define O_TILDE 0x00080000 /* hazeltine tilde kludge */#
define O_LITOUT 0x00200000 /* literal output */#
define O_TOSTOP 0x00400000 /* SIGSTOP on background output */#
define O_FLUSHO 0x00800000 /* flush output to terminal */#
define O_NOHANG 0x01000000 /* no SIGHUP on carrier drop */#
define O_CRTKIL 0x04000000 /* kill line with " \b " */#
define O_CTLECH 0x10000000 /* echo control chars as ^X */#
define O_PENDIN 0x20000000 /* tp->t_rawq needs reread */#
define O_DECCTQ 0x40000000 /* only ^Q starts after ^S */#
define O_NOFLSH 0x80000000 /* no output flush on signal *//* locals, from 127 down */
#
define TIOCLBIS _IOW(
't',
127,
int)
/* bis local mode bits */#
define TIOCLBIC _IOW(
't',
126,
int)
/* bic local mode bits */#
define TIOCLSET _IOW(
't',
125,
int)
/* set entire local mode word */#
define TIOCSDTR _IO(
't',
121)
/* set data terminal ready */#
define TIOCCDTR _IO(
't',
120)
/* clear data terminal ready */#
define TIOCSTOP _IO(
't',
111)
/* stop output, like ^S */
/*
* Sun-specific ioctls, which have been moved to the Sun-specific range.
* The old codes will be kept around for binary compatibility; the
* codes for TIOCCONS and TIOCGSIZE don't collide with the 4.3BSD codes
* because the structure size and copy direction fields are different.
* Unfortunately, the old TIOCSSIZE code does collide with TIOCSWINSZ,
* but they can be disambiguated by checking whether a "struct ttysize"
* structure's "ts_lines" field is greater than 64K or not. If so,
* it's almost certainly a "struct winsize" instead.
*/
/*
* Sun-specific ioctls.
*/
#
define TIOCSETX _IOW(
't',
34,
int)
/* set extra modes for S5 compatibility */#
define TIOCGETX _IOR(
't',
35,
int)
/* get extra modes for S5 compatibility */#
define NOPOST 0x00000001 /* no processing on output (LITOUT with 7 bits + parity) */#
define NOISIG 0x00000002 /* disable all signal-generating characters */#
define STOPB 0x00000004 /* two stop bits */
#
define OTTYDISC 0
/* old, v7 std tty driver */#
define NETLDISC 1 /* line discip for berk net */#
define NTTYDISC 2 /* new tty discipline */#
define TABLDISC 3 /* hitachi tablet discipline */#
define NTABLDISC 4 /* gtco tablet discipline */
#endif /* !_sys_ttold_h */