Subject: Re: gcc for WinNT
From: [email-masked] (Jim Balter)

7 Mar 1997 17:37:02 -0800
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
References: <Pine.SUN.3.91.970307080553.29823B-100000@terra>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.01Gold (WinNT; I)
Original-To: "Ron G. Minnich" <[email-masked]>
Original-CC: Leong Kok Yong <[email-masked]>, [email-masked]
Original-Sender: [email-masked]

Ron G. Minnich wrote:
> 
> On Thu, 6 Mar 1997, Jim Balter wrote:
> > When reading in text mode, cygwin deletes CRs but neglects to read
> > more to fill out the buffer.
> 
> reading in text mode? this is a simple
> int fd = open("file", O_RDONLY);
> fd = read(blah blah)
> 
> How do you control text mode from that? new options or an fcntl?
> ron

open("file", O_RDONLY|O_BINARY)

or

....; setmode(fd, O_BINARY);

or mount -b ...

Time to read the FAQ, methinks.

--
<J Q B>
-
For help on using this list, send a message to
"[email-masked]" with one line of text: "help".