Cannot open file "/dev/urandom" OS Explanation: (errno == 0) Success
Jean-Claude Beaudoin
jean.claude.beaudoin at gmail.com
Mon Apr 20 22:39:01 UTC 2015
On Mon, Apr 20, 2015 at 4:13 PM, Tomas Hlavaty <tom at logand.com> wrote:
> Hi Jean-Claude,
>
> it is not possible to open /dev/urandom:
>
> (with-open-file (s "/dev/urandom" :element-type '(unsigned-byte 8))
> (read-byte s))
>
> Filesystem error with pathname: "/dev/urandom".
> Cannot open file
> OS Explanation: (errno == 0) Success
> [Condition of type SI:OS-FILE-ERROR]
>
> but this works:
>
> (with-open-file (s "/etc/passwd" :element-type '(unsigned-byte 8))
> (read-byte s))
>
>
Yep! It is a bug!
Working on a fix...
Thanks,
JCB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/mkcl-devel/attachments/20150420/320e968e/attachment.html>
More information about the mkcl-devel
mailing list