Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2016-03-23 01:50:48 +0300
committerJoel Sherrill <joel@rtems.org>2016-03-29 06:39:50 +0300
commitecf453f9635fb278cff4d4bae21a1e249313b817 (patch)
tree691716a58754527b45dd04f53f36731b12596899 /winsup
parenta0c477242996403344a0b3c46e6d4645a3fa672c (diff)
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 'winsup')
-rw-r--r--winsup/cygwin/include/cygwin/stdlib.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/winsup/cygwin/include/cygwin/stdlib.h b/winsup/cygwin/include/cygwin/stdlib.h
index 002a90433..2318764ab 100644
--- a/winsup/cygwin/include/cygwin/stdlib.h
+++ b/winsup/cygwin/include/cygwin/stdlib.h
@@ -28,12 +28,6 @@ char *canonicalize_file_name (const char *);
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112
int unsetenv (const char *);
#endif
-#if __BSD_VISIBLE || __SVID_SOURCE || __XSI_VISIBLE >= 4
-char *initstate (unsigned seed, char *state, size_t size);
-long random (void);
-char *setstate (const char *state);
-void srandom (unsigned);
-#endif
#if __XSI_VISIBLE
char *ptsname (int);
int grantpt (int);