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 (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* University Copyright- Copyright (c) 1982, 1986, 1988
* The Regents of the University of California
* All Rights Reserved
*
* University Acknowledgment- Portions of this document are derived from
* software developed by the University of California, Berkeley, and its
* contributors.
*/
#ifndef _SYS_TTOLD_H
#define _SYS_TTOLD_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/* All the ioctls (BSD, V7, XENIX, S5) defines are in termios.h */
/* this file has mostly BSD structures and flags */
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) */
};
/* note xenix defines tchars as tc */
struct tc {
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) */
};
#ifndef _SGTTY_H
/*
* Structure for TIOCGETP and TIOCSETP ioctls.
*/
/* match sgtty.h definition */
struct sgttyb {
char sg_ispeed; /* input speed */
char sg_ospeed; /* output speed */
char sg_erase; /* erase character */
char sg_kill; /* kill character */
int sg_flags; /* mode flags */
};
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 */
};
#endif /* _SGTTY_H */
/*
* 1) deprecated
* 2) not implemented (and never were implemented)
* 3) implemented on top of new-style "ioctl"s.
*/
/*
* These ioctls are also defined in termios.h.
* because XENIX expects to see them in termio.h
*/
#ifndef tIOC
#endif
#ifndef _SYS_TERMIOS_H
/* defined in termios.h also so that all the ioctl codes are visible */
#ifndef _SGTTY_H
#endif /* _SGTTY_H */
#ifndef _SGTTY_H
#endif /* _SGTTY_H */
/* BSD ioctls that are not the same as XENIX */
/* windowing ioctls and structure also defined in termios.h */
#ifndef _TIOC
#endif
/* Windowing structure to support TIOCSWINSZ/TIOCGWINSZ */
struct winsize {
unsigned short ws_row; /* rows, in characters */
unsigned short ws_col; /* columns, in character */
unsigned short ws_xpixel; /* horizontal size, pixels */
unsigned short ws_ypixel; /* vertical size, pixels */
};
#endif /* end _SYS_TERMIOS_H */
/* Old SVR3.0 flags - should be removed if there is no problem */
/* note they are commented out */
#if 0
#define O_HUPCL 01
#define O_XTABS 02
#define O_NL1 000400
#define O_NL2 001000
#define O_NOAL 004000
#define O_CR1 010000
#define O_CR2 020000
#endif
/*
* 4.3 BSD additions. These are new codes and some of the
* flags that were there in SVR3.2 ttold.h have been given
* new codes. Otherwise they will not fit in a word.
*/
#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_ALLDELAY \
/* carrier intr */
/* output */
#define O_L001000 0x02000000
#define O_PASS8 0x08000000
/* more BSD flags */
/* with 7 bits + parity) */
/* characters */
#define OTTYDISC 0 /* old, v7 std tty driver */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_TTOLD_H */