| www.delorie.com/archives/browse.cgi | search |
| From: | jqb AT netcom DOT com (Jim Balter) |
| Subject: | Re: gcc for WinNT |
| 7 Mar 1997 17:37:02 -0800 : | |
| Approved: | cygnus DOT gnu-win32 AT cygnus DOT com |
| Distribution: | cygnus |
| Message-ID: | <3320783B.360B.cygnus.gnu-win32@netcom.com> |
| References: | <Pine DOT SUN DOT 3 DOT 91 DOT 970307080553 DOT 29823B-100000 AT terra> |
| Mime-Version: | 1.0 |
| X-Mailer: | Mozilla 3.01Gold (WinNT; I) |
| Original-To: | "Ron G. Minnich" <rminnich AT sarnoff DOT com> |
| Original-CC: | Leong Kok Yong <kokyong AT irdu DOT nus DOT sg>, gnu-win32 AT cygnus DOT com |
| Original-Sender: | owner-gnu-win32 AT cygnus DOT com |
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 AT cygnus DOT com" with one line of text: "help".
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |