diff options
author | Szabolcs Nagy <nsz@port70.net> | 2016-07-03 17:08:24 +0200 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2016-07-03 15:02:24 -0400 |
commit | 3bda42ac4bddc600bdae0f57c5b65c4482fbfefc (patch) | |
tree | 2a173b3653d6d180f1f9a39e19c08f834d3eb492 | |
parent | 2e128574c9c46b240a15c07058b772fb7e47a75e (diff) | |
download | musl-3bda42ac4bddc600bdae0f57c5b65c4482fbfefc.tar.gz musl-3bda42ac4bddc600bdae0f57c5b65c4482fbfefc.tar.xz musl-3bda42ac4bddc600bdae0f57c5b65c4482fbfefc.zip |
fix powerpc termios.h macro exposure/namespace issues
same changes as in the generic header. and BOTHER and IBSHIFT were removed (present in linux uapi but not in glibc) and TIOCSER_TEMT was added (present in glibc).
-rw-r--r-- | arch/powerpc/bits/termios.h | 24 | ||||
-rw-r--r-- | arch/powerpc64/bits/termios.h | 24 |
2 files changed, 24 insertions, 24 deletions
diff --git a/arch/powerpc/bits/termios.h b/arch/powerpc/bits/termios.h index 7feaf493..d2fc297a 100644 --- a/arch/powerpc/bits/termios.h +++ b/arch/powerpc/bits/termios.h @@ -96,8 +96,6 @@ struct termios #define B9600 0000015 #define B19200 0000016 #define B38400 0000017 -#define EXTA 0000016 -#define EXTB 0000017 #define B57600 00020 #define B115200 00021 @@ -114,9 +112,6 @@ struct termios #define B3000000 00034 #define B3500000 00035 #define B4000000 00036 -#define BOTHER 00037 - -#define CBAUD 00377 #define CSIZE 00001400 #define CS5 00000000 @@ -130,20 +125,14 @@ struct termios #define HUPCL 00040000 #define CLOCAL 00100000 -#define ECHOKE 0x00000001 #define ECHOE 0x00000002 #define ECHOK 0x00000004 #define ECHO 0x00000008 #define ECHONL 0x00000010 -#define ECHOPRT 0x00000020 -#define ECHOCTL 0x00000040 #define ISIG 0x00000080 #define ICANON 0x00000100 #define IEXTEN 0x00000400 -#define XCASE 0x00004000 #define TOSTOP 0x00400000 -#define FLUSHO 0x00800000 -#define PENDIN 0x20000000 #define NOFLSH 0x80000000 #define TCOOFF 0 @@ -160,11 +149,22 @@ struct termios #define TCSAFLUSH 2 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +#define EXTA 0000016 +#define EXTB 0000017 +#define CBAUD 00377 #define CBAUDEX 0000000 #define CIBAUD 077600000 -#define IBSHIFT 16 #define CMSPAR 010000000000 #define CRTSCTS 020000000000 + +#define XCASE 0x00004000 +#define ECHOCTL 0x00000040 +#define ECHOPRT 0x00000020 +#define ECHOKE 0x00000001 +#define FLUSHO 0x00800000 +#define PENDIN 0x20000000 #define EXTPROC 0x10000000 + #define XTABS 00006000 +#define TIOCSER_TEMT 1 #endif diff --git a/arch/powerpc64/bits/termios.h b/arch/powerpc64/bits/termios.h index 7feaf493..d2fc297a 100644 --- a/arch/powerpc64/bits/termios.h +++ b/arch/powerpc64/bits/termios.h @@ -96,8 +96,6 @@ struct termios #define B9600 0000015 #define B19200 0000016 #define B38400 0000017 -#define EXTA 0000016 -#define EXTB 0000017 #define B57600 00020 #define B115200 00021 @@ -114,9 +112,6 @@ struct termios #define B3000000 00034 #define B3500000 00035 #define B4000000 00036 -#define BOTHER 00037 - -#define CBAUD 00377 #define CSIZE 00001400 #define CS5 00000000 @@ -130,20 +125,14 @@ struct termios #define HUPCL 00040000 #define CLOCAL 00100000 -#define ECHOKE 0x00000001 #define ECHOE 0x00000002 #define ECHOK 0x00000004 #define ECHO 0x00000008 #define ECHONL 0x00000010 -#define ECHOPRT 0x00000020 -#define ECHOCTL 0x00000040 #define ISIG 0x00000080 #define ICANON 0x00000100 #define IEXTEN 0x00000400 -#define XCASE 0x00004000 #define TOSTOP 0x00400000 -#define FLUSHO 0x00800000 -#define PENDIN 0x20000000 #define NOFLSH 0x80000000 #define TCOOFF 0 @@ -160,11 +149,22 @@ struct termios #define TCSAFLUSH 2 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +#define EXTA 0000016 +#define EXTB 0000017 +#define CBAUD 00377 #define CBAUDEX 0000000 #define CIBAUD 077600000 -#define IBSHIFT 16 #define CMSPAR 010000000000 #define CRTSCTS 020000000000 + +#define XCASE 0x00004000 +#define ECHOCTL 0x00000040 +#define ECHOPRT 0x00000020 +#define ECHOKE 0x00000001 +#define FLUSHO 0x00800000 +#define PENDIN 0x20000000 #define EXTPROC 0x10000000 + #define XTABS 00006000 +#define TIOCSER_TEMT 1 #endif |