mailing list of musl libc
 help / color / mirror / code / Atom feed
50b07df9b946fc0d82f2e4c8ddb0984c448a223e blob 235 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 
#include <sys/random.h>
#include "syscall.h"

ssize_t getrandom(void *buf, size_t buflen, unsigned int flags)
{
#ifdef SYS_getrandom
	return syscall_cp(SYS_getrandom, buf, buflen, flags);
#else
	return __syscall_ret(-ENOSYS);
#endif
}
debug log:

solving 50b07df9 ...
found 50b07df9 in https://inbox.vuxu.org/musl/20180101203123.12816-1-hauke@hauke-m.de/

applying [1/1] https://inbox.vuxu.org/musl/20180101203123.12816-1-hauke@hauke-m.de/
diff --git a/src/linux/getrandom.c b/src/linux/getrandom.c
new file mode 100644
index 00000000..50b07df9

Checking patch src/linux/getrandom.c...
Applied patch src/linux/getrandom.c cleanly.

index at:
100644 50b07df9b946fc0d82f2e4c8ddb0984c448a223e	src/linux/getrandom.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).