]> sourceware.org Git - glibc.git/commit
hurd: Make write and pwrite64 cancellation points
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 14 Jun 2020 15:50:44 +0000 (15:50 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 14 Jun 2020 15:53:21 +0000 (15:53 +0000)
commit662de0889a040e3ebeefcfdde547edc8a11f87d7
tree6fe6a2490e6a9b9e08b01b2a62fafcf67a220cc6
parent76fe4ef4be842e78e175a200f7afa4a567b57db2
hurd: Make write and pwrite64 cancellation points

and add _nocancel variants.

* sysdeps/mach/hurd/write.c (__libc_write): Call __write_nocancel
surrounded by enabling async cancel, to replace implementation moved
to...
* sysdeps/mach/hurd/write_nocancel.c (__write_nocancel): ... here.
* sysdeps/mach/hurd/pwrite64.c (__libc_pwrite64): Call
__pwrite64_nocancel surrounded by enabling async cancel, to replace
implementation moved to...
* sysdeps/mach/hurd/pwrite64_nocancel.c (__pwrite64_nocancel): ... here.
* sysdeps/mach/hurd/Makefile (sysdep_routines): Add write_nocancel and
pwrite64_nocancel.
* sysdeps/mach/hurd/not-cancel.h (__write_nocancel,
__pwrite64_nocancel): Replace macros with prototypes with a hidden proto on
libc.

* sysdeps/mach/hurd/dl-sysdep.c (__write_nocancel): New alias, check
that it is not hidden.
* sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add __write_nocancel.
(ld.GLIBC_PRIVATE): Add __write_nocancel.
* sysdeps/mach/hurd/i386/localplt.data (__write_nocancel): Add
reference.
sysdeps/mach/hurd/Makefile
sysdeps/mach/hurd/Versions
sysdeps/mach/hurd/dl-sysdep.c
sysdeps/mach/hurd/i386/localplt.data
sysdeps/mach/hurd/not-cancel.h
sysdeps/mach/hurd/pwrite64.c
sysdeps/mach/hurd/pwrite64_nocancel.c [new file with mode: 0644]
sysdeps/mach/hurd/write.c
sysdeps/mach/hurd/write_nocancel.c [new file with mode: 0644]
This page took 0.040403 seconds and 5 git commands to generate.