summaryrefslogtreecommitdiff
path: root/usr/src/head/stdlib.h
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2014-12-26 02:46:52 +0000
committerRobert Mustacchi <rm@joyent.com>2015-02-15 00:36:58 +0000
commitf31c6fa33bcc9a608ce6f9ffd671ffc2b65a30ef (patch)
tree804c1aad78118d760e083f79a0f411894272488f /usr/src/head/stdlib.h
parentd34c3434a6ead24ec3e41daebf60ff85376c9e47 (diff)
downloadillumos-joyent-f31c6fa33bcc9a608ce6f9ffd671ffc2b65a30ef.tar.gz
OS-3845 want arc4random(3C) suite
OS-3846 want getentropy(3C) OS-3847 want getrandom(2) OS-3848 want explicit_bzero(3C) OS-3843 want MC_INHERIT_ZERO OS-3844 uuid_generate can leak its cache in edge conditions Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com> Reviewed by: Joshua M. Clulow <josh@sysmgr.org>
Diffstat (limited to 'usr/src/head/stdlib.h')
-rw-r--r--usr/src/head/stdlib.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/usr/src/head/stdlib.h b/usr/src/head/stdlib.h
index 4aaee3ca30..a9b55e5acb 100644
--- a/usr/src/head/stdlib.h
+++ b/usr/src/head/stdlib.h
@@ -260,6 +260,17 @@ extern char *ulltostr(unsigned long long, char *);
#endif /* defined(__EXTENSIONS__) || !defined(_STRICT_STDC) ... */
+/* OpenBSD compatibility functions */
+#if !defined(_STRICT_SYMBOLS)
+
+#include <inttypes.h>
+extern uint32_t arc4random(void);
+extern void arc4random_buf(void *, size_t);
+extern uint32_t arc4random_uniform(uint32_t);
+
+#endif /* !_STRICT_SYBMOLS */
+
+
#ifdef __cplusplus
}
#endif