Paul Eggert wrote:
> On 5/9/21 7:51 AM, Bruno Haible wrote:
> > if (fd < 0)
> > -return fd;
> > +{
> > + errno = ENOSYS;
> > + return -1;
> > +}
>
> If 'open' fails with errno equal to (say) EINTR or EAGAIN or EMFILE,
> this doesn't mean the opera
On 5/9/21 7:51 AM, Bruno Haible wrote:
if (fd < 0)
-return fd;
+{
+ errno = ENOSYS;
+ return -1;
+}
If 'open' fails with errno equal to (say) EINTR or EAGAIN or EMFILE,
this doesn't mean the operating system lacks a randomness source; it
merel
does not implement a randomness source"
the function should return with errno set to ENOSYS. This is what our unit
test is verifying. So, it's our getrandom() implementation that needs a fix.
2021-05-09 Bruno Haible
getrandom: Fail with ENOSYS when the system has no ran