[PATCH v3] getrandom system call wrapper [BZ #17252]
Paul Eggert
eggert@cs.ucla.edu
Fri Oct 7 23:00:00 GMT 2016
On 09/12/2016 06:48 AM, Florian Weimer wrote:
> +int getrandom (void *__buffer, size_t __length, unsigned int __flags)
> + __wur;
In looking into implementing a Gnulib approximation to or wrapper for
the getrandom proposal, I noticed that the most recent (Sept. 12)
version the proposed getrandom returns int (like Solaris 11), whereas
the previous version (Sept. 8) returned ssize_t (like 'read'). From the
GNU point of view ssize_t makes more sense, as it avoids an arbitrary 2
GiB limit on 64-bit hosts. I don't recall this change being discussed so
I thought I'd ask what's up.
More information about the Libc-alpha
mailing list