delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/30/03:39:54

Date: Tue, 30 Dec 1997 10:37:09 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Thomas Demmer <demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De>
cc: djgpp AT delorie DOT com
Subject: Re: LD looks at zip drive
In-Reply-To: <34A8A596.1F44B711@LSTM.Ruhr-UNI-Bochum.De>
Message-ID: <Pine.SUN.3.91.971230103338.577Q-100000@is>
MIME-Version: 1.0

On Tue, 30 Dec 1997, Thomas Demmer wrote:

> If I recall correctly, ld performs some stat()ing of the library path,
> to see if it is contains symbolic links and other Unix'y issues.
> So stat() has to check if some drives exist, or if they are mapped
> to network drives. Much the same will happen to you if you run
> df to find out some information about your drives. Eli can probably
> tell you a lot more of the guts of stat() and when this effect happens.

AFAIK, `stat' never accesses any drives but the current and the one which
is a part of the file name passed as argument to `stat'.  Since people
claim that the zip drive is not used for any DJGPP stuff, it doesn't seem
to be the case here. 

`df' (and the underlying function `getmntent') indeed access all drives, 
but `ld' doesn't call it AFAIK.  Anyway, if all drives were accessed, 
you'd see the floppies (and the CD drive, if any) accessed as well.

- Raw text -


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