This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: gcc for WinNT
- To: "Ron G. Minnich" <rminnich at sarnoff dot com>
- Subject: Re: gcc for WinNT
- From: Jim Balter <jqb at netcom dot com>
- Date: Fri, 07 Mar 1997 12:19:07 -0800
- CC: Leong Kok Yong <kokyong at irdu dot nus dot sg>, gnu-win32 at cygnus dot com
- Organization: JQB Enterprises
- References: <Pine.SUN.3.91.970307080553.29823B-100000@terra>
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
"gnu-win32-request@cygnus.com" with one line of text: "help".