Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/include/sys/random.h')
-rw-r--r--winsup/cygwin/include/sys/random.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/winsup/cygwin/include/sys/random.h b/winsup/cygwin/include/sys/random.h
new file mode 100644
index 000000000..5422718a5
--- /dev/null
+++ b/winsup/cygwin/include/sys/random.h
@@ -0,0 +1,29 @@
+/* sys/random.h header file for Cygwin.
+
+This file is part of Cygwin.
+
+This software is a copyrighted work licensed under the terms of the
+Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */
+
+#ifndef _SYS_RANDOM_H
+#define _SYS_RANDOM_H
+
+#include <_ansi.h>
+#include <sys/types.h>
+
+/* getrandom flags */
+#define GRND_NONBLOCK 1
+#define GRND_RANDOM 2
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ssize_t getrandom (void *__ptr, size_t __len, unsigned int __flags);
+int getentropy (void *__ptr, size_t __len);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _SYS_RANDOM_H */