From: normalperson@... Date: 2017-01-04T20:05:58+00:00 Subject: [ruby-core:78972] [Ruby trunk Feature#13103] [PATCH] random.c: use "__NR_" syscall prefix on Linux (instead of "SYS_") 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: