Issue #13103 has been reported by Eric Wong.

----------------------------------------
Feature #13103: [PATCH] random.c: use "__NR_" syscall prefix on Linux (instead of "SYS_")
https://bugs.ruby-lang.org/issues/13103

* Author: Eric Wong
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
[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--------------------------------
0001-random.c-fill_random_bytes_syscall-use-__NR_-prefix-.patch (1.38 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>