glibc/sysdeps/mach
Samuel Thibault 67a78072e2 hurd: clean fd and port on thread cancel
HURD_*PORT_USE link fd and port with a stack-stored structure, so on
thread cancel we need to cleanup this.

* hurd/fd-cleanup.c: New file.
* hurd/port-cleanup.c (_hurd_port_use_cleanup): New function.
* hurd/Makefile (routines): Add fd-cleanup.
* sysdeps/hurd/include/hurd.h (__USEPORT_CANCEL): New macro.
* sysdeps/hurd/include/hurd/fd.h (_hurd_fd_port_use_data): New
structure.
(_hurd_fd_port_use_cleanup): New prototype.
(HURD_DPORT_USE_CANCEL, HURD_FD_PORT_USE_CANCEL): New macros.
* sysdeps/hurd/include/hurd/port.h (_hurd_port_use_data): New structure.
(_hurd_port_use_cleanup): New prototype.
(HURD_PORT_USE_CANCEL): New macro.
* hurd/hurd/fd.h (HURD_FD_PORT_USE): Also refer to HURD_FD_PORT_USE_CANCEL.
* hurd/hurd.h (__USEPORT): Also refer to __USEPORT_CANCEL.
* hurd/hurd/port.h (HURD_PORT_USE): Also refer to HURD_PORT_USE_CANCEL.

* hurd/fd-read.c (_hurd_fd_read): Call HURD_FD_PORT_USE_CANCEL instead
of HURD_FD_PORT_USE.
* hurd/fd-write.c (_hurd_fd_write): Likewise.
* sysdeps/mach/hurd/send.c (__send): Call HURD_DPORT_USE_CANCEL instead
of HURD_DPORT_USE.
* sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Likewise.
* sysdeps/mach/hurd/sendto.c (__sendto): Likewise.
* sysdeps/mach/hurd/recv.c (__recv): Likewise.
* sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
* sysdeps/mach/hurd/recvmsg.c (__libc_recvmsg): Call __USEPORT_CANCEL
instead of __USEPORT, and HURD_DPORT_USE_CANCEL instead of
HURD_DPORT_USE.
2020-06-28 00:38:46 +00:00
..
htl hurd: Add __pthread_spin_wait and use it 2020-02-11 00:32:44 +01:00
hurd hurd: clean fd and port on thread cancel 2020-06-28 00:38:46 +00:00
i386 Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
include hurd: Fix installed-headers tests 2018-07-20 03:28:08 +02:00
sys Installed-header hygiene (BZ#20366): obsolete BSD u_* types. 2016-09-23 08:43:56 -04:00
_strerror.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
adjtime.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
clock_gettime.c y2038: hurd: Provide __clock_gettime64 function 2020-05-05 18:45:14 +02:00
clock_nanosleep.c hurd: Make nanosleep a cancellation point 2020-02-10 01:03:53 +00:00
configure hurd: Build stubs for new gnumach.defs 2018-01-28 19:38:29 +01:00
configure.ac hurd: Build stubs for new gnumach.defs 2018-01-28 19:38:29 +01:00
getloadavg.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
getpagesize.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
getsysstats.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
libc-lock.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
libmachuser.abilist hurd: add base abilist files 2018-01-28 17:26:35 +01:00
Makefile Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
mprotect.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
msync.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
munmap.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pagecopy.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
readonly-area.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
sched_yield.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
sleep.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strerror_l.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Subdirs * Makefile (subdir-target-args): New variable. 2006-02-28 07:11:04 +00:00
sysdep.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
thread_state.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
usleep.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
xpg-strerror.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00