2007-09-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
commitbbd98615cc88ef14d805caf452a61c5b87391128
authorRoland McGrath <roland@gnu.org>
Tue, 6 May 2008 00:06:58 +0000 (6 00:06 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 6 May 2008 00:06:58 +0000 (6 00:06 +0000)
tree33d04efddd6ab9d5e8a251d1ae684615d3fe578b
parent10704ae1326e9ddf9c20b54733a49b004042890d
2007-09-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>

Fix termios bit macros.
Move *DLY definitions where they belong, in termios.h.
Add *[0-3] definitions.
Fixes confusion between VT and FF.
* 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.
(NLDLY, TABDLY, TAB3, CRDLY, VTDLY, BSDLY): Remove macros.
* bits/termios.h [__USE_MISC || __USE_XOPEN] (NL0, NL1, TAB0,
TAB1, TAB2, CR0, CR1, CR2, CR3, FF0, FF1, BS0, BS1): Likewise.
[__USE_BSD || __USE_XOPEN] (OCRNL, ONOCR, ONLRET): New macros.
[__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, TABDLY, TAB0, TAB1, TAB2,
TAB3, CRDLY, CR0, CR1, CR2, CR3, FFDLY, FF0, FF1, BSDLY, BS0, BS1,
VTDLY, VT0, VT1): New macros.
[__USE_GNU] (OLCUC): Change value of macro.
[__USE_XOPEN] (OFILL): New macro.
[__USE_BSD] (CRTSCTS): Change value.
(CRTS_IFLOW, CCTS_OFLOW): Change into compatibility macros.
[__USE_BSD] (CDTRCTS, CHWFLOW): New macros.
(B7200, B14400, B28800, B76800): New macros.
sysdeps/mach/hurd/bits/ioctls.h