mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 14:30:06 +00:00
Fix SOCK_CLOEXEC on HPPA to match O_CLOEXEC.
The kernel defines SOCK_CLOEXEC as include/linux/net.h:#define SOCK_CLOEXEC O_CLOEXEC arch/parisc/include/asm/fcntl.h:#define O_CLOEXEC 010000000 But glibc was defining sysdeps/unix/sysv/linux/hppa/bits/socket.h: SOCK_CLOEXEC = 01000000, Signed-off-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Kyle McMartin <kyle@redhat.com> Signed-off-by: Carlos O'Donell <carlos@codesourcery.com>
This commit is contained in:
parent
317d0e66a0
commit
f3ed03373a
@ -1,3 +1,8 @@
|
|||||||
|
2010-02-17 Matt Turner <mattst88@gmail.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/hppa/bits/socket.h: Actually fix
|
||||||
|
SOCK_CLOEXEC to match O_CLOEXEC.
|
||||||
|
|
||||||
2010-02-02 Carlos O'Donell <carlos@codesourcery.com>
|
2010-02-02 Carlos O'Donell <carlos@codesourcery.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/hppa/bits/mman.h: Define
|
* sysdeps/unix/sysv/linux/hppa/bits/mman.h: Define
|
||||||
|
@ -62,7 +62,7 @@ enum __socket_type
|
|||||||
/* Flags to be ORed into the type parameter of socket and socketpair and
|
/* Flags to be ORed into the type parameter of socket and socketpair and
|
||||||
used for the flags parameter of paccept. */
|
used for the flags parameter of paccept. */
|
||||||
|
|
||||||
SOCK_CLOEXEC = 01000000, /* Atomically set close-on-exec flag for the
|
SOCK_CLOEXEC = 010000000, /* Atomically set close-on-exec flag for the
|
||||||
new descriptor(s). */
|
new descriptor(s). */
|
||||||
#define SOCK_CLOEXEC SOCK_CLOEXEC
|
#define SOCK_CLOEXEC SOCK_CLOEXEC
|
||||||
#undef SOCK_NONBLOCK
|
#undef SOCK_NONBLOCK
|
||||||
|
Loading…
Reference in New Issue
Block a user