_termios.h (8449) | _termios.h (8876) |
---|---|
1/* 2 * Copyright (c) 1988, 1989, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)termios.h 8.3 (Berkeley) 3/28/94 | 1/* 2 * Copyright (c) 1988, 1989, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)termios.h 8.3 (Berkeley) 3/28/94 |
34 * $Id: termios.h,v 1.4 1995/04/30 14:56:30 bde Exp $ | 34 * $Id: termios.h,v 1.5 1995/05/11 07:52:47 bde Exp $ |
35 */ 36 37#ifndef _SYS_TERMIOS_H_ 38#define _SYS_TERMIOS_H_ 39 | 35 */ 36 37#ifndef _SYS_TERMIOS_H_ 38#define _SYS_TERMIOS_H_ 39 |
40/* 41 * Special Control Characters | 40/* 41 * Special Control Characters |
42 * 43 * Index into c_cc[] character array. 44 * | 42 * 43 * Index into c_cc[] character array. 44 * |
45 * Name Subscript Enabled by | 45 * Name Subscript Enabled by |
46 */ 47#define VEOF 0 /* ICANON */ 48#define VEOL 1 /* ICANON */ 49#ifndef _POSIX_SOURCE 50#define VEOL2 2 /* ICANON */ 51#endif 52#define VERASE 3 /* ICANON */ 53#ifndef _POSIX_SOURCE 54#define VWERASE 4 /* ICANON */ | 46 */ 47#define VEOF 0 /* ICANON */ 48#define VEOL 1 /* ICANON */ 49#ifndef _POSIX_SOURCE 50#define VEOL2 2 /* ICANON */ 51#endif 52#define VERASE 3 /* ICANON */ 53#ifndef _POSIX_SOURCE 54#define VWERASE 4 /* ICANON */ |
55#endif | 55#endif |
56#define VKILL 5 /* ICANON */ 57#ifndef _POSIX_SOURCE 58#define VREPRINT 6 /* ICANON */ 59#endif 60/* 7 spare 1 */ 61#define VINTR 8 /* ISIG */ 62#define VQUIT 9 /* ISIG */ 63#define VSUSP 10 /* ISIG */ --- 72 unchanged lines hidden (view full) --- 136#define CRTS_IFLOW 0x00020000 /* RTS flow control of input */ 137#define CDTR_IFLOW 0x00040000 /* DTR flow control of input */ 138#define CDSR_OFLOW 0x00080000 /* DSR flow control of output */ 139#define CCAR_OFLOW 0x00100000 /* DCD flow control of output */ 140#define MDMBUF 0x00100000 /* old name for CCAR_OFLOW */ 141#endif 142 143 | 56#define VKILL 5 /* ICANON */ 57#ifndef _POSIX_SOURCE 58#define VREPRINT 6 /* ICANON */ 59#endif 60/* 7 spare 1 */ 61#define VINTR 8 /* ISIG */ 62#define VQUIT 9 /* ISIG */ 63#define VSUSP 10 /* ISIG */ --- 72 unchanged lines hidden (view full) --- 136#define CRTS_IFLOW 0x00020000 /* RTS flow control of input */ 137#define CDTR_IFLOW 0x00040000 /* DTR flow control of input */ 138#define CDSR_OFLOW 0x00080000 /* DSR flow control of output */ 139#define CCAR_OFLOW 0x00100000 /* DCD flow control of output */ 140#define MDMBUF 0x00100000 /* old name for CCAR_OFLOW */ 141#endif 142 143 |
144/* | 144/* |
145 * "Local" flags - dumping ground for other state 146 * 147 * Warning: some flags in this structure begin with 148 * the letter "I" and look like they belong in the 149 * input flag. 150 */ 151 152#ifndef _POSIX_SOURCE --- 31 unchanged lines hidden (view full) --- 184 tcflag_t c_oflag; /* output flags */ 185 tcflag_t c_cflag; /* control flags */ 186 tcflag_t c_lflag; /* local flags */ 187 cc_t c_cc[NCCS]; /* control chars */ 188 speed_t c_ispeed; /* input speed */ 189 speed_t c_ospeed; /* output speed */ 190}; 191 | 145 * "Local" flags - dumping ground for other state 146 * 147 * Warning: some flags in this structure begin with 148 * the letter "I" and look like they belong in the 149 * input flag. 150 */ 151 152#ifndef _POSIX_SOURCE --- 31 unchanged lines hidden (view full) --- 184 tcflag_t c_oflag; /* output flags */ 185 tcflag_t c_cflag; /* control flags */ 186 tcflag_t c_lflag; /* local flags */ 187 cc_t c_cc[NCCS]; /* control chars */ 188 speed_t c_ispeed; /* input speed */ 189 speed_t c_ospeed; /* output speed */ 190}; 191 |
192/* | 192/* |
193 * Commands passed to tcsetattr() for setting the termios structure. 194 */ 195#define TCSANOW 0 /* make change immediate */ 196#define TCSADRAIN 1 /* drain output, then change */ 197#define TCSAFLUSH 2 /* drain output, flush input */ 198#ifndef _POSIX_SOURCE 199#define TCSASOFT 0x10 /* flag - don't alter h.w. state */ 200#endif --- 82 unchanged lines hidden --- | 193 * Commands passed to tcsetattr() for setting the termios structure. 194 */ 195#define TCSANOW 0 /* make change immediate */ 196#define TCSADRAIN 1 /* drain output, then change */ 197#define TCSAFLUSH 2 /* drain output, flush input */ 198#ifndef _POSIX_SOURCE 199#define TCSASOFT 0x10 /* flag - don't alter h.w. state */ 200#endif --- 82 unchanged lines hidden --- |