delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/15/11:35:15

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 15 Oct 2002 11:35:03 -0400
From: Rick Umali <rgu AT TheWorld DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cygwin copy
Message-ID: <20021015153503.GA66060182@TheWorld.com>
References: <Mahogany-0 DOT 64 DOT 2-8612-20021015-070042 DOT 00 AT ix DOT netcom DOT com> <Pine DOT GSO DOT 4 DOT 44 DOT 0210151032460 DOT 18519-100000 AT slinky DOT cs DOT nyu DOT edu>
Mime-Version: 1.0
In-Reply-To: <Pine.GSO.4.44.0210151032460.18519-100000@slinky.cs.nyu.edu>
User-Agent: Mutt/1.3.28i

Folks:

On Tue, Oct 15, 2002 Igor Pechtchanski wrote:
> On Tue, 15 Oct 2002, Michael A Chase wrote:
> > You could also create restore_mounts.bat the same way and run it in a MSDOS
> > window.  The mount command does not depend on cygwin1.dll and the `mount
> > -m` output should work under MSDOS 'shells' as well as under Cygwin shells.
> 
> As for the bit about mount not depending on cygwin1.dll, it would be
> interesting if this were the case...  And which DLL does it get
> getmntent() from?
> 	Igor

Lately, I was introduced to objdump(1), which answers which DLL
does mount obtain getmntent(). Here's an excerpted session:

% objdump -p /bin/mount.exe
...
The Import Tables (interpreted .idata section contents)
 vma:            Hint    Time      Forward  DLL       First
                 Table   Stamp     Chain    Name      Thunk
 00008000       00008040 00000000 00000000 00008374 000080d0

        DLL Name: cygwin1.dll
        vma:  Hint/Ord Member-Name Bound-To
        815c        8  __errno
        8168       28  __main
...
        8214      782  getmntent
        8220      903  malloc
        822c      924  mount
...
        DLL Name: KERNEL32.dll
        vma:  Hint/Ord Member-Name Bound-To
        82d8      262  GetDriveTypeA
        82e8      297  GetModuleHandleA

Peace. -Rick Umali
 

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

- Raw text -


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