[kaffe] SecureRandomTest failed

Guilhem Lavaux guilhem at kaffe.org
Sun Jul 24 23:50:57 PDT 2005


Hi,

Ok. The old native code was checking the error code use more basic
functions if ioctl was failing. The TARGET_* layer is just using one way
to test things. I don't know if I must curse it or bless it. Grmbl..
Let's wait for Dalibor's patch and then we'll fix that.

Thank you very much Ito !

Regards,

Guilhem Lavaux.

On Mon, 2005-07-25 at 11:39 +0900, Ito Kazumitsu wrote:
> From: Ito Kazumitsu <kaz at maczuka.gcd.org>
> Subject: Re: [kaffe] SecureRandomTest failed
> Date: Sun, 24 Jul 2005 08:18:31 +0900 (JST)
> 
> > java.io.IOException: Inappropriate ioctl for device
> 
> I am afraid that on FreeBSD, ioctl with FIONREAD cannot
> be used for file IO.
> 
> The following simple program shows errno == 25 (Inappropriate ioctl
> for device).
> 
> #include <sys/ioctl.h>
> #include <sys/filio.h>
> #include <errno.h>
> #include <fcntl.h>
> 
> int main(int argc, char* argv) {
> 
> int n;
> int fd;
> 
> fd = open("test.c", O_RDONLY);
> int rc = ioctl(fd,FIONREAD,&n);
> printf("%d, %d\n", rc, errno);
> 
> }
> 
> _______________________________________________
> kaffe mailing list
> kaffe at kaffe.org
> http://kaffe.org/cgi-bin/mailman/listinfo/kaffe




More information about the kaffe mailing list