[ruby-cvs:64473] normal:r57307 (trunk): random.c (fill_random_bytes_syscall): use "__NR_" prefix on Linux

normal at ruby-lang.org normal at ruby-lang.org
Thu Jan 12 07:38:50 JST 2017

normal	2017-01-12 07:38:50 +0900 (Thu, 12 Jan 2017)

  New Revision: 57307


    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.

  Modified files:

More information about the ruby-cvs mailing list