[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commits] r7191 - in /fsf/trunk/libc: ChangeLog misc/syslog.c nptl/ChangeLog nptl/sysdeps/s390/tls.h



Author: eglibc
Date: Thu Oct 23 00:03:21 2008
New Revision: 7191

Log:
Import glibc-mainline for 2008-10-23

Modified:
    fsf/trunk/libc/ChangeLog
    fsf/trunk/libc/misc/syslog.c
    fsf/trunk/libc/nptl/ChangeLog
    fsf/trunk/libc/nptl/sysdeps/s390/tls.h

Modified: fsf/trunk/libc/ChangeLog
==============================================================================
--- fsf/trunk/libc/ChangeLog (original)
+++ fsf/trunk/libc/ChangeLog Thu Oct 23 00:03:21 2008
@@ -1,3 +1,8 @@
+2008-10-22  Dmitry V. Levin  <ldv@xxxxxxxxxxxx>
+
+	* misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
+	initialization.
+
 2008-10-17  Jakub Jelinek  <jakub@xxxxxxxxxx>
 
 	* elf/Makefile: Add rules to build and run tst-tls17.

Modified: fsf/trunk/libc/misc/syslog.c
==============================================================================
--- fsf/trunk/libc/misc/syslog.c (original)
+++ fsf/trunk/libc/misc/syslog.c Thu Oct 23 00:03:21 2008
@@ -358,10 +358,11 @@
 # 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

Modified: fsf/trunk/libc/nptl/ChangeLog
==============================================================================
--- fsf/trunk/libc/nptl/ChangeLog (original)
+++ fsf/trunk/libc/nptl/ChangeLog Thu Oct 23 00:03:21 2008
@@ -1,3 +1,8 @@
+2008-10-06  Martin Schwidefsky  <schwidefsky@xxxxxxxxxx>
+
+	* 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@xxxxxxxxxx>
 
 	* sysdeps/unix/sysv/linux/fork.c (__libc_fork): Add memory barrier

Modified: fsf/trunk/libc/nptl/sysdeps/s390/tls.h
==============================================================================
--- fsf/trunk/libc/nptl/sysdeps/s390/tls.h (original)
+++ fsf/trunk/libc/nptl/sysdeps/s390/tls.h Thu Oct 23 00:03:21 2008
@@ -161,7 +161,12 @@
 
 /* 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))