aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-10 21:03:03 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-10 21:03:03 +0000
commitc915e5ad561865f92ce52234f52b5d5e88c3f56b (patch)
treeec755a981289be109258b6a2fc67a5622ea605a4
parent4c3c2e8a6e1763ce01211399f63b1a1ce6b16a88 (diff)
downloadglibc-c915e5ad561865f92ce52234f52b5d5e88c3f56b.tar
glibc-c915e5ad561865f92ce52234f52b5d5e88c3f56b.tar.gz
glibc-c915e5ad561865f92ce52234f52b5d5e88c3f56b.tar.bz2
glibc-c915e5ad561865f92ce52234f52b5d5e88c3f56b.zip
Update.
* sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add lowlevelrwlock.sym. * sysdeps/unix/sysv/linux/lowlevelrwlock.sym: New file. * sysdeps/unix/sysv/linux/i386/lowlevelrwlock.h: Removed.
-rw-r--r--nptl/ChangeLog5
-rw-r--r--nptl/sysdeps/unix/sysv/linux/Makefile2
-rw-r--r--nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym14
3 files changed, 20 insertions, 1 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index da784502a9..daad636866 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,5 +1,10 @@
2003-03-10 Ulrich Drepper <drepper@redhat.com>
+ * sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add
+ lowlevelrwlock.sym.
+ * sysdeps/unix/sysv/linux/lowlevelrwlock.sym: New file.
+ * sysdeps/unix/sysv/linux/i386/lowlevelrwlock.h: Removed.
+
* sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_trylock): Fix
register loading.
* sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_trylock): Undo
diff --git a/nptl/sysdeps/unix/sysv/linux/Makefile b/nptl/sysdeps/unix/sysv/linux/Makefile
index e903994328..1d0de6de2b 100644
--- a/nptl/sysdeps/unix/sysv/linux/Makefile
+++ b/nptl/sysdeps/unix/sysv/linux/Makefile
@@ -22,7 +22,7 @@ sysdep_routines += register-atfork unregister-atfork libc_pthread_init
libpthread-sysdep_routines += pt-fork
-gen-as-const-headers += lowlevelcond.sym
+gen-as-const-headers += lowlevelcond.sym lowlevelrwlock.sym
endif
ifeq ($(subdir),posix)
diff --git a/nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym b/nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym
new file mode 100644
index 0000000000..e82c878d39
--- /dev/null
+++ b/nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym
@@ -0,0 +1,14 @@
+#include <stddef.h>
+#include <stdio.h>
+#include <bits/pthreadtypes.h>
+
+--
+
+MUTEX offsetof (pthread_rwlock_t, __data.__lock)
+NR_READERS offsetof (pthread_rwlock_t, __data.__nr_readers)
+READERS_WAKEUP offsetof (pthread_rwlock_t, __data.__readers_wakeup)
+WRITERS_WAKEUP offsetof (pthread_rwlock_t, __data.__writer_wakeup)
+READERS_QUEUED offsetof (pthread_rwlock_t, __data.__nr_readers_queued)
+WRITERS_QUEUED offsetof (pthread_rwlock_t, __data.__nr_writers_queued)
+FLAGS offsetof (pthread_rwlock_t, __data.__flags)
+WRITER offsetof (pthread_rwlock_t, __data.__writer)