mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
* misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
initialization.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
|
||||||
|
|
||||||
|
* misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
|
||||||
|
initialization.
|
||||||
|
|
||||||
2008-10-17 Jakub Jelinek <jakub@redhat.com>
|
2008-10-17 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* elf/Makefile: Add rules to build and run tst-tls17.
|
* elf/Makefile: Add rules to build and run tst-tls17.
|
||||||
|
@ -358,10 +358,11 @@ openlog_internal(const char *ident, int logstat, int logfac)
|
|||||||
# ifndef __ASSUME_SOCK_CLOEXEC
|
# ifndef __ASSUME_SOCK_CLOEXEC
|
||||||
if (__have_sock_cloexec == 0)
|
if (__have_sock_cloexec == 0)
|
||||||
__have_sock_cloexec
|
__have_sock_cloexec
|
||||||
= (LogFile != -1
|
= ((LogFile != -1
|
||||||
|| errno != EINVAL);
|
|| errno != EINVAL)
|
||||||
|
? 1 : -1);
|
||||||
}
|
}
|
||||||
#endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#ifndef __ASSUME_SOCK_CLOEXEC
|
#ifndef __ASSUME_SOCK_CLOEXEC
|
||||||
# ifdef SOCK_CLOEXEC
|
# ifdef SOCK_CLOEXEC
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2008-10-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
|
||||||
|
|
||||||
|
* sysdeps/s390/tls.h (THREAD_SET_STACK_GUARD): Add empty inline
|
||||||
|
assembly with a clobber list for access registers a0 and a1.
|
||||||
|
|
||||||
2008-09-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
|
2008-09-11 Martin Schwidefsky <schwidefsky@de.ibm.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/fork.c (__libc_fork): Add memory barrier
|
* sysdeps/unix/sysv/linux/fork.c (__libc_fork): Add memory barrier
|
||||||
|
@ -161,7 +161,12 @@ typedef struct
|
|||||||
|
|
||||||
/* Set the stack guard field in TCB head. */
|
/* Set the stack guard field in TCB head. */
|
||||||
#define THREAD_SET_STACK_GUARD(value) \
|
#define THREAD_SET_STACK_GUARD(value) \
|
||||||
THREAD_SETMEM (THREAD_SELF, header.stack_guard, value)
|
do \
|
||||||
|
{ \
|
||||||
|
__asm __volatile ("" : : : "a0", "a1"); \
|
||||||
|
THREAD_SETMEM (THREAD_SELF, header.stack_guard, value); \
|
||||||
|
} \
|
||||||
|
while (0)
|
||||||
#define THREAD_COPY_STACK_GUARD(descr) \
|
#define THREAD_COPY_STACK_GUARD(descr) \
|
||||||
((descr)->header.stack_guard \
|
((descr)->header.stack_guard \
|
||||||
= THREAD_GETMEM (THREAD_SELF, header.stack_guard))
|
= THREAD_GETMEM (THREAD_SELF, header.stack_guard))
|
||||||
|
Reference in New Issue
Block a user