tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: netbsd stdlib.h srandom and initstate declarations incorrect
On Jun 12, 1:04pm, enh%google.com@localhost (enh) wrote:
-- Subject: Re: netbsd stdlib.h srandom and initstate declarations incorrect
| On Thu, Jun 12, 2014 at 11:46 AM, Christos Zoulas
<christos%astron.com@localhost> wrote:
| > In article
<CAJgzZoqGF6i_gHDWXYCBszcp=_L95BqiQ1bH6fmcW4Y36WL1zw%mail.gmail.com@localhost>,
| > enh <enh%google.com@localhost> wrote:
| >>netbsd:
| >>
| >>char *initstate(unsigned long, char *, size_t);
| >>long random(void);
| >>char *setstate(char *);
| >>void srandom(unsigned long);
| >>
| >>POSIX
| >>(http://pubs.opengroup.org/onlinepubs/9699919799/functions/initstate.html):
| >>
| >>char *initstate(unsigned seed, char *state, size_t size);
| >>long random(void);
| >>char *setstate(char *state);
| >>void srandom(unsigned seed);
| >>
| >>(note that the netbsd definitions match the netbsd declarations.)
| >>
| >>freebsd seems to have these wrong too. openbsd has the correct
| >>declarations and definitions.
| >
| > Fixed, thanks!
|
| i see the lib/libc change, but it looks like you missed
| common/lib/libc/stdlib/random.c?
Prolly forgot to commit it.
christos
Home |
Main Index |
Thread Index |
Old Index