www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/04/12:04:06

Message-Id: <m0yWNgn-000S3wC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Organization: INTI
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>, djgpp AT delorie DOT com
Date: Mon, 4 May 1998 13:09:45 +0000
MIME-Version: 1.0
Subject: Re: fixpath problem in Novell drives.
References: <m0yWLyd-000S3rC AT inti DOT gov DOT ar>
In-reply-to: <Pine.SUN.3.91.980504184153.25534A-100000@is>

Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
> On Mon, 4 May 1998, Salvador Eduardo Tropea (SET) wrote:
> 
> > That's why I call truename, the editor can't open twice the same file (can but 
> > is a mess so avoid it). So I pass the name provided by the user to truename 
> > (only when LFN=N) and as the result is ugly I then pass it to fixpath.
> 
> If that is what you need, then just pass the two file names to `stat' and
> compare st_dev and st_ino; `stat' will do the rest for you.  This is the
> standard Unix way of testing two files for equivalence (it also works for
> links), and making DJGPP's `stat' work like this was one of the original
> reasons for writing a new version of `stat' for DJGPP v2.  (Too many Unix
> programs rely on this method, and most other DOS implementations of `stat'
> just return zero in st_ino.)
> 
> I believe that if you use `stat' this way, you won't need to mess with 
> `_truename' and `_fixpath' at all.
 
Ok, I'll see if I can use it, but the user will have a fake name in the top of 
the window.

SET 
------------------------------------ 0 --------------------------------
Visit my home page: http://set-soft.home.ml.org/
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013

- Raw text -


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