hurd: make close a cancellation point

System Internals / glibc - Samuel Thibault [ens-lyon.org] - 28 June 2020 16:34 UTC

and add _nocancel variant.

- sysdeps/mach/hurd/Makefile [io] (sysdep_routines): Add close_nocancel.
- sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE, ld.GLIBC_PRIVATE): Add __close_nocancel.
- sysdeps/mach/hurd/i386/localplt.data (__close_nocancel): Allow PLT.
- sysdeps/mach/hurd/close.c: Include (__libc_close): Surround _hurd_fd_close with enabling async cancel.
- sysdeps/mach/hurd/close_nocancel.c: New file.
- sysdeps/mach/hurd/not-cancel.h (__close_nocancel): Replace macro with declaration with hidden proto.

fd3df63fb6 hurd: make close a cancellation point
sysdeps/mach/hurd/Makefile | 2 +-
sysdeps/mach/hurd/Versions | 2 ++
sysdeps/mach/hurd/close.c | 4 ++++
sysdeps/mach/hurd/close_nocancel.c | 34 ++++++++++++++++++++++++++++++++++
sysdeps/mach/hurd/dl-sysdep.c | 2 ++
sysdeps/mach/hurd/i386/localplt.data | 3 ++-
sysdeps/mach/hurd/not-cancel.h | 9 +++++----
7 files changed, 50 insertions(+), 6 deletions(-)

Upstream: sourceware.org


  • Share