xref: /llvm-project/libc/include/llvm-libc-macros/linux/sys-random-macros.h (revision 330793c91d08e6ac60334e4813746db898b9407e)
19eb11856SSchrodinger ZHU Yifan //===-- Definition of macros from sys/random.h ----------------------------===//
29eb11856SSchrodinger ZHU Yifan //
39eb11856SSchrodinger ZHU Yifan // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
49eb11856SSchrodinger ZHU Yifan // See https://llvm.org/LICENSE.txt for license information.
59eb11856SSchrodinger ZHU Yifan // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
69eb11856SSchrodinger ZHU Yifan //
79eb11856SSchrodinger ZHU Yifan //===----------------------------------------------------------------------===//
89eb11856SSchrodinger ZHU Yifan 
9*330793c9SNick Desaulniers #ifndef LLVM_LIBC_MACROS_LINUX_SYS_RANDOM_MACROS_H
10*330793c9SNick Desaulniers #define LLVM_LIBC_MACROS_LINUX_SYS_RANDOM_MACROS_H
119eb11856SSchrodinger ZHU Yifan 
129eb11856SSchrodinger ZHU Yifan // Getrandom flags
139eb11856SSchrodinger ZHU Yifan #define GRND_RANDOM 0x0001
149eb11856SSchrodinger ZHU Yifan #define GRND_NONBLOCK 0x0002
159eb11856SSchrodinger ZHU Yifan #define GRND_INSECURE 0x0004
169eb11856SSchrodinger ZHU Yifan 
17*330793c9SNick Desaulniers #endif // LLVM_LIBC_MACROS_LINUX_SYS_RANDOM_MACROS_H
18