Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 To: cygwin AT cygwin DOT com Subject: Re: cygwin copy Message-ID: <20021015153503.GA66060182@TheWorld.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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/