aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/machine
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/machine
parenta0c477242996403344a0b3c46e6d4645a3fa672c (diff)
downloadnewlib-ecf453f9635fb278cff4d4bae21a1e249313b817.zip
newlib-ecf453f9635fb278cff4d4bae21a1e249313b817.tar.gz
newlib-ecf453f9635fb278cff4d4bae21a1e249313b817.tar.bz2
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/machine')
-rw-r--r--newlib/libc/machine/epiphany/machine/stdlib.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/newlib/libc/machine/epiphany/machine/stdlib.h b/newlib/libc/machine/epiphany/machine/stdlib.h
deleted file mode 100644
index 7ede4dd..0000000
--- a/newlib/libc/machine/epiphany/machine/stdlib.h
+++ /dev/null
@@ -1,17 +0,0 @@
-#ifndef __rtems__
-static __inline__ long int
-random (void)
-{
- extern int rand(void);
-
- return rand ();
-}
-
-static __inline__ void
-srandom (unsigned int seed)
-{
- void srand(unsigned int seed);
-
- srand (seed);
-}
-#endif