2003-03-10 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@gnu.org>
Mon, 10 Mar 2003 08:50:26 +0000 (08:50 +0000)
committerRoland McGrath <roland@gnu.org>
Mon, 10 Mar 2003 08:50:26 +0000 (08:50 +0000)
* sysdeps/unix/sysv/linux/lowlevelcond.sym: New file.
* sysdeps/unix/sysv/linux/Makefile (gen-as-const-headers): Add it.
* sysdeps/unix/sysv/linux/sh/lowlevelcond.h: File removed.
* sysdeps/unix/sysv/linux/i386/lowlevelcond.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h: Likewise.

nptl/sysdeps/unix/sysv/linux/Makefile
nptl/sysdeps/unix/sysv/linux/i386/lowlevelcond.h [deleted file]
nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym [new file with mode: 0644]
nptl/sysdeps/unix/sysv/linux/sh/lowlevelcond.h [deleted file]
nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h [deleted file]

index c079a40..e903994 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 # Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
 
@@ -21,6 +21,8 @@ ifeq ($(subdir),nptl)
 sysdep_routines += register-atfork unregister-atfork libc_pthread_init
 
 libpthread-sysdep_routines += pt-fork
+
+gen-as-const-headers += lowlevelcond.sym
 endif
 
 ifeq ($(subdir),posix)
diff --git a/nptl/sysdeps/unix/sysv/linux/i386/lowlevelcond.h b/nptl/sysdeps/unix/sysv/linux/i386/lowlevelcond.h
deleted file mode 100644 (file)
index 78e585f..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
-
-#define cond_lock      0
-#define total_seq      4
-#define wakeup_seq     12
-#define woken_seq      20
diff --git a/nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym b/nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym
new file mode 100644 (file)
index 0000000..17c1825
--- /dev/null
@@ -0,0 +1,9 @@
+#include <stddef.h>
+#include <bits/pthreadtypes.h>
+
+--
+
+cond_lock      offsetof (pthread_cond_t, __data.__lock)
+total_seq      offsetof (pthread_cond_t, __data.__total_seq)
+wakeup_seq     offsetof (pthread_cond_t, __data.__wakeup_seq)
+woken_seq      offsetof (pthread_cond_t, __data.__woken_seq)
diff --git a/nptl/sysdeps/unix/sysv/linux/sh/lowlevelcond.h b/nptl/sysdeps/unix/sysv/linux/sh/lowlevelcond.h
deleted file mode 100644 (file)
index 78e585f..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
-
-#define cond_lock      0
-#define total_seq      4
-#define wakeup_seq     12
-#define woken_seq      20
diff --git a/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h b/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h
deleted file mode 100644 (file)
index 151dc76..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
-
-#define cond_lock      0
-#define total_seq      8
-#define wakeup_seq     16
-#define woken_seq      24