malloc: Do not clobber errno on __getrandom_nocancel (BZ #29624)
commit609c9d0951da387cd523b5db42a82d38dabc37c4
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 29 Sep 2022 19:18:06 +0000 (29 16:18 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 30 Sep 2022 18:25:15 +0000 (30 15:25 -0300)
treea9f4e664f78c4d4870d479db5ef467519d015137
parent13db9ee2cb3b77e25f852be7d6952882e1be6f00
malloc: Do not clobber errno on __getrandom_nocancel (BZ #29624)

Use INTERNAL_SYSCALL_CALL instead of INLINE_SYSCALL_CALL.  This
requires emulate the semantic for hurd call (so __arc4random_buf
uses the fallback).

Checked on x86_64-linux-gnu.

Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
stdlib/arc4random.c
sysdeps/mach/hurd/not-cancel.h
sysdeps/unix/sysv/linux/not-cancel.h