"read" bug

Arnaud Bouis abouis@cr2a-di.fr
Wed Jun 30 22:10:00 GMT 1999


Takayuki Tamura a écrit :

> "cat" uses read(), so it's working.
>
> Now, give us more detailed information on how you built the program.

Takayuki,
I'm not sure I 'll give useful info, but here is how I did:

I wrote a test_cygwin.c file with my favorite text editor, and compiled
it under bash-2.02.
I used GNU gcc to compile it (cc src/test_cygwin.c). I got this compiler
from the
latest "full" tool package proposed at all the Cygwin ftp mirror sites.
I then ran the resulting a.exe under a DOS shell.

The strangest is that, after I have opened the file, I can write() to it
successfully (if I use the O_RDWR flag), but not read().

Cheers,
Arnaud


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list