delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/15/14:22:40

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: <000501c07f27$8a783640$2397a281@marisa.space.swri.edu>
From: "Joey Mukherjee" <joey AT swri DOT org>
To: <cygwin AT sources DOT redhat DOT com>
Subject: Problem with F:/ and /cygdrive/f/ solved!
Date: Mon, 15 Jan 2001 13:15:35 -0600
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700

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...

Why is text mode the default for open?  Wouldn't one use fopen for text
processing and open for binary?

Anyway, thanks again!

Joey


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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