delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/06/18/10:09:24

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <376A52F6.5A8E5985@cr2a-di.fr>
Date: Fri, 18 Jun 1999 16:08:54 +0200
From: Arnaud Bouis <abouis AT cr2a-di DOT fr>
X-Mailer: Mozilla 4.5 [fr] (WinNT; I)
X-Accept-Language: fr
MIME-Version: 1.0
To: "cygwin AT sourceware DOT cygnus DOT com" <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: "read" bug
References: <376A450E DOT CD9EF13A AT cr2a-di DOT fr> <19990618224300A DOT ttamura AT icc DOT melco DOT co DOT jp>

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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019