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

[commits] r2602 - in /fsf/trunk/libc: ChangeLog nis/nis_domain_of.c nptl/ChangeLog nptl/pthread_getattr_np.c



Author: eglibc
Date: Sat Jun 23 00:02:43 2007
New Revision: 2602

Log:
Import glibc-mainline for 2007-06-23

Modified:
    fsf/trunk/libc/ChangeLog
    fsf/trunk/libc/nis/nis_domain_of.c
    fsf/trunk/libc/nptl/ChangeLog
    fsf/trunk/libc/nptl/pthread_getattr_np.c

Modified: fsf/trunk/libc/ChangeLog
==============================================================================
--- fsf/trunk/libc/ChangeLog (original)
+++ fsf/trunk/libc/ChangeLog Sat Jun 23 00:02:43 2007
@@ -1,3 +1,8 @@
+2007-06-22  Ulrich Drepper  <drepper@xxxxxxxxxx>
+
+	* nis/nis_domain_of.c (__nis_domain_of): Make the code a bit more
+	ISO C compliant.
+
 2007-06-19  Ulrich Drepper  <drepper@xxxxxxxxxx>
 
 	* elf/dl-close.c (free_mem): Free _dl_scope_free_list.

Modified: fsf/trunk/libc/nis/nis_domain_of.c
==============================================================================
--- fsf/trunk/libc/nis/nis_domain_of.c (original)
+++ fsf/trunk/libc/nis/nis_domain_of.c Sat Jun 23 00:02:43 2007
@@ -32,10 +32,10 @@
 {
   const_nis_name cptr = strchr (name, '.');
 
-  if (cptr++ == NULL)
+  if (cptr == NULL)
     return "";
 
-  if (*cptr == '\0')
+  if (*++cptr == '\0')
     return ".";
 
   return cptr;

Modified: fsf/trunk/libc/nptl/ChangeLog
==============================================================================
--- fsf/trunk/libc/nptl/ChangeLog (original)
+++ fsf/trunk/libc/nptl/ChangeLog Sat Jun 23 00:02:43 2007
@@ -1,3 +1,8 @@
+2007-06-22  Jakub Jelinek  <jakub@xxxxxxxxxx>
+
+	* pthread_getattr_np.c (pthread_getattr_np): Clear cpuset and
+	cpusetsize if pthread_getaffinity_np failed with ENOSYS.
+
 2007-06-19  Ulrich Drepper  <drepper@xxxxxxxxxx>
 
 	* sysdeps/unix/sysv/linux/rtld-lowlevel.h: Remove mrlock

Modified: fsf/trunk/libc/nptl/pthread_getattr_np.c
==============================================================================
--- fsf/trunk/libc/nptl/pthread_getattr_np.c (original)
+++ fsf/trunk/libc/nptl/pthread_getattr_np.c Sat Jun 23 00:02:43 2007
@@ -164,8 +164,12 @@
 	{
 	  free (cpuset);
 	  if (ret == ENOSYS)
-	    /* There is no such functionality.  */
-	    ret = 0;
+	    {	  
+	      /* There is no such functionality.  */
+	      ret = 0;
+	      iattr->cpuset = NULL;
+	      iattr->cpusetsize = 0;
+	    }
 	}
     }