summaryrefslogtreecommitdiff
path: root/cpukit/libcsupport/src/arc4random_getentropy_fail.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/arc4random_getentropy_fail.c')
-rw-r--r--cpukit/libcsupport/src/arc4random_getentropy_fail.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/arc4random_getentropy_fail.c b/cpukit/libcsupport/src/arc4random_getentropy_fail.c
new file mode 100644
index 0000000000..88aa1ca328
--- /dev/null
+++ b/cpukit/libcsupport/src/arc4random_getentropy_fail.c
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2017 embedded brains GmbH. All rights reserved.
+ *
+ * embedded brains GmbH
+ * Dornierstr. 4
+ * 82178 Puchheim
+ * Germany
+ * <rtems@embedded-brains.de>
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#include <machine/_arc4random.h>
+#include <rtems/score/interr.h>
+
+void _arc4random_getentropy_fail( void )
+{
+ _Internal_error( INTERNAL_ERROR_ARC4RANDOM_GETENTROPY_FAIL );
+}