delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-Id: | <4.3.1.2.20010115144121.02316898@pop.ma.ultranet.com> |
X-Sender: | lhall AT pop DOT ma DOT ultranet DOT com |
X-Mailer: | QUALCOMM Windows Eudora Version 4.3.1 |
Date: | Mon, 15 Jan 2001 14:49:06 -0500 |
To: | "Joey Mukherjee" <joey AT swri DOT org>, <cygwin AT sources DOT redhat DOT com> |
From: | "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com> |
Subject: | Re: Problem with F:/ and /cygdrive/f/ solved! |
In-Reply-To: | <000501c07f27$8a783640$2397a281@marisa.space.swri.edu> |
Mime-Version: | 1.0 |
At 02:15 PM 1/15/2001, Joey Mukherjee wrote: >Thanks for all the help on the F:/ and /cygdrive/f/ difference and as many >had noted, it was indeed the O_BINARY flag which can make the difference. I >did search the FAQ before posting but missed it since the answer was hidden >under the "DOS/Unix to CR/LF" question which I did not think was my problem. > >However, is O_BINARY a standard flag for open? Adding that flag on Solaris >seems to fail in compile since that symbol is not defined or mentioned in >the open man page. I'd hate to add #ifdef around every open... O_BINARY should be standard, but I'm no expert at standards. You could probably track down the precise wording as well as I if you're interested. In any case, there's no need to #ifdef every open call. Simply add O_BINARY and define it as appropriate for the platform you're on, assuming its not already defined, in a header file of your choosing. You can also look for _O_BINARY. >Why is text mode the default for open? Wouldn't one use fopen for text >processing and open for binary? Apparently not. The requirements are historical so trying to make any sense of them is a loosing battle. Don't let that stop you though if you're so inclined!;-) Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 118 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |