diff options
author | dchagin <dchagin@FreeBSD.org> | 2017-04-23 06:43:52 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2017-04-23 06:43:52 +0000 |
commit | 59a41174517cb9535839b8fb91ffc189c1334587 (patch) | |
tree | 56d8f8741ad73db90e1cb00b50f07c1c61fa9fd4 /sys/compat/linux/linux_misc.h | |
parent | c7a6e462c3bd68f7d5abd3526f03c80694ab0523 (diff) | |
download | FreeBSD-src-59a41174517cb9535839b8fb91ffc189c1334587.zip FreeBSD-src-59a41174517cb9535839b8fb91ffc189c1334587.tar.gz |
MFC r315505:
Implement getrandom() syscall.
Note. GRND_RANDOM option is not supported for now.
Diffstat (limited to 'sys/compat/linux/linux_misc.h')
-rw-r--r-- | sys/compat/linux/linux_misc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_misc.h b/sys/compat/linux/linux_misc.h index 826bd50..98ffd22 100644 --- a/sys/compat/linux/linux_misc.h +++ b/sys/compat/linux/linux_misc.h @@ -145,6 +145,10 @@ extern int stclohz; #define LINUX_RLIM_INFINITY (~0UL) +/* Linux getrandom flags */ +#define LINUX_GRND_NONBLOCK 0x0001 +#define LINUX_GRND_RANDOM 0x0002 + int linux_common_wait(struct thread *td, int pid, int *status, int options, struct rusage *ru); void linux_to_bsd_waitopts(int options, int *bsdopts); |