HPPA will never have NPTL support. April fools. Here's the patch.
Aurel,
Please find attached the patches that implements the POSIX Thread compat functions for HPPA's transition from Linuxthreads to NPTL.
The core patch are changes required to core libc or nptl.
The ports patch are changes required to the ports add-on.
The compat-tests.tbz2 is a WIP of the small test-suite I am using to manually validate each function works correctly.
I've run the patches through the full glibc make check and I don't see any serious regressions.
Could you please build with these patches and report back the results of the glibc testsuite?
I've CC'd libc-ports just to have a record of what such a massing versioning looks like, and the hacks required to accomplish it.
Cheers,
Carlos.
Index: ChangeLog
===================================================================
RCS file: /cvs/glibc/libc/ChangeLog,v
retrieving revision 1.11558
ChangeLog +7 -0
@@ -1,3 +1,10 @@ +2009-04-01 Carlos O'Donell <[email protected]> + + * csu/init.c: Rename to ... + * csu/csu-init.c: ... here. + * csu/Makefile: Use csu-init. + * Version.def: Add GLIBC_2.9. + 2009-04-01 Roland McGrath <[email protected]> * elf/elf.h (R_SPARC_GLOB_JMP): New macro.
Index: Versions.def
===================================================================
RCS file: /cvs/glibc/libc/Versions.def,v
retrieving revision 1.74
Versions.def +1 -0
@@ -88,6 +88,7 @@ libpthread { GLIBC_2.3.4 GLIBC_2.4 GLIBC_2.6 + GLIBC_2.9 GLIBC_PRIVATE } libresolv {
Index: csu/init.c
===================================================================
RCS file: csu/init.c
init.c deleted +0 -27
@@ -1,27 +0,0 @@ -/* Special startup support. -Copyright (C) 1997, 1998 Free Software Foundation, Inc. -This file is part of the GNU C Library. - -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. */ - -#if definedUSE_IN_LIBIO && defined __GNUC__ && __GNUC__ >=2 - -#include <_G_config.h> - -/* This records which stdio is linked against in the application. */ -const int _IO_stdin_used = _G_IO_IO_FILE_VERSION; - -#endif
Index: csu/csu-init.c
===================================================================
RCS file: csu/csu-init.c
csu-init.c new file +27 -0
@@ -0,0 +1,27 @@ +/* Special startup support. +Copyright (C) 1997, 1998 Free Software Foundation, Inc. +This file is part of the GNU C Library. + +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. */ + +#if definedUSE_IN_LIBIO && defined __GNUC__ && __GNUC__ >=2 + +#include <_G_config.h> + +/* This records which stdio is linked against in the application. */ +const int _IO_stdin_used = _G_IO_IO_FILE_VERSION; + +#endif
Index: csu/Makefile
===================================================================
RCS file: /cvs/glibc/libc/csu/Makefile,v
retrieving revision 1.79
Makefile +5 -5
@@ -40,7 +40,7 @@ omit-deps = $(patsubst %.o,%,$(start-ins S$(start-installed-name)) install-lib = $(start-installed-name) g$(start-installed-name) $(csu-dummies) distribute = initfini.c gmon-start.c start.c defs.awk \ - abi-note.S init.c c not-cancel.h + abi-note.S csu-init.c c not-cancel.h generated = version-info.h before-compile = $(objpfx)version-info.h
@@ -125,7 +125,7 @@ $(objpfx)defs.h: $(objpfx)initfini.s endif ifeq (yes,$(elf)) -extra-objs += abi-note.o init.o +extra-objs += abi-note.o csu-init.o asm-CPPFLAGS += -I$(objpfx). endif
@@ -143,13 +143,13 @@ ifeq (yes,$(elf)) # We link the ELF startfile along with a SHT_NOTE section indicating # the kernel ABI the binaries linked with this library will require. $(objpfx)$(start-installed-name): $(objpfx)start.o $(objpfx)abi-note.o \ - $(objpfx)init.o + $(objpfx)csu-init.o $(link-relocatable) $(objpfx)S$(start-installed-name): $(objpfx)start.os $(objpfx)abi-note.o \ - $(objpfx)init.o + $(objpfx)csu-init.o $(link-relocatable) $(objpfx)b$(start-installed-name): $(objpfx)start.ob $(objpfx)abi-note.ob \ - $(objpfx)init.ob + $(objpfx)csu-init.ob $(link-relocatable) else # The startfile is installed under different names, so we just call our
Index: ChangeLog.hppa
===================================================================
RCS file: /cvs/glibc/ports/ChangeLog.hppa,v
retrieving revision 1.56
ChangeLog.hppa +55 -0
58 lines not on this page · raw message
Index: sysdeps/hppa/nptl/Makefile
===================================================================
RCS file: /cvs/glibc/ports/sysdeps/hppa/nptl/Makefile,v retrieving revision 1.2
hppa/nptl/Makefile +25 -0
@@ -25,3 +25,28 @@ endif # this because the default is too small to run with. tst-oddstacklimit-ENV = ; ulimit -s 8193; +ifeq ($(subdir),nptl) +# Add compat routines for all versioned functions. +libpthread-routines += \ + old_hppa_pthread_cond_broadcast \ + old_hppa_pthread_cond_destroy \ + old_hppa_pthread_cond_init \ + old_hppa_pthread_cond_signal \ + old_hppa_pthread_cond_timedwait \ + old_hppa_pthread_cond_wait \ + old_hppa_pthread_mutex_destroy \ + old_hppa_pthread_mutex_init \ + old_hppa_pthread_mutex_lock \ + old_hppa_pthread_mutex_timedlock \ + old_hppa_pthread_mutex_trylock \ + old_hppa_pthread_mutex_unlock \ + old_hppa_pthread_rwlock_destroy \ + old_hppa_pthread_rwlock_init \ + old_hppa_pthread_rwlock_rdlock \ + old_hppa_pthread_rwlock_timedrdlock \ + old_hppa_pthread_rwlock_timedwrlock \ + old_hppa_pthread_rwlock_tryrdlock \ + old_hppa_pthread_rwlock_trywrlock \ + old_hppa_pthread_rwlock_unlock \ + old_hppa_pthread_rwlock_wrlock +endif
Index: sysdeps/unix/sysv/linux/hppa/internaltypes.h
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/internaltypes.h
unix/sysv/linux/hppa/internaltypes.h new file +184 -0
184 lines not on this page · raw message
Index: sysdeps/unix/sysv/linux/hppa/nptl/Versions
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/Versions
unix/sysv/linux/hppa/nptl/Versions new file +65 -0
65 lines not on this page · raw message
Index: sysdeps/unix/sysv/linux/hppa/nptl/forward.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/forward.c
unix/sysv/linux/hppa/nptl/forward.c new file +275 -0
275 lines not on this page · raw message
Index: sysdeps/unix/sysv/linux/hppa/nptl/init.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/init.c
unix/sysv/linux/hppa/nptl/init.c new file +460 -0
460 lines not on this page · raw message
Index: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_cond_broadcast.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_cond_broadcast.c
unix/sysv/linux/hppa/nptl/old_hppa_pthread_cond_broadcast.c new file +36 -0
@@ -0,0 +1,36 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#include <errno.h> +#include "pthreadP.h" +#include <shlib-compat.h> + +#if SHLIB_COMPAT (libpthread,GLIBC_2_3_2 ,GLIBC_2_9 ) +int +__pthread_cond_broadcast_hppa_2_3_2 (pthread_cond_hppa_2_3_2_t *var) +{ +compat_lock (var); +compat_malloc (var); +compat_unlock (var); +return __pthread_cond_broadcast (var->compat); +} +compat_symbol (libpthread, __pthread_cond_broadcast_hppa_2_3_2, + pthread_cond_broadcast,GLIBC_2_3_2 ); +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_cond_destroy.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_cond_destroy.c
unix/sysv/linux/hppa/nptl/old_hppa_pthread_cond_destroy.c new file +40 -0
@@ -0,0 +1,40 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#include <errno.h> +#include "pthreadP.h" +#include <shlib-compat.h> + +#if SHLIB_COMPAT (libpthread,GLIBC_2_3_2 ,GLIBC_2_9 ) +int +__pthread_cond_destroy_hppa_2_3_2 (pthread_cond_hppa_2_3_2_t *var) +{ +int ret; +if (compat_present (var)) + { + ret =__pthread_cond_destroy (var->compat); +compat_free (var); +return ret; + } +return 0 ; +} +compat_symbol (libpthread, __pthread_cond_destroy_hppa_2_3_2, + pthread_cond_destroy,GLIBC_2_3_2 ); +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_cond_init.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_cond_init.c
unix/sysv/linux/hppa/nptl/old_hppa_pthread_cond_init.c new file +37 -0
@@ -0,0 +1,37 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#include <errno.h> +#include "pthreadP.h" +#include <shlib-compat.h> + +#if SHLIB_COMPAT (libpthread,GLIBC_2_3_2 ,GLIBC_2_9 ) +int +__pthread_cond_init_hppa_2_3_2 (pthread_cond_hppa_2_3_2_t *var, +const pthread_condattr_t *attr) +{ +/* All other compat functions expect an initialized lock. */ +compat_init (var); +compat_malloc_nolock (var); +return __pthread_cond_init (var->compat, attr); +} +compat_symbol (libpthread, __pthread_cond_init_hppa_2_3_2, pthread_cond_init, +GLIBC_2_3_2 ); +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_cond_signal.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_cond_signal.c
unix/sysv/linux/hppa/nptl/old_hppa_pthread_cond_signal.c new file +36 -0
@@ -0,0 +1,36 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#include <errno.h> +#include "pthreadP.h" +#include <shlib-compat.h> + +#if SHLIB_COMPAT (libpthread,GLIBC_2_3_2 ,GLIBC_2_9 ) +int +__pthread_cond_signal_hppa_2_3_2 (pthread_cond_hppa_2_3_2_t *var) +{ +compat_lock (var); +compat_malloc (var); +compat_unlock (var); +return __pthread_cond_signal (var->compat); +} +compat_symbol (libpthread, __pthread_cond_signal_hppa_2_3_2, + pthread_cond_signal,GLIBC_2_3_2 ); +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_cond_timedwait.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_cond_timedwait.c
unix/sysv/linux/hppa/nptl/old_hppa_pthread_cond_timedwait.c new file +44 -0
44 lines not on this page · raw message
Index: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_cond_wait.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_cond_wait.c
unix/sysv/linux/hppa/nptl/old_hppa_pthread_cond_wait.c new file +41 -0
41 lines not on this page · raw message
Index: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_mutex_destroy.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_mutex_destroy.c
unix/sysv/linux/hppa/nptl/old_hppa_pthread_mutex_destroy.c new file +40 -0
@@ -0,0 +1,40 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#include <errno.h> +#include "pthreadP.h" +#include <shlib-compat.h> + +#if SHLIB_COMPAT (libpthread,GLIBC_2_0 ,GLIBC_2_9 ) +int +__pthread_mutex_destroy_hppa_2_0 (pthread_mutex_hppa_2_0_t *var) +{ +int ret; +if (compat_present (var)) + { + ret =__pthread_mutex_destroy (var->compat); +compat_free (var); +return ret; + } +return 0 ; +} +compat_symbol (libpthread, __pthread_mutex_destroy_hppa_2_0, + pthread_mutex_destroy,GLIBC_2_0 ); +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_mutex_init.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_mutex_init.c
unix/sysv/linux/hppa/nptl/old_hppa_pthread_mutex_init.c new file +37 -0
@@ -0,0 +1,37 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#include <errno.h> +#include "pthreadP.h" +#include <shlib-compat.h> + +#if SHLIB_COMPAT (libpthread,GLIBC_2_0 ,GLIBC_2_9 ) +int +__pthread_mutex_init_hppa_2_0 (pthread_mutex_hppa_2_0_t *var, +const pthread_mutexattr_t *attr) +{ +/* All other compat functions expect an initialized lock. */ +compat_init (var); +compat_malloc_nolock (var); +return __pthread_mutex_init (var->compat, attr); +} +compat_symbol (libpthread, __pthread_mutex_init_hppa_2_0, pthread_mutex_init, +GLIBC_2_0 ); +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_mutex_lock.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_mutex_lock.c
unix/sysv/linux/hppa/nptl/old_hppa_pthread_mutex_lock.c new file +37 -0
@@ -0,0 +1,37 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#include <errno.h> +#include "pthreadP.h" +#include <shlib-compat.h> + +#if SHLIB_COMPAT (libpthread,GLIBC_2_0 ,GLIBC_2_9 ) +int +__pthread_mutex_lock_hppa_2_0 (pthread_mutex_hppa_2_0_t *var) +{ +compat_lock (var); +compat_malloc (var); +compat_mutex_copy (var); +compat_unlock (var); +return __pthread_mutex_lock (var->compat); +} +compat_symbol (libpthread, __pthread_mutex_lock_hppa_2_0, pthread_mutex_lock, +GLIBC_2_0 ); +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_mutex_timedlock.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_mutex_timedlock.c
unix/sysv/linux/hppa/nptl/old_hppa_pthread_mutex_timedlock.c new file +40 -0
@@ -0,0 +1,40 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#include <errno.h> +#include <time.h> +#include "pthreadP.h" + +#include <shlib-compat.h> + +#if SHLIB_COMPAT (libpthread,GLIBC_2_0 ,GLIBC_2_9 ) +int +__pthread_mutex_timedlock_hppa_2_0 (pthread_mutex_hppa_2_0_t *var, +const struct timespec abs_timeout) +{ +compat_lock (var); +compat_malloc (var); +compat_mutex_copy (var); +compat_unlock (var); +return __pthread_mutex_timedlock (var->compat, abs_timeout); +} +compat_symbol (libpthread, __pthread_mutex_timedlock_hppa_2_0, pthread_mutex_timedlock, +GLIBC_2_0 ); +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_mutex_trylock.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_mutex_trylock.c
unix/sysv/linux/hppa/nptl/old_hppa_pthread_mutex_trylock.c new file +37 -0
@@ -0,0 +1,37 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#include <errno.h> +#include "pthreadP.h" +#include <shlib-compat.h> + +#if SHLIB_COMPAT (libpthread,GLIBC_2_0 ,GLIBC_2_9 ) +int +__pthread_mutex_trylock_hppa_2_0 (pthread_mutex_hppa_2_0_t *var) +{ +compat_lock (var); +compat_malloc (var); +compat_mutex_copy (var); +compat_unlock (var); +return __pthread_mutex_trylock (var->compat); +} +compat_symbol (libpthread, __pthread_mutex_trylock_hppa_2_0, pthread_mutex_trylock, +GLIBC_2_0 ); +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_mutex_unlock.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_mutex_unlock.c
unix/sysv/linux/hppa/nptl/old_hppa_pthread_mutex_unlock.c new file +37 -0
@@ -0,0 +1,37 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#include <errno.h> +#include "pthreadP.h" +#include <shlib-compat.h> + +#if SHLIB_COMPAT (libpthread,GLIBC_2_0 ,GLIBC_2_9 ) +int +__pthread_mutex_unlock_hppa_2_0 (pthread_mutex_hppa_2_0_t *var) +{ +compat_lock (var); +compat_malloc (var); +compat_mutex_copy (var); +compat_unlock (var); +return __pthread_mutex_unlock (var->compat); +} +compat_symbol (libpthread, __pthread_mutex_unlock_hppa_2_0, pthread_mutex_unlock, +GLIBC_2_0 ); +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_destroy.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_destroy.c
unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_destroy.c new file +40 -0
@@ -0,0 +1,40 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#include <errno.h> +#include "pthreadP.h" +#include <shlib-compat.h> + +#if SHLIB_COMPAT (libpthread,GLIBC_2_0 ,GLIBC_2_9 ) +int +__pthread_rwlock_destroy_hppa_2_0 (pthread_rwlock_hppa_2_0_t *var) +{ +int ret; +if (compat_present (var)) + { + ret =__pthread_rwlock_destroy (var->compat); +compat_free (var); +return ret; + } +return 0 ; +} +compat_symbol (libpthread, __pthread_rwlock_destroy_hppa_2_0, + pthread_rwlock_destroy,GLIBC_2_0 ); +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_init.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_init.c
unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_init.c new file +37 -0
@@ -0,0 +1,37 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#include <errno.h> +#include "pthreadP.h" +#include <shlib-compat.h> + +#if SHLIB_COMPAT (libpthread,GLIBC_2_0 ,GLIBC_2_9 ) +int +__pthread_rwlock_init_hppa_2_0 (pthread_rwlock_hppa_2_0_t *var, +const pthread_rwlockattr_t *attr) +{ +/* All other compat functions expect an initialized lock. */ +compat_init (var); +compat_malloc_nolock (var); +return __pthread_rwlock_init (var->compat, attr); +} +compat_symbol (libpthread, __pthread_rwlock_init_hppa_2_0, pthread_rwlock_init, +GLIBC_2_0 ); +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_rdlock.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_rdlock.c
unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_rdlock.c new file +37 -0
@@ -0,0 +1,37 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#include <errno.h> +#include "pthreadP.h" +#include <shlib-compat.h> + +#if SHLIB_COMPAT (libpthread,GLIBC_2_0 ,GLIBC_2_9 ) +int +__pthread_rwlock_rdlock_hppa_2_0 (pthread_rwlock_hppa_2_0_t *var) +{ +compat_lock (var); +compat_malloc (var); +compat_rwlock_copy (var); +compat_unlock (var); +return __pthread_rwlock_rdlock (var->compat); +} +compat_symbol (libpthread, __pthread_rwlock_rdlock_hppa_2_0, pthread_rwlock_rdlock, +GLIBC_2_0 ); +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_timedrdlock.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_timedrdlock.c
unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_timedrdlock.c new file +40 -0
@@ -0,0 +1,40 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#include <errno.h> +#include <time.h> +#include "pthreadP.h" + +#include <shlib-compat.h> + +#if SHLIB_COMPAT (libpthread,GLIBC_2_0 ,GLIBC_2_9 ) +int +__pthread_rwlock_timedrdlock_hppa_2_0 (pthread_rwlock_hppa_2_0_t *var, +const struct timespec *abs_timeout) +{ +compat_lock (var); +compat_malloc (var); +compat_rwlock_copy (var); +compat_unlock (var); +return __pthread_rwlock_timedrdlock (var->compat, abs_timeout); +} +compat_symbol (libpthread, __pthread_rwlock_timedrdlock_hppa_2_0, pthread_rwlock_timedrdlock, +GLIBC_2_0 ); +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_timedwrlock.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_timedwrlock.c
unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_timedwrlock.c new file +40 -0
@@ -0,0 +1,40 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#include <errno.h> +#include <time.h> +#include "pthreadP.h" + +#include <shlib-compat.h> + +#if SHLIB_COMPAT (libpthread,GLIBC_2_0 ,GLIBC_2_9 ) +int +__pthread_rwlock_timedwrlock_hppa_2_0 (pthread_rwlock_hppa_2_0_t *var, +const struct timespec *abs_timeout) +{ +compat_lock (var); +compat_malloc (var); +compat_rwlock_copy (var); +compat_unlock (var); +return __pthread_rwlock_timedwrlock (var->compat, abs_timeout); +} +compat_symbol (libpthread, __pthread_rwlock_timedwrlock_hppa_2_0, pthread_rwlock_timedwrlock, +GLIBC_2_0 ); +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_tryrdlock.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_tryrdlock.c
unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_tryrdlock.c new file +37 -0
@@ -0,0 +1,37 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#include <errno.h> +#include "pthreadP.h" +#include <shlib-compat.h> + +#if SHLIB_COMPAT (libpthread,GLIBC_2_0 ,GLIBC_2_9 ) +int +__pthread_rwlock_tryrdlock_hppa_2_0 (pthread_rwlock_hppa_2_0_t *var) +{ +compat_lock (var); +compat_malloc (var); +compat_rwlock_copy (var); +compat_unlock (var); +return __pthread_rwlock_tryrdlock (var->compat); +} +compat_symbol (libpthread, __pthread_rwlock_tryrdlock_hppa_2_0, pthread_rwlock_tryrdlock, +GLIBC_2_0 ); +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_trywrlock.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_trywrlock.c
unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_trywrlock.c new file +37 -0
@@ -0,0 +1,37 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#include <errno.h> +#include "pthreadP.h" +#include <shlib-compat.h> + +#if SHLIB_COMPAT (libpthread,GLIBC_2_0 ,GLIBC_2_9 ) +int +__pthread_rwlock_trywrlock_hppa_2_0 (pthread_rwlock_hppa_2_0_t *var) +{ +compat_lock (var); +compat_malloc (var); +compat_rwlock_copy (var); +compat_unlock (var); +return __pthread_rwlock_trywrlock (var->compat); +} +compat_symbol (libpthread, __pthread_rwlock_trywrlock_hppa_2_0, pthread_rwlock_trywrlock, +GLIBC_2_0 ); +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_unlock.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_unlock.c
unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_unlock.c new file +37 -0
@@ -0,0 +1,37 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#include <errno.h> +#include "pthreadP.h" +#include <shlib-compat.h> + +#if SHLIB_COMPAT (libpthread,GLIBC_2_0 ,GLIBC_2_9 ) +int +__pthread_rwlock_unlock_hppa_2_0 (pthread_rwlock_hppa_2_0_t *var) +{ +compat_lock (var); +compat_malloc (var); +compat_rwlock_copy (var); +compat_unlock (var); +return __pthread_rwlock_unlock (var->compat); +} +compat_symbol (libpthread, __pthread_rwlock_unlock_hppa_2_0, pthread_rwlock_unlock, +GLIBC_2_0 ); +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_wrlock.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_wrlock.c
unix/sysv/linux/hppa/nptl/old_hppa_pthread_rwlock_wrlock.c new file +37 -0
@@ -0,0 +1,37 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#include <errno.h> +#include "pthreadP.h" +#include <shlib-compat.h> + +#if SHLIB_COMPAT (libpthread,GLIBC_2_0 ,GLIBC_2_9 ) +int +__pthread_rwlock_wrlock_hppa_2_0 (pthread_rwlock_hppa_2_0_t *var) +{ +compat_lock (var); +compat_malloc (var); +compat_rwlock_copy (var); +compat_unlock (var); +return __pthread_rwlock_wrlock (var->compat); +} +compat_symbol (libpthread, __pthread_rwlock_wrlock_hppa_2_0, pthread_rwlock_wrlock, +GLIBC_2_0 ); +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/pthread-functions.h
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/pthread-functions.h
unix/sysv/linux/hppa/nptl/pthread-functions.h new file +133 -0
133 lines not on this page · raw message
Index: sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h
unix/sysv/linux/hppa/nptl/pthreadP.h new file +621 -0
621 lines not on this page · raw message
Index: sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c
unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c new file +29 -0
@@ -0,0 +1,29 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#ifndef INCLUDED_SELF +# define INCLUDED_SELF +# include <pthread_cond_broadcast.c> +#else +# include <shlib-compat.h> +# undef GLIBC_2_3_2 +# define GLIBC_2_3_2 GLIBC_2_9 +# include_next <pthread_cond_broadcast.c> +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c
unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c new file +29 -0
@@ -0,0 +1,29 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#ifndef INCLUDED_SELF +# define INCLUDED_SELF +# include <pthread_cond_destroy.c> +#else +# include <shlib-compat.h> +# undef GLIBC_2_3_2 +# define GLIBC_2_3_2 GLIBC_2_9 +# include_next <pthread_cond_destroy.c> +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c
unix/sysv/linux/hppa/nptl/pthread_cond_init.c new file +29 -0
@@ -0,0 +1,29 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#ifndef INCLUDED_SELF +# define INCLUDED_SELF +# include <pthread_cond_init.c> +#else +# include <shlib-compat.h> +# undef GLIBC_2_3_2 +# define GLIBC_2_3_2 GLIBC_2_9 +# include_next <pthread_cond_init.c> +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c
unix/sysv/linux/hppa/nptl/pthread_cond_signal.c new file +29 -0
@@ -0,0 +1,29 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#ifndef INCLUDED_SELF +# define INCLUDED_SELF +# include <pthread_cond_signal.c> +#else +# include <shlib-compat.h> +# undef GLIBC_2_3_2 +# define GLIBC_2_3_2 GLIBC_2_9 +# include_next <pthread_cond_signal.c> +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c
unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c new file +29 -0
@@ -0,0 +1,29 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#ifndef INCLUDED_SELF +# define INCLUDED_SELF +# include <pthread_cond_timedwait.c> +#else +# include <shlib-compat.h> +# undef GLIBC_2_3_2 +# define GLIBC_2_3_2 GLIBC_2_9 +# include_next <pthread_cond_timedwait.c> +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c
unix/sysv/linux/hppa/nptl/pthread_cond_wait.c new file +29 -0
@@ -0,0 +1,29 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#ifndef INCLUDED_SELF +# define INCLUDED_SELF +# include <pthread_cond_wait.c> +#else +# include <shlib-compat.h> +# undef GLIBC_2_3_2 +# define GLIBC_2_3_2 GLIBC_2_9 +# include_next <pthread_cond_wait.c> +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/pthread_mutex_cond_lock.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/pthread_mutex_cond_lock.c
unix/sysv/linux/hppa/nptl/pthread_mutex_cond_lock.c new file +14 -0
@@ -0,0 +1,14 @@ +#include <pthreadP.h> + +#define LLL_MUTEX_LOCK (mutex) \ + lll_cond_lock ((mutex)->__data.__lock, PTHREAD_MUTEX_PSHARED (mutex)) +#define LLL_MUTEX_TRYLOCK (mutex) \ + lll_cond_trylock ((mutex)->__data.__lock) +#define LLL_ROBUST_MUTEX_LOCK (mutex, id) \ + lll_robust_cond_lock ((mutex)->__data.__lock, id, \ + PTHREAD_ROBUST_MUTEX_PSHARED (mutex)) +#define __pthread_mutex_lock __pthread_mutex_cond_lock +#define __pthread_mutex_lock_full __pthread_mutex_cond_lock_full +#define NO_INCR + +#include <nptl/pthread_mutex_lock.c>
Index: sysdeps/unix/sysv/linux/hppa/nptl/pthread_mutex_destroy.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/pthread_mutex_destroy.c
unix/sysv/linux/hppa/nptl/pthread_mutex_destroy.c new file +36 -0
@@ -0,0 +1,36 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#ifndef INCLUDED_SELF +# define INCLUDED_SELF +# include <pthread_mutex_destroy.c> +#else +# include <shlib-compat.h> +# include <libc-symbols.h> +# include "pthreadP.h" +# undef strong_alias +# define strong_alias (name, aliasname) +# include_next <pthread_mutex_destroy.c> +# undef strong_alias +# define strong_alias (name, aliasname) _strong_alias(name, aliasname) +versioned_symbol (libpthread, __pthread_mutex_destroy, + pthread_mutex_destroy,GLIBC_2_9 ); +INTDEF(__pthread_mutex_destroy) +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/pthread_mutex_init.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/pthread_mutex_init.c
unix/sysv/linux/hppa/nptl/pthread_mutex_init.c new file +36 -0
@@ -0,0 +1,36 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. */ + +#ifndef INCLUDED_SELF +# define INCLUDED_SELF +# include <pthread_mutex_init.c> +#else +# include <shlib-compat.h> +# include <libc-symbols.h> +# include "pthreadP.h" +# undef strong_alias +# define strong_alias (name, aliasname) +# include_next <pthread_mutex_init.c> +# undef strong_alias +# define strong_alias (name, aliasname) _strong_alias(name, aliasname) +versioned_symbol (libpthread, __pthread_mutex_init, + pthread_mutex_init,GLIBC_2_9 ); +INTDEF(__pthread_mutex_init) +#endif +
Index: sysdeps/unix/sysv/linux/hppa/nptl/pthread_mutex_lock.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/pthread_mutex_lock.c
unix/sysv/linux/hppa/nptl/pthread_mutex_lock.c new file +40 -0
@@ -0,0 +1,40 @@ +/* Copyright (C) 2009 Free Software Foundation, Inc. +This file is part of the GNU C Library. +Contributed by Carlos O'Donell <[email protected]>, 2009. + +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. +
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Index: sysdeps/unix/sysv/linux/hppa/nptl/pthread_mutex_timedlock.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/pthread_mutex_timedlock.c
unix/sysv/linux/hppa/nptl/pthread_mutex_timedlock.c new file +38 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Index: sysdeps/unix/sysv/linux/hppa/nptl/pthread_mutex_trylock.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/pthread_mutex_trylock.c
unix/sysv/linux/hppa/nptl/pthread_mutex_trylock.c new file +35 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Index: sysdeps/unix/sysv/linux/hppa/nptl/pthread_mutex_unlock.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/pthread_mutex_unlock.c
unix/sysv/linux/hppa/nptl/pthread_mutex_unlock.c new file +36 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Index: sysdeps/unix/sysv/linux/hppa/nptl/pthread_rwlock_destroy.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/pthread_rwlock_destroy.c
unix/sysv/linux/hppa/nptl/pthread_rwlock_destroy.c new file +35 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Index: sysdeps/unix/sysv/linux/hppa/nptl/pthread_rwlock_init.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/pthread_rwlock_init.c
unix/sysv/linux/hppa/nptl/pthread_rwlock_init.c new file +35 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Index: sysdeps/unix/sysv/linux/hppa/nptl/pthread_rwlock_rdlock.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/pthread_rwlock_rdlock.c
unix/sysv/linux/hppa/nptl/pthread_rwlock_rdlock.c new file +40 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Index: sysdeps/unix/sysv/linux/hppa/nptl/pthread_rwlock_timedrdlock.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/pthread_rwlock_timedrdlock.c
unix/sysv/linux/hppa/nptl/pthread_rwlock_timedrdlock.c new file +38 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Index: sysdeps/unix/sysv/linux/hppa/nptl/pthread_rwlock_timedwrlock.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/pthread_rwlock_timedwrlock.c
unix/sysv/linux/hppa/nptl/pthread_rwlock_timedwrlock.c new file +38 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Index: sysdeps/unix/sysv/linux/hppa/nptl/pthread_rwlock_tryrdlock.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/pthread_rwlock_tryrdlock.c
unix/sysv/linux/hppa/nptl/pthread_rwlock_tryrdlock.c new file +35 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Index: sysdeps/unix/sysv/linux/hppa/nptl/pthread_rwlock_trywrlock.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/pthread_rwlock_trywrlock.c
unix/sysv/linux/hppa/nptl/pthread_rwlock_trywrlock.c new file +35 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Index: sysdeps/unix/sysv/linux/hppa/nptl/pthread_rwlock_unlock.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/pthread_rwlock_unlock.c
unix/sysv/linux/hppa/nptl/pthread_rwlock_unlock.c new file +40 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Index: sysdeps/unix/sysv/linux/hppa/nptl/pthread_rwlock_wrlock.c
===================================================================
RCS file: sysdeps/unix/sysv/linux/hppa/nptl/pthread_rwlock_wrlock.c
unix/sysv/linux/hppa/nptl/pthread_rwlock_wrlock.c new file +40 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.