Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Fri, 5 Nov 2004 13:08:12 -0500
From: Christopher Faylor <cgf-no-personal-reply-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Binary read on textmode mount
Message-ID: <20041105180812.GD25396@trixie.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <Pine.CYG.4.58.0411051050240.3688@Crunch.bcgssbd.sciatl.com> <20041105164033.9CEF11B3FA@cgf.cx> <Pine.CYG.4.58.0411051258430.3688@Crunch.bcgssbd.sciatl.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.CYG.4.58.0411051258430.3688@Crunch.bcgssbd.sciatl.com>
User-Agent: Mutt/1.4.1i

On Fri, Nov 05, 2004 at 01:00:03PM -0500, Shaffer, Kenneth wrote:
>I see the problem now...  O_BINARY is 0x8000 on mingw and 0x10000 in
>cygwin and I needed a header file from cygwin and use the -I option
>which brought in the wrong fcntl.h ....  Sigh.

You are really asking for trouble.  The fact that you needed to go out
of your way to include a cygwin header file in a windows program should
be a clue to a simple fact: you shouldn't use header files from cygwin
with windows programs.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

