Deleted Added
full compact
_termios.h (180561) _termios.h (181905)
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

--- 13 unchanged lines hidden (view full) ---

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)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

--- 13 unchanged lines hidden (view full) ---

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)termios.h 8.3 (Berkeley) 3/28/94
30 * $FreeBSD: head/sys/sys/termios.h 180561 2008-07-16 12:36:39Z ed $
30 * $FreeBSD: head/sys/sys/termios.h 181905 2008-08-20 08:31:58Z ed $
31 */
32
33#ifndef _SYS_TERMIOS_H_
34#define _SYS_TERMIOS_H_
35
36#include <sys/_types.h>
37#ifndef _PID_T_DECLARED
38typedef __pid_t pid_t;

--- 39 unchanged lines hidden (view full) ---

78#ifndef _POSIX_SOURCE
79#define VSTATUS 18 /* ICANON together with IEXTEN */
80/* 19 spare 2 */
81#endif
82#define NCCS 20
83
84#define _POSIX_VDISABLE 0xff
85
31 */
32
33#ifndef _SYS_TERMIOS_H_
34#define _SYS_TERMIOS_H_
35
36#include <sys/_types.h>
37#ifndef _PID_T_DECLARED
38typedef __pid_t pid_t;

--- 39 unchanged lines hidden (view full) ---

78#ifndef _POSIX_SOURCE
79#define VSTATUS 18 /* ICANON together with IEXTEN */
80/* 19 spare 2 */
81#endif
82#define NCCS 20
83
84#define _POSIX_VDISABLE 0xff
85
86#ifndef _POSIX_SOURCE
87#define CCEQ(val, c) ((c) == (val) ? (val) != _POSIX_VDISABLE : 0)
88#endif
89
90/*
91 * Input flags - software input processing
92 */
93#define IGNBRK 0x00000001 /* ignore BREAK condition */
94#define BRKINT 0x00000002 /* map BREAK to SIGINTR */
95#define IGNPAR 0x00000004 /* ignore (discard) parity errors */
96#define PARMRK 0x00000008 /* mark parity and framing errors */
97#define INPCK 0x00000010 /* enable checking of parity errors */

--- 9 unchanged lines hidden (view full) ---

107#endif /*_POSIX_SOURCE */
108
109/*
110 * Output flags - software output processing
111 */
112#define OPOST 0x00000001 /* enable following output processing */
113#ifndef _POSIX_SOURCE
114#define ONLCR 0x00000002 /* map NL to CR-NL (ala CRMOD) */
86/*
87 * Input flags - software input processing
88 */
89#define IGNBRK 0x00000001 /* ignore BREAK condition */
90#define BRKINT 0x00000002 /* map BREAK to SIGINTR */
91#define IGNPAR 0x00000004 /* ignore (discard) parity errors */
92#define PARMRK 0x00000008 /* mark parity and framing errors */
93#define INPCK 0x00000010 /* enable checking of parity errors */

--- 9 unchanged lines hidden (view full) ---

103#endif /*_POSIX_SOURCE */
104
105/*
106 * Output flags - software output processing
107 */
108#define OPOST 0x00000001 /* enable following output processing */
109#ifndef _POSIX_SOURCE
110#define ONLCR 0x00000002 /* map NL to CR-NL (ala CRMOD) */
115#define OXTABS 0x00000004 /* expand tabs to spaces */
111#define TABDLY 0x00000004 /* tab delay mask */
112#define TAB0 0x00000000 /* no tab delay and expansion */
113#define TAB3 0x00000004 /* expand tabs to spaces */
114#ifndef _KERNEL
115#define OXTABS TAB3
116#endif /* !_KERNEL */
116#define ONOEOT 0x00000008 /* discard EOT's (^D) on output) */
117#define OCRNL 0x00000010 /* map CR to NL on output */
118#define ONOCR 0x00000020 /* no CR output at column 0 */
119#define ONLRET 0x00000040 /* NL performs CR function */
120#endif /*_POSIX_SOURCE */
121
122/*
123 * Control flags - hardware control of terminal

--- 14 unchanged lines hidden (view full) ---

138#define CLOCAL 0x00008000 /* ignore modem status lines */
139#ifndef _POSIX_SOURCE
140#define CCTS_OFLOW 0x00010000 /* CTS flow control of output */
141#define CRTSCTS (CCTS_OFLOW | CRTS_IFLOW)
142#define CRTS_IFLOW 0x00020000 /* RTS flow control of input */
143#define CDTR_IFLOW 0x00040000 /* DTR flow control of input */
144#define CDSR_OFLOW 0x00080000 /* DSR flow control of output */
145#define CCAR_OFLOW 0x00100000 /* DCD flow control of output */
117#define ONOEOT 0x00000008 /* discard EOT's (^D) on output) */
118#define OCRNL 0x00000010 /* map CR to NL on output */
119#define ONOCR 0x00000020 /* no CR output at column 0 */
120#define ONLRET 0x00000040 /* NL performs CR function */
121#endif /*_POSIX_SOURCE */
122
123/*
124 * Control flags - hardware control of terminal

--- 14 unchanged lines hidden (view full) ---

139#define CLOCAL 0x00008000 /* ignore modem status lines */
140#ifndef _POSIX_SOURCE
141#define CCTS_OFLOW 0x00010000 /* CTS flow control of output */
142#define CRTSCTS (CCTS_OFLOW | CRTS_IFLOW)
143#define CRTS_IFLOW 0x00020000 /* RTS flow control of input */
144#define CDTR_IFLOW 0x00040000 /* DTR flow control of input */
145#define CDSR_OFLOW 0x00080000 /* DSR flow control of output */
146#define CCAR_OFLOW 0x00100000 /* DCD flow control of output */
146#define MDMBUF 0x00100000 /* old name for CCAR_OFLOW */
147#ifndef _KERNEL
148#define MDMBUF CCAR_OFLOW
149#endif /* !_KERNEL */
147#endif
148
149
150/*
151 * "Local" flags - dumping ground for other state
152 *
153 * Warning: some flags in this structure begin with
154 * the letter "I" and look like they belong in the

--- 70 unchanged lines hidden (view full) ---

225#define B460800 460800
226#define B921600 921600
227#define EXTA 19200
228#define EXTB 38400
229#endif /* !_POSIX_SOURCE */
230
231#ifndef _KERNEL
232
150#endif
151
152
153/*
154 * "Local" flags - dumping ground for other state
155 *
156 * Warning: some flags in this structure begin with
157 * the letter "I" and look like they belong in the

--- 70 unchanged lines hidden (view full) ---

228#define B460800 460800
229#define B921600 921600
230#define EXTA 19200
231#define EXTB 38400
232#endif /* !_POSIX_SOURCE */
233
234#ifndef _KERNEL
235
236#ifndef _POSIX_SOURCE
237#define CCEQ(val, c) ((c) != _POSIX_VDISABLE && (c) == (val))
238#endif
239
233/*
234 * Commands passed to tcsetattr() for setting the termios structure.
235 */
236#define TCSANOW 0 /* make change immediate */
237#define TCSADRAIN 1 /* drain output, then change */
238#define TCSAFLUSH 2 /* drain output, flush input */
239#ifndef _POSIX_SOURCE
240#define TCSASOFT 0x10 /* flag - don't alter h.w. state */

--- 54 unchanged lines hidden ---
240/*
241 * Commands passed to tcsetattr() for setting the termios structure.
242 */
243#define TCSANOW 0 /* make change immediate */
244#define TCSADRAIN 1 /* drain output, then change */
245#define TCSAFLUSH 2 /* drain output, flush input */
246#ifndef _POSIX_SOURCE
247#define TCSASOFT 0x10 /* flag - don't alter h.w. state */

--- 54 unchanged lines hidden ---