glibc/sysdeps/mach
Xi Ruoyao 5a85786a90
Make __getrandom_nocancel set errno and add a _nostatus version
The __getrandom_nocancel function returns errors as negative values
instead of errno.  This is inconsistent with other _nocancel functions
and it breaks "TEMP_FAILURE_RETRY (__getrandom_nocancel (p, n, 0))" in
__arc4random_buf.  Use INLINE_SYSCALL_CALL instead of
INTERNAL_SYSCALL_CALL to fix this issue.

But __getrandom_nocancel has been avoiding from touching errno for a
reason, see BZ 29624.  So add a __getrandom_nocancel_nostatus function
and use it in tcache_key_initialize.

Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
2024-01-12 14:23:11 +01:00
..
htl Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
hurd Make __getrandom_nocancel set errno and add a _nostatus version 2024-01-12 14:23:11 +01:00
i386 Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
include Define __mig_strlen to support dynamically sized strings in hurd RPCs 2023-05-01 02:24:04 +02:00
sys Installed-header hygiene (BZ#20366): obsolete BSD u_* types. 2016-09-23 08:43:56 -04:00
x86 mach: Drop SNARF_ARGS macro 2024-01-03 21:59:55 +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 2024-01-01 10:53:40 -08:00
adjtime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
clock_gettime.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
clock_nanosleep.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
configure configure: Use autoconf 2.71 2023-07-17 10:08:10 -04:00
configure.ac mach: Fix installing mach_i386.h 2023-05-23 01:47:05 +02:00
getloadavg.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
getpagesize.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
getsysstats.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
libc-lock.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
libmachuser.abilist hurd: add base abilist files 2018-01-28 17:26:35 +01:00
mach_rpc.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
Makefile Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
mprotect.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
msync.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
munmap.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
pagecopy.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
readonly-area.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
sched_yield.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
sleep.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
strerror_l.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
Subdirs * Makefile (subdir-target-args): New variable. 2006-02-28 07:11:04 +00:00
sysdep.h mach: Drop SNARF_ARGS macro 2024-01-03 21:59:55 +01:00
thread_state.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
usleep.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
xpg-strerror.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00