summaryrefslogtreecommitdiffstats
path: root/include/stdlib.h
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2006-02-25 16:35:30 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2006-02-25 16:35:30 +0000
commit8a8d4b95c50316e31c15b68ed349233d5db28292 (patch)
tree585c088bb8df4739f5db46e63c854477083b9f84 /include/stdlib.h
parent6622bc38bc3ed737fbd41e1c620a2dc27f1376f7 (diff)
downloaduClibc-alpine-8a8d4b95c50316e31c15b68ed349233d5db28292.tar.bz2
uClibc-alpine-8a8d4b95c50316e31c15b68ed349233d5db28292.tar.xz
Merge from trunk.
Diffstat (limited to 'include/stdlib.h')
-rw-r--r--include/stdlib.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 1f0b19b0a..3ed029c07 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -693,10 +693,11 @@ __END_NAMESPACE_C99
#endif
-#if 0 /* defined __USE_SVID || defined __USE_XOPEN_EXTENDED */
+#if defined __USE_SVID || defined __USE_XOPEN_EXTENDED
/* Convert floating point numbers to strings. The returned values are
valid only until another call to the same function. */
+#if 0
/* Convert VALUE to a string with NDIGIT digits and return a pointer to
this. Set *DECPT with the position of the decimal character and *SIGN
with the sign of the number. */
@@ -708,6 +709,7 @@ extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt,
the number. */
extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt,
int *__restrict __sign) __THROW __nonnull ((3, 4)) __wur;
+#endif
/* If possible convert VALUE to a string with NDIGIT significant digits.
Otherwise use exponential representation. The resulting string will
@@ -716,7 +718,7 @@ extern char *gcvt (double __value, int __ndigit, char *__buf)
__THROW __nonnull ((3)) __wur;
-# ifdef __USE_MISC
+# if 0 /*def __USE_MISC*/
/* Long double versions of above functions. */
extern char *qecvt (long double __value, int __ndigit,
int *__restrict __decpt, int *__restrict __sign)
@@ -845,6 +847,13 @@ extern int getloadavg (double __loadavg[], int __nelem)
__THROW __nonnull ((1));
#endif
+#ifdef __UCLIBC_HAS_ARC4RANDOM__
+#include <stdint.h>
+extern uint32_t arc4random(void);
+extern void arc4random_stir(void);
+extern void arc4random_addrandom(unsigned char *, int);
+#endif
+
#endif /* don't just need malloc and calloc */
#undef __need_malloc_and_calloc