about summary refs log tree commit diff
path: root/nptl
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-05-11 06:39:07 +0000
committerUlrich Drepper <drepper@redhat.com>2007-05-11 06:39:07 +0000
commit341c566f05fa6b19b88508f7ddd835bfd101731b (patch)
tree82fc68ed7d11fb8ea2b5c7f7d8f38c2c554734c7 /nptl
parenta53fa282ac5200d5ca345a34f2a257dfe5ed2d4b (diff)
downloadglibc-341c566f05fa6b19b88508f7ddd835bfd101731b.tar.gz
glibc-341c566f05fa6b19b88508f7ddd835bfd101731b.tar.xz
glibc-341c566f05fa6b19b88508f7ddd835bfd101731b.zip
* sysdeps/unix/sysv/linux/tst-getcpu.c: New file.
	* sysdeps/unix/sysv/linux/Makefile [subdir=posix] (tests): Add
	tst-getcpu.

	* include/link.h: Move l_version and l_nversion members around to
	fill gaps.
Diffstat (limited to 'nptl')
-rw-r--r--nptl/ChangeLog3
-rw-r--r--nptl/descr.h8
2 files changed, 7 insertions, 4 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index 24511664b7..882d3e9b29 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,5 +1,8 @@
 2007-05-10  Ulrich Drepper  <drepper@redhat.com>
 
+	* descr.h (struct pthread): Rearrange members to fill hole in
+	64-bit layout.
+
 	* sysdeps/unix/sysv/linux/pthread_setaffinity.c
 	(__pthread_setaffinity_new): If syscall was successful and
 	RESET_VGETCPU_CACHE is defined, use it before returning.
diff --git a/nptl/descr.h b/nptl/descr.h
index 321ce85085..00cad1aa83 100644
--- a/nptl/descr.h
+++ b/nptl/descr.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+/* Copyright (C) 2002-2006, 2007 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
 
@@ -268,6 +268,9 @@ struct pthread
 	       | EXITING_BITMASK | CANCEL_RESTMASK | TERMINATED_BITMASK))     \
    == (CANCELTYPE_BITMASK | CANCELED_BITMASK))
 
+  /* Flags.  Including those copied from the thread attribute.  */
+  int flags;
+
   /* We allocate one block of references here.  This should be enough
      to avoid allocating any memory dynamically for most applications.  */
   struct pthread_key_data
@@ -321,9 +324,6 @@ struct pthread
   /* Check whether a thread is detached.  */
 #define IS_DETACHED(pd) ((pd)->joinid == (pd))
 
-  /* Flags.  Including those copied from the thread attribute.  */
-  int flags;
-
   /* The result of the thread function.  */
   void *result;