ttold.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* 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.
*
* 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 1987 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"
#ifndef _sys_ttold_h
#define _sys_ttold_h
struct tchars {
char t_intrc; /* interrupt */
char t_quitc; /* quit */
char t_startc; /* start output */
char t_stopc; /* stop output */
char t_eofc; /* end-of-file */
char t_brkc; /* input delimiter (like nl) */
};
struct ltchars {
char t_suspc; /* stop process signal */
char t_dsuspc; /* delayed stop process signal */
char t_rprntc; /* reprint line */
char t_flushc; /* flush output (toggles) */
char t_werasc; /* word erase */
char t_lnextc; /* literal next character */
};
/*
* Structure for TIOCGETP and TIOCSETP ioctls.
*/
#ifndef _SGTTYB_
#define _SGTTYB_
struct sgttyb {
char sg_ispeed; /* input speed */
char sg_ospeed; /* output speed */
char sg_erase; /* erase character */
char sg_kill; /* kill character */
short sg_flags; /* mode flags */
};
#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 O_NL0 0x00000000
#define O_NL3 0x00000300
#define O_TAB0 0x00000000
#define O_TAB2 0x00000800
#define O_CR0 0x00000000
#define O_FF0 0x00000000
#define O_BS0 0x00000000
#define O_BS1 0x00008000
#define O_L001000 0x02000000
#define O_PASS8 0x08000000
/* locals, from 127 down */
/*
* 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 OTTYDISC 0 /* old, v7 std tty driver */
#endif /*!_sys_ttold_h*/