initstate/setstate
Yaakov (Cygwin Ports)
yselkowitz@users.sourceforge.net
Mon May 12 06:52:00 GMT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Apparently cygwin has exported initstate and setstate for over ten years
(see winsup/cygwin/ChangeLog-1997), but I can't find a header definition
for it in 1.5.25-11. POSIX requires these to be declared in <stdlib.h>.
Also, the signatures seem to differ slightly. winsup/cygwin/random.cc
declares these as:
char *initstate(unsigned long seed, char *arg_state, long n);
char *setstate(char *state);
but POSIX requires:
char *initstate(unsigned seed, char *state, size_t size);
char *setstate(const char *state);
Could someone please clarify?
Yaakov
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEAREIAAYFAkgnofYACgkQpiWmPGlmQSNQ7wCguXnKxYpxHY4dDNmmmO/GF5Dz
sosAn09l+y7AJS23MpWBk7ZpciSODDnJ
=GlzA
-----END PGP SIGNATURE-----
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list