From: Ito Kazumitsu <[EMAIL PROTECTED]>
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
[email protected]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe