* sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with
authorRoland McGrath <roland@gnu.org>
Thu, 23 Aug 2001 06:03:42 +0000 (06:03 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 23 Aug 2001 06:03:42 +0000 (06:03 +0000)
commitc12aa8015699d66a193c3c183b4f1d1a72bb92c1
treea20c1864b74c8471aa7aaf675da180546b16c537
parent8179dcc10808cf2a515cf19d445789193a763ec4
* sysdeps/generic/ldsodefs.h (_dl_load_lock): Declare it here with

__libc_lock_define_recursive.
* elf/dl-open.c: Don't declare it here any more.
* elf/dl-close.c: Likewise.
* elf/dl-lookup.c: Likewise.
* elf/dl-iteratephdr.c: Likewise.
* elf/dl-lookup.c (add_dependency): Use __libc_lock_lock_recursive and
__libc_lock_unlock_recursive.
* elf/dl-close.c (_dl_close): Likewise
* elf/dl-iteratephdr.c (__dl_iterate_phdr): Likewise
* elf/dl-open.c (_dl_open): Likewise

* sysdeps/generic/bits/libc-lock.h
(__libc_lock_define_recursive): New macro.
* sysdeps/generic/bits/stdio-lock.h (_IO_lock_t): Use it.
(_IO_lock_lock): Use __libc_lock_lock_recursive.
(_IO_lock_unlock): Use __libc_lock_unlock_recursive.
13 files changed:
ChangeLog
bits/libc-lock.h
bits/stdio-lock.h
elf/dl-close.c
elf/dl-iteratephdr.c
elf/dl-lookup.c
elf/dl-open.c
linuxthreads/ChangeLog
linuxthreads/sysdeps/pthread/bits/libc-lock.h
linuxthreads/sysdeps/pthread/bits/stdio-lock.h
sysdeps/generic/bits/libc-lock.h
sysdeps/generic/bits/stdio-lock.h
sysdeps/generic/ldsodefs.h