From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7521 invoked from network); 6 Jun 2001 14:26:16 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 6 Jun 2001 14:26:16 -0000 Received: (qmail 18469 invoked by alias); 6 Jun 2001 14:25:52 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14763 Received: (qmail 18453 invoked from network); 6 Jun 2001 14:25:50 -0000 Date: Wed, 6 Jun 2001 10:25:57 -0400 From: Clint Adams To: zsh-workers@sunsite.dk Subject: Re: autoloading from deleted wordcode digest files Message-ID: <20010606102557.B23921@dman.com> References: <200106061114.NAA24021@beta.informatik.hu-berlin.de> <002501c0ee7a$c63162c0$21c9ca95@mow.siemens.ru> <1010606104439.ZM1317@candle.brasslantern.com> <200106061114.NAA24021@beta.informatik.hu-berlin.de> <200106060947.LAA23791@beta.informatik.hu-berlin.de> <1010606104439.ZM1317@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <1010606104439.ZM1317@candle.brasslantern.com>; from schaefer@candle.brasslantern.com on Wed, Jun 06, 2001 at 10:44:39AM +0000 On Wed, Jun 06, 2001 at 10:44:39AM +0000, Bart Schaefer wrote: > You have it backwards. Clint wants check_dump_file() to search for a > function in the already-mapped files because load_dump_header() fails > if it can't do an open(). Right. > The problem I see with it is that it could cause mysterious violations > of fpath ordering. I guess it wouldn't be so bad if it were only the > fallback case exactly when load_dump_header() can't open(). On Wed, Jun 06, 2001 at 01:14:18PM +0200, Sven Wischnowsky wrote: > Note that check_dump_file() does search mapped files, but only if > try_dump_file() could stat the file to compare st_ino and st_dev. > I think I actually considered saving only the filename in the funcdump > struct and compare that (for the equality test, we'd still need > something like that to find out which is the youngest file). On Wed, Jun 06, 2001 at 03:21:04PM +0400, Andrej Borsenkow wrote: > Will this help? > > int fstat(int fildes, struct stat *buf); I suppose that would also obviate the need for storing the filename in funcdump.