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
sys
x86 mach: Drop SNARF_ARGS macro 2024-01-03 21:59:55 +01:00
x86_64
_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.ac
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
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
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