From f9cd7dfd6b27129e677f6526b5f86fbb11030044 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 10 Mar 2003 08:50:26 +0000 Subject: [PATCH] 2003-03-10 Roland McGrath * 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 | 4 +++- nptl/sysdeps/unix/sysv/linux/i386/lowlevelcond.h | 23 ---------------------- nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym | 9 +++++++++ nptl/sysdeps/unix/sysv/linux/sh/lowlevelcond.h | 23 ---------------------- nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h | 23 ---------------------- 5 files changed, 12 insertions(+), 70 deletions(-) delete mode 100644 nptl/sysdeps/unix/sysv/linux/i386/lowlevelcond.h create mode 100644 nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym delete mode 100644 nptl/sysdeps/unix/sysv/linux/sh/lowlevelcond.h delete mode 100644 nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h diff --git a/nptl/sysdeps/unix/sysv/linux/Makefile b/nptl/sysdeps/unix/sysv/linux/Makefile index c079a40..e903994 100644 --- a/nptl/sysdeps/unix/sysv/linux/Makefile +++ b/nptl/sysdeps/unix/sysv/linux/Makefile @@ -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 , 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 index 78e585f..0000000 --- a/nptl/sysdeps/unix/sysv/linux/i386/lowlevelcond.h +++ /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 , 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 index 0000000..17c1825 --- /dev/null +++ b/nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym @@ -0,0 +1,9 @@ +#include +#include + +-- + +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 index 78e585f..0000000 --- a/nptl/sysdeps/unix/sysv/linux/sh/lowlevelcond.h +++ /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 , 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 index 151dc76..0000000 --- a/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelcond.h +++ /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 , 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 -- 2.7.4