glibc/sysdeps/mach
Sergey Bugaev 41aac87234 hurd: Make _exit work during early boot-up
If any of the early boot-up tasks calls exit () or returns from main (),
terminate it properly instead of crashing on trying to dereference
_hurd_ports and getting forcibly terminated by the kernel.

We sadly cannot make the __USEPORT macro do the check for _hurd_ports
being unset, because it evaluates to the value of the expression
provided as the second argument, and that can be of any type; so there
is no single suitable fallback value for the macro to evaluate to in
case _hurd_ports is unset. Instead, each use site that wants to care for
this case will have to do its own checking.

Checked on x86_64-gnu.

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230429131354.2507443-4-bugaevc@gmail.com>
2023-04-29 16:53:47 +02:00
..
htl Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
hurd hurd: Make _exit work during early boot-up 2023-04-29 16:53:47 +02:00
i386 Define PC, SP and SYSRETURN for hurd x86_64 2023-02-20 01:33:15 +01:00
include hurd: break relocation loop between libc.so and lib{mach,hurd}user.so 2020-11-14 00:52:52 +01:00
sys Installed-header hygiene (BZ#20366): obsolete BSD u_* types. 2016-09-23 08:43:56 -04:00
x86 Define PC, SP and SYSRETURN for hurd x86_64 2023-02-20 01:33:15 +01:00
x86_64 hurd: Set up the basic tree for x86_64-gnu 2023-02-12 16:12:06 +01:00
_strerror.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
adjtime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
clock_gettime.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
clock_nanosleep.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
configure hurd: Stop depending on the default_pager stubs provided by gnumach 2023-04-10 19:01:52 +02:00
configure.ac hurd: Stop depending on the default_pager stubs provided by gnumach 2023-04-10 19:01:52 +02:00
getloadavg.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getpagesize.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
getsysstats.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
libc-lock.h mach, hurd: Drop __libc_lock_self0 2023-04-03 01:02:44 +02:00
libmachuser.abilist hurd: add base abilist files 2018-01-28 17:26:35 +01:00
Makefile Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mprotect.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
msync.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
munmap.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pagecopy.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
readonly-area.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
sched_yield.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
sleep.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
strerror_l.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Subdirs * Makefile (subdir-target-args): New variable. 2006-02-28 07:11:04 +00:00
sysdep.h hurd: Remove __hurd_local_reply_port 2023-04-14 10:31:22 +00:00
thread_state.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
usleep.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
xpg-strerror.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00