freebsd-dev/sys/compat/cloudabi
Ed Schouten 707d98fe2f Implement the CloudABI random_get() system call.
The random_get() system call works similar to getentropy()/getrandom()
on OpenBSD/Linux. It fills a buffer with random data.

This change introduces a new function, read_random_uio(), that is used
to implement read() on the random devices. We can call into this
function from within the CloudABI compatibility layer.

Approved by:	secteam
Reviewed by:	jmg, markm, wblock
Obtained from:	https://github.com/NuxiNL/freebsd
Differential Revision:	https://reviews.freebsd.org/D3053
2015-07-14 18:45:15 +00:00
..
cloudabi_clock.c
cloudabi_fd.c Use FDDUP_NORMAL instead of hardcoding value 0. 2015-07-11 18:53:30 +00:00
cloudabi_file.c
cloudabi_futex.c
cloudabi_mem.c
cloudabi_proc.c Let proc_raise() call into pksignal() directly. 2015-07-14 12:16:14 +00:00
cloudabi_proto.h
cloudabi_random.c Implement the CloudABI random_get() system call. 2015-07-14 18:45:15 +00:00
cloudabi_sock.c
cloudabi_syscalldefs.h
cloudabi_thread.c Implement thread_tcb_set() and thread_yield(). 2015-07-14 15:11:50 +00:00