mirror of git://sourceware.org/git/glibc.git
* sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they are already defined to avoid collision with termios.h.
This commit is contained in:
parent
2256e43d7c
commit
8bb52dbf9b
|
|
@ -4,9 +4,9 @@
|
||||||
Move *DLY definitions where they belong, in termios.h.
|
Move *DLY definitions where they belong, in termios.h.
|
||||||
Add *[0-3] definitions.
|
Add *[0-3] definitions.
|
||||||
Fixes confusion between VT and FF.
|
Fixes confusion between VT and FF.
|
||||||
* bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0, CR1, CR2, CR3, FF0,
|
* sysdeps/mach/hurd/bits/ioctls.h (NL0, NL1, TAB0, TAB1, TAB2, CR0,
|
||||||
FF1, BS0, BS1): Undefine these at start if they are already defined to
|
CR1, CR2, CR3, FF0, FF1, BS0, BS1): Undefine these at start if they
|
||||||
avoid collision with termios.h.
|
are already defined to avoid collision with termios.h.
|
||||||
(NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
|
(NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
|
||||||
* bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
|
* bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
|
||||||
TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
|
TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,46 @@
|
||||||
|
|
||||||
/* These macros are also defined in <bits/termios.h> (with numerically
|
/* These macros are also defined in <bits/termios.h> (with numerically
|
||||||
identical values) but this serves to shut up cpp's complaining. */
|
identical values) but this serves to shut up cpp's complaining. */
|
||||||
|
|
||||||
|
#ifdef NL0
|
||||||
|
# undef NL0
|
||||||
|
#endif
|
||||||
|
#ifdef NL1
|
||||||
|
# undef NL1
|
||||||
|
#endif
|
||||||
|
#ifdef TAB0
|
||||||
|
# undef TAB0
|
||||||
|
#endif
|
||||||
|
#ifdef TAB1
|
||||||
|
# undef TAB1
|
||||||
|
#endif
|
||||||
|
#ifdef TAB2
|
||||||
|
# undef TAB2
|
||||||
|
#endif
|
||||||
|
#ifdef CR0
|
||||||
|
# undef CR0
|
||||||
|
#endif
|
||||||
|
#ifdef CR1
|
||||||
|
# undef CR1
|
||||||
|
#endif
|
||||||
|
#ifdef CR2
|
||||||
|
# undef CR2
|
||||||
|
#endif
|
||||||
|
#ifdef CR3
|
||||||
|
# undef CR3
|
||||||
|
#endif
|
||||||
|
#ifdef FF0
|
||||||
|
# undef FF0
|
||||||
|
#endif
|
||||||
|
#ifdef FF1
|
||||||
|
# undef FF1
|
||||||
|
#endif
|
||||||
|
#ifdef BS0
|
||||||
|
# undef BS0
|
||||||
|
#endif
|
||||||
|
#ifdef BS1
|
||||||
|
# undef BS1
|
||||||
|
#endif
|
||||||
#ifdef MDMBUF
|
#ifdef MDMBUF
|
||||||
# undef MDMBUF
|
# undef MDMBUF
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -284,31 +324,25 @@ enum __ioctl_datum { IOC_8, IOC_16, IOC_32, IOC_64 };
|
||||||
#define ODDP 0x00000040 /* get/send odd parity */
|
#define ODDP 0x00000040 /* get/send odd parity */
|
||||||
#define EVENP 0x00000080 /* get/send even parity */
|
#define EVENP 0x00000080 /* get/send even parity */
|
||||||
#define ANYP 0x000000c0 /* get any parity/send none */
|
#define ANYP 0x000000c0 /* get any parity/send none */
|
||||||
#define NLDLY 0x00000300 /* \n delay */
|
#define NLDELAY 0x00000300 /* \n delay */
|
||||||
#define NLDELAY NLDLY /* traditional BSD name */
|
|
||||||
#define NL0 0x00000000
|
#define NL0 0x00000000
|
||||||
#define NL1 0x00000100 /* tty 37 */
|
#define NL1 0x00000100 /* tty 37 */
|
||||||
#define NL2 0x00000200 /* vt05 */
|
#define NL2 0x00000200 /* vt05 */
|
||||||
#define NL3 0x00000300
|
#define NL3 0x00000300
|
||||||
#define TABDLY 0x00000c00 /* horizontal tab delay */
|
#define TBDELAY 0x00000c00 /* horizontal tab delay */
|
||||||
#define TBDELAY TABDLY /* traditional BSD name */
|
|
||||||
#define TAB0 0x00000000
|
#define TAB0 0x00000000
|
||||||
#define TAB1 0x00000400 /* tty 37 */
|
#define TAB1 0x00000400 /* tty 37 */
|
||||||
#define TAB2 0x00000800
|
#define TAB2 0x00000800
|
||||||
#define TAB3 0x00000c00
|
|
||||||
#define XTABS 0x00000c00 /* expand tabs on output */
|
#define XTABS 0x00000c00 /* expand tabs on output */
|
||||||
#define CRDLY 0x00003000 /* \r delay */
|
#define CRDELAY 0x00003000 /* \r delay */
|
||||||
#define CRDELAY CRDLY /* traditional BSD name */
|
|
||||||
#define CR0 0x00000000
|
#define CR0 0x00000000
|
||||||
#define CR1 0x00001000 /* tn 300 */
|
#define CR1 0x00001000 /* tn 300 */
|
||||||
#define CR2 0x00002000 /* tty 37 */
|
#define CR2 0x00002000 /* tty 37 */
|
||||||
#define CR3 0x00003000 /* concept 100 */
|
#define CR3 0x00003000 /* concept 100 */
|
||||||
#define VTDLY 0x00004000 /* vertical tab delay */
|
#define VTDELAY 0x00004000 /* vertical tab delay */
|
||||||
#define VTDELAY VTDLY /* traditional BSD name */
|
|
||||||
#define FF0 0x00000000
|
#define FF0 0x00000000
|
||||||
#define FF1 0x00004000 /* tty 37 */
|
#define FF1 0x00004000 /* tty 37 */
|
||||||
#define BSDLY 0x00008000 /* \b delay */
|
#define BSDELAY 0x00008000 /* \b delay */
|
||||||
#define BSDELAY BSDLY /* traditional BSD name */
|
|
||||||
#define BS0 0x00000000
|
#define BS0 0x00000000
|
||||||
#define BS1 0x00008000
|
#define BS1 0x00008000
|
||||||
#define ALLDELAY (NLDELAY|TBDELAY|CRDELAY|VTDELAY|BSDELAY)
|
#define ALLDELAY (NLDELAY|TBDELAY|CRDELAY|VTDELAY|BSDELAY)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue