mirror of
git://git.musl-libc.org/musl
synced 2024-12-14 18:55:23 +00:00
fix regression in tcsetattr on all mips archs
revert commit 8c316e9e49
. it was wrong
and does not match how the kernel API works.
This commit is contained in:
parent
6399fa9d29
commit
cff5747c74
@ -141,9 +141,9 @@ struct termios {
|
||||
#define TCOFLUSH 1
|
||||
#define TCIOFLUSH 2
|
||||
|
||||
#define TCSANOW 0x540e
|
||||
#define TCSADRAIN 0x540f
|
||||
#define TCSAFLUSH 0x5410
|
||||
#define TCSANOW 0
|
||||
#define TCSADRAIN 1
|
||||
#define TCSAFLUSH 2
|
||||
|
||||
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||
#define EXTA 0000016
|
||||
|
@ -141,9 +141,9 @@ struct termios {
|
||||
#define TCOFLUSH 1
|
||||
#define TCIOFLUSH 2
|
||||
|
||||
#define TCSANOW 0x540e
|
||||
#define TCSADRAIN 0x540f
|
||||
#define TCSAFLUSH 0x5410
|
||||
#define TCSANOW 0
|
||||
#define TCSADRAIN 1
|
||||
#define TCSAFLUSH 2
|
||||
|
||||
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||
#define EXTA 0000016
|
||||
|
@ -141,9 +141,9 @@ struct termios {
|
||||
#define TCOFLUSH 1
|
||||
#define TCIOFLUSH 2
|
||||
|
||||
#define TCSANOW 0x540e
|
||||
#define TCSADRAIN 0x540f
|
||||
#define TCSAFLUSH 0x5410
|
||||
#define TCSANOW 0
|
||||
#define TCSADRAIN 1
|
||||
#define TCSAFLUSH 2
|
||||
|
||||
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||
#define EXTA 0000016
|
||||
|
@ -40,7 +40,7 @@ retry:
|
||||
buf[0] = NSCDVERSION;
|
||||
|
||||
fd = socket(PF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0);
|
||||
if (fd < 0) return NULL;
|
||||
if (fd < 0 && errno != EAFNOSUPPORT) return NULL;
|
||||
|
||||
if(!(f = fdopen(fd, "r"))) {
|
||||
close(fd);
|
||||
|
Loading…
Reference in New Issue
Block a user