Date: Tue, 30 Dec 1997 10:37:09 +0200 (IST) From: Eli Zaretskii To: Thomas Demmer 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.