libc: add getrandom(2)
commit09ff424905d5de0b2a21a3960d9756a90b07ba26
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sun, 22 Mar 2015 13:47:29 +0000 (22 14:47 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sun, 22 Mar 2015 13:49:27 +0000 (22 14:49 +0100)
treeb927d20d8fa53c98cc5b08b6826096d43c387d28
parent534f44d53146457b3ca686c47efb9207543b88e1
libc: add getrandom(2)

Introduce a <sys/random.h> for it.

/* FIXME: aren't there a couple of __restrict and const missing ?
 */
extern int getrandom(void *__buf, size_t count, unsigned int flags)
    __nonnull ((1)) __wur;

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Makefile.in
extra/Configs/Config.in
libc/sysdeps/linux/common/Makefile.in
libc/sysdeps/linux/common/bits/kernel-features.h
libc/sysdeps/linux/common/getrandom.c [new file with mode: 0644]
libc/sysdeps/linux/common/stubs.c
libc/sysdeps/linux/common/sys/random.h [new file with mode: 0644]