aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-03-21 08:12:54 +0100
committerCorinna Vinschen <corinna@vinschen.de>2016-03-21 11:12:19 +0100
commit08537d88f625658222ecc63ccf633ed4278b7b3b (patch)
treefa419ab951b36cf5f73d7043243f817ccb5765e8 /winsup
parent2519f0ef0c24e4a0fec98b58e6f3481d5dd57acd (diff)
downloadnewlib-08537d88f625658222ecc63ccf633ed4278b7b3b.zip
newlib-08537d88f625658222ecc63ccf633ed4278b7b3b.tar.gz
newlib-08537d88f625658222ecc63ccf633ed4278b7b3b.tar.bz2
Move arc4random Cygwin only code to Cygwin
Keep the Newlib arc4random.c identical to the OpenBSD upstream version. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/Makefile.in1
-rw-r--r--winsup/cygwin/libc/arc4random_stir.c24
2 files changed, 25 insertions, 0 deletions
diff --git a/winsup/cygwin/Makefile.in b/winsup/cygwin/Makefile.in
index c6131d1..6695488 100644
--- a/winsup/cygwin/Makefile.in
+++ b/winsup/cygwin/Makefile.in
@@ -155,6 +155,7 @@ MT_SAFE_OBJECTS:=
#
DLL_OFILES:= \
advapi32.o \
+ arc4random_stir.o \
assert.o \
autoload.o \
base64.o \
diff --git a/winsup/cygwin/libc/arc4random_stir.c b/winsup/cygwin/libc/arc4random_stir.c
new file mode 100644
index 0000000..1648130
--- /dev/null
+++ b/winsup/cygwin/libc/arc4random_stir.c
@@ -0,0 +1,24 @@
+/* libc/arc4random_stir.c
+
+ Copyright 2016 Red Hat, Inc.
+
+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. */
+
+#include <sys/types.h>
+
+/* Exported functions removed from OpenBSD in the meantime. Keep them,
+ but make them non-functional. They don't return a value anyway. */
+
+void
+arc4random_stir(void)
+{
+}
+
+void
+arc4random_addrandom(u_char *dat, int datlen)
+{
+}