summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib/stdlib.tex
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2016-03-22 17:50:48 -0500
committerJoel Sherrill <joel@rtems.org>2016-03-28 22:39:50 -0500
commitecf453f9635fb278cff4d4bae21a1e249313b817 (patch)
tree691716a58754527b45dd04f53f36731b12596899 /newlib/libc/stdlib/stdlib.tex
parenta0c477242996403344a0b3c46e6d4645a3fa672c (diff)
downloadcygnal-ecf453f9635fb278cff4d4bae21a1e249313b817.tar.gz
cygnal-ecf453f9635fb278cff4d4bae21a1e249313b817.tar.bz2
cygnal-ecf453f9635fb278cff4d4bae21a1e249313b817.zip
Add simple versions of random() and srandom()
Prototypes also added for initstate() and setstate() but they were not implemented in the shared newlib code. * newlib/libc/include/cygwin/stdlib.h: Prototypes added. * winsup/cygwin/include/cygwin/stdlib.h: Prototypes removed. * newlib/libc/stdlib/random.c: New file. * newlib/libc/machine/epiphany/machine/stdlib.h: Removed * newlib/libc/stdlib/Makefile.am: Added random.c. * newlib/libc/stdlib/stdlib.tex: Added random.def. * newlib/libc/stdlib/Makefile.in: Regenerated.
Diffstat (limited to 'newlib/libc/stdlib/stdlib.tex')
-rw-r--r--newlib/libc/stdlib/stdlib.tex4
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/stdlib/stdlib.tex b/newlib/libc/stdlib/stdlib.tex
index 53f0b9c14..75d80f4d6 100644
--- a/newlib/libc/stdlib/stdlib.tex
+++ b/newlib/libc/stdlib/stdlib.tex
@@ -38,6 +38,7 @@ The corresponding declarations are in the header file @file{stdlib.h}.
* on_exit:: Request execution of functions at program exit
* qsort:: Array sort
* rand:: Pseudo-random numbers
+* random:: Pseudo-random numbers
* rand48:: Uniformly distributed pseudo-random numbers
* rpmatch:: Determine whether response is affirmative or negative
* strtod:: String to double or float
@@ -154,6 +155,9 @@ The corresponding declarations are in the header file @file{stdlib.h}.
@include stdlib/rand.def
@page
+@include stdlib/random.def
+
+@page
@include stdlib/rand48.def
@page