This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: "read" bug


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]