Actions
Feature #13103
open[PATCH] random.c: use "__NR_" syscall prefix on Linux (instead of "SYS_")
Status:
Open
Assignee:
-
Target version:
-
Description
[PATCH] random.c (fill_random_bytes_syscall): use "_NR" prefix on Linux
glibc still does not define the SYS_getrandom alias for
__NR_getrandom in the Linux kernel. However, installing
up-to-date Linux kernel headers (linux-libc-dev >= 3.17 package
on Debian) will get the __NR_getrandom syscall number defined
properly without relying on glibc.
This allows users with a modern kernel+headers to use the getrandom
syscall without waiting on glibc support.
Files
Actions
Like0
Like0Like0Like0