htl: Fix cleanup support for IO locking
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 14 Jun 2020 14:48:07 +0000 (14:48 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 14 Jun 2020 15:53:04 +0000 (15:53 +0000)
commit76fe4ef4be842e78e175a200f7afa4a567b57db2
tree37761de40868d7b9b558142cc0beb546eac7f20c
parenta50efac19a1eb0a9dc6f5917ae299c0fbbf3c46b
htl: Fix cleanup support for IO locking

* sysdeps/htl/stdio-lock.h: New file, registers locking cleanup to htl.
* sysdeps/htl/libc-lockP.h: Include <libc-lock.h>.
(__libc_cleanup_region_start, __libc_cleanup_end,
__libc_cleanup_region_end): Override macros from <libc-lock.h> with
versions which register cleanup to htl.
(__pthread_get_cleanup_stack): Make reference weak for skipping
registration on in the static non-libpthread case.
sysdeps/htl/libc-lockP.h
sysdeps/htl/stdio-lock.h [new file with mode: 0644]