delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/14/18:08:03

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: <5.0.2.1.0.20010214174404.00a8f3f0@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
X-Mailer: QUALCOMM Windows Eudora Version 5.0.2
Date: Wed, 14 Feb 2001 17:51:05 -0500
To: Jean Delvare <delvare AT ensicaen DOT ismra DOT fr>, cygwin AT cygwin DOT com
From: "Larry Hall (RFK Partners Inc)" <lhall AT rfk DOT com>
Subject: Re: file descriptors opened as text files
In-Reply-To: <Pine.SO4.4.05.10102142320470.22033-100000@e3000.ensicaen.i
smra.fr>
References: <20010214172129 DOT C19427 AT redhat DOT com>
Mime-Version: 1.0

At 05:27 PM 2/14/01, Jean Delvare wrote:

>> I doubt that Larry is pretending.  Mount does, of course, control the
>> behavior of any cygwin-compiled program.
>Thats a thing I just can't understand.
>I compile the program. Once compiled, it is supposed to work out of the
>Cygwin system. Anyone can take it together with the dll and run it on a

                                   ^^^^^^^^^^^^^^^^^^^^^^
This is the key phrase.  cygwin1.dll is always required.  If you use it,
it handles your program's interaction with the Windows' system.  Regardless
of whether there is an explicit mount point or not, Cygwin controls the
behavior.  For files, the default treatment is always text, unless a mount
or the program itself indicates otherwise.


>plate-form where cygwin has never been installed, right ?
>Then, there's no mount or anything like that. It's just the way Windows
>(and/or the dll) handles the thing !


No, Cygwin is still there.


>Definitely, there must be something in the whole process I don't
>understand correctly. Does mount change something in Windows' registry
>that any cygwin program can read and then change it's own behavior ?


Yes, mount manipulates the registry.  But if it has never been run, Cygwin
still adopts the default behavior of opening files as text unless the code
says otherwise.

You should check out the user's guide at www.cygwin.com.  It may help 
orient you a bit in this regard.


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

- Raw text -


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