Project

General

Profile

Actions

Feature #13103

open

[PATCH] random.c: use "__NR_" syscall prefix on Linux (instead of "SYS_")

Added by normalperson (Eric Wong) about 7 years ago. Updated about 7 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:78972]

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

Also available in: Atom PDF

Like0
Like0Like0Like0