Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: Shankar Unni <shankar@cotagesoft.com>
Subject: Re: What's going on here with directory contents?
Date: Thu, 24 Oct 2002 14:23:17 -0700
Lines: 15
Message-ID: <3DB864C5.5060405@cotagesoft.com>
References: <3DB81476.E6E0B32B@yahoo.com> <009501c27b75$f688dd70$78d96f83@pomello> <3DB82B64.68A8C81C@yahoo.com>
NNTP-Posting-Host: adsl-64-165-207-58.dsl.snfc21.pacbell.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: main.gmane.org 1035494597 17595 64.165.207.58 (24 Oct 2002 21:23:17 GMT)
X-Complaints-To: usenet@main.gmane.org
NNTP-Posting-Date: Thu, 24 Oct 2002 21:23:17 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 (Compact)
X-Accept-Language: en-us, en

On 10/24/2002 10:18 AM, CBFalconer wrote:

> That seems to tell me how to get the effect, but nothing about
> what is going on.  I would expect to see some sort of hidden file
> in ...\usr\bin to cause the effect, but there is nothing there.

Oh, you want to know how mount works..

Well, the "open" cygwin call (and any others that need name resolution) 
go through a special layer in cygwin that does mount point resolution: 
when the prefix of the path matches a mount point, it is replaced with 
the mount expansion, and the name interpretation is resumed.
--
Shankar.




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

