diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-06-28 14:27:36 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-06-28 15:11:23 +0000 |
commit | 4cafcd839f8c002c290ec96c64b6d85e87e270e8 (patch) | |
tree | c05a300192173a1d1f3c593534703aaf0a6c374b /sysdeps/mach/hurd/Makefile | |
parent | 67a78072e2891b8b16a7bfb20675844a5854cff1 (diff) | |
download | glibc-4cafcd839f8c002c290ec96c64b6d85e87e270e8.zip glibc-4cafcd839f8c002c290ec96c64b6d85e87e270e8.tar.gz glibc-4cafcd839f8c002c290ec96c64b6d85e87e270e8.tar.bz2 |
hurd: make open and openat cancellation points
and add _nocancel variants.
* sysdeps/mach/hurd/Makefile [io] (sysdep_routines): Add open_nocancel
openat_nocancel.
* sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE, ld.GLIBC_PRIVATE): Add
__open_nocancel.
* sysdeps/mach/hurd/dl-sysdep.c (__open_nocancel): Add alias, check it
is not hidden.
* sysdeps/mach/hurd/i386/localplt.data (__open_nocancel): Allow PLT.
* sysdeps/mach/hurd/not-cancel.h (__open_nocancel, __openat_nocancel:
Replace macros with declarations with hidden proto.
(__open64_nocancel, __openat64_nocancel): Call __open_nocancel and
__openat_nocancel instead of __open64 and __openat64.
* sysdeps/mach/hurd/open.c: Include <sysdep-cancel.h>
(__libc_open): Surround __file_name_lookup with enabling async cancel.
* sysdeps/mach/hurd/openat.c: Likewise.
* sysdeps/mach/hurd/open_nocancel.c,
sysdeps/mach/hurd/openat_nocancel.c: New files.
Diffstat (limited to 'sysdeps/mach/hurd/Makefile')
-rw-r--r-- | sysdeps/mach/hurd/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/Makefile b/sysdeps/mach/hurd/Makefile index edab284..a58e8c1 100644 --- a/sysdeps/mach/hurd/Makefile +++ b/sysdeps/mach/hurd/Makefile @@ -196,7 +196,8 @@ sysdep_routines += cthreads endif ifeq (io, $(subdir)) -sysdep_routines += f_setlk close_nocancel_nostatus read_nocancel \ +sysdep_routines += f_setlk close_nocancel_nostatus \ + open_nocancel openat_nocancel read_nocancel \ pread64_nocancel write_nocancel pwrite64_nocancel endif |