]> sourceware.org Git - glibc.git/commitdiff
* misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
authorUlrich Drepper <drepper@redhat.com>
Wed, 22 Oct 2008 21:45:13 +0000 (21:45 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 22 Oct 2008 21:45:13 +0000 (21:45 +0000)
initialization.

ChangeLog
misc/syslog.c
nptl/ChangeLog
nptl/sysdeps/s390/tls.h

index 178c921c74baf565e582490e46787d0d3aee66ea..b850b08d5df865acf7ff0c328ba0c1261ee56a02 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * elf/Makefile: Add rules to build and run tst-tls17.
index 8f84faf75cf5fefc0056a6ba771746a29cf603a8..90cd3bfa14a9d61180203b98d68d50c0b0d8dfae 100644 (file)
@@ -358,10 +358,11 @@ openlog_internal(const char *ident, int logstat, int logfac)
 # ifndef __ASSUME_SOCK_CLOEXEC
                                        if (__have_sock_cloexec == 0)
                                                __have_sock_cloexec
-                                                 = (LogFile != -1
-                                                    || errno != EINVAL);
+                                                 = ((LogFile != -1
+                                                     || errno != EINVAL)
+                                                    ? 1 : -1);
                                }
-#endif
+# endif
 #endif
 #ifndef __ASSUME_SOCK_CLOEXEC
 # ifdef SOCK_CLOEXEC
index 24926cf40a19a3cdac9bc84a8e7ff558afc3e891..733ff038d2f5b2fb4e197d6c3e6caa14a3555ec7 100644 (file)
@@ -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>
 
        * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Add memory barrier
index 3be459e32c97df3ffa3388da07aa22903ca51f35..2b38ed4e7d63a369955ab8d9fc8bcff4ec30fda7 100644 (file)
@@ -161,7 +161,12 @@ typedef struct
 
 /* Set the stack guard field in TCB head.  */
 #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) \
   ((descr)->header.stack_guard                                               \
    = THREAD_GETMEM (THREAD_SELF, header.stack_guard))
This page took 0.066191 seconds and 5 git commands to generate.