Date: Mon, 2 Aug 2004 18:55:38 +0400 From: =?koi8-r?B?8NXIwczY08vJyiDg0snKIOHOxNLFxdfJ3g==?= <pooh@cryptopro.ru> To: <freebsd-threads@freebsd.org> Subject: EAGAIN with libc_r Message-ID: <14716057441580428E48F1266386E0B38236F1@xfiles.cp.ru>
index | next in thread | raw e-mail
Hello!
I try to read data from /dev/fd0 and use code like:
{
char buf[512];
int fd=open("/dev/fd0",O_RDONLY);
printf("%d ",fd);
perror("open");
printf("%d ",read(fd,buf,512));
perror("read");
}
When I compile it without threads, everything works ok. But when I try to do "gcc -pthread ...", or "gcc ... -lc_r" it hangs on read. When I call open() with O_NONBLOCK flag, I receive EAGAIN error on read(), whatever command I use to compile, -lc_r or not. Apparently it's some inner thing concerning floppy device?
Please, help to clear the issue!
Thank You in advance!
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14716057441580428E48F1266386E0B38236F1>
