stdlib/stdlib.h change to initstate
Andreas Jaeger
aj@suse.de
Thu Feb 24 09:32:00 GMT 2000
>>>>> Ulrich Drepper writes:
Ulrich> Andreas Jaeger <aj@suse.de> writes:
>> But this change is not reflected in the implememtation of these
>> files. Is this required by any standards?
Ulrich> THe patch is indeed needed but I didn't plan to have it in already.
Ulrich> Oh well, I fied the sources now.
There's one more patch needed. I'm appending an untested version.
Ulrich> Thanks,
Ulrich> [PS: the setstate prototype still is not 100% correct but this is a
Ulrich> more complicated problem...]
What's the problem? Could you enlighten us?
Thanks,
Andreas
2000-02-24 Andreas Jaeger <aj@suse.de>
* include/stdlib.h: Correct prototypes to use char * for
statebuf.
--- include/stdlib.h.~1~ Sat Jan 1 10:21:56 2000
+++ include/stdlib.h Thu Feb 24 18:30:08 2000
@@ -10,14 +10,14 @@
#ifndef __Need_M_And_C
extern int32_t __random (void);
extern void __srandom (unsigned int __seed);
-extern void *__initstate (unsigned int __seed, void *__statebuf,
+extern void *__initstate (unsigned int __seed, char *__statebuf,
size_t __statelen);
-extern void *__setstate (void *__statebuf);
+extern void *__setstate (char *__statebuf);
extern int __random_r (struct random_data *__buf, int32_t *__result);
extern int __srandom_r (unsigned int __seed, struct random_data *__buf);
-extern int __initstate_r (unsigned int __seed, void *__statebuf,
+extern int __initstate_r (unsigned int __seed, char *__statebuf,
size_t __statelen, struct random_data *__buf);
-extern int __setstate_r (void *__statebuf, struct random_data *__buf);
+extern int __setstate_r (char *__statebuf, struct random_data *__buf);
extern int __rand_r (unsigned int *__seed);
extern int __erand48_r (unsigned short int __xsubi[3],
struct drand48_data *__buffer, double *__result);
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.rhein-neckar.de
More information about the Libc-hacker
mailing list