bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: * NEWS: Mention 2011-02-08 change to stdlib.


From: Simon Josefsson
Subject: Re: * NEWS: Mention 2011-02-08 change to stdlib.
Date: Sat, 19 Feb 2011 16:38:28 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux)

Paul Eggert <address@hidden> writes:

> +2011-02-08  stdlib          Unless the random_r module is also used, this
> +                            module no longer guarantees that the following 
> are
> +                            defined: struct random_data, RAND_MAX, random_r,
> +                            srandom_r, initstate_r, setstate_r.
> +

This feels a bit surprising -- usually including a gnulib header module
should make it POSIX compliant, but if stdlib.h is missing RAND_MAX it
wouldn't be a POSIX compliant header replacer.  Have I missed
discussions of changing the gnulib policy here?

(The reason I added struct random_data detection to stdlib.h was IIRC
that I only needed the struct and not the functions, so pulling in the
entire functions would be wasteful for me.)

/Simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]