mirror of
https://github.com/apache/nuttx.git
synced 2026-08-20 21:18:23 +00:00
libs/libc/getrandom(2): add ORed bit mask definition
Change-Id: I1a805420f3ace0b844452dc126d04534680e96f2 Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
511d65392a
commit
8a7703b2be
1 changed files with 16 additions and 0 deletions
|
|
@ -44,6 +44,22 @@
|
|||
#include <nuttx/config.h>
|
||||
#include <stddef.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/*
|
||||
* Flags for getrandom(2)
|
||||
*
|
||||
* GRND_NONBLOCK Don't block and return EAGAIN instead
|
||||
* GRND_RANDOM No effect
|
||||
* GRND_INSECURE Return non-cryptographic random bytes
|
||||
*/
|
||||
|
||||
#define GRND_NONBLOCK 0x0001
|
||||
#define GRND_RANDOM 0x0002
|
||||
#define GRND_INSECURE 0x0004
|
||||
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue