From: kosaki.motohiro@... Date: 2017-01-11T14:44:42+00:00 Subject: [ruby-core:79056] [Ruby trunk Feature#13103] [PATCH] random.c: use "__NR_" syscall prefix on Linux (instead of "SYS_") Issue #13103 has been updated by Motohiro KOSAKI. SYS_getrandom and __NR_getrandom are defined in different headers. but your patch doesn't change any #include directive. It seems odd. Anyway I have no objection. ---------------------------------------- Feature #13103: [PATCH] random.c: use "__NR_" syscall prefix on Linux (instead of "SYS_") https://bugs.ruby-lang.org/issues/13103#change-62466 * 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: