www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/05/16/08:18:06

Date: Sun, 16 May 1999 14:15:08 +0200
From: Frank Heckenbach <frank AT tim DOT gerwinski DOT de>
Message-Id: <53B0C02D.19990516141508.FOO-155E.frank@goedel.fjf.gnu.de>
X-Mailer: smtphack 0.3.4 by Jan Andres
To: eliz AT is DOT elta DOT co DOT il, djgpp-workers AT delorie DOT com
Subject: Re: realpath()
Reply-To: djgpp-workers AT delorie DOT com

> > call _fixpath (with the same 2 arguments that it takes)
> > check if the resulting path exists
> > if so, return it (i.e., the second parameter resolved_path)
> > otherwise:
> > find the first component that does not exist
> > truncate resolved_path after that component
> 
> I don't see this truncation described in the man page of the Unix box 
> that I can access (Solaris 2.5).  Where did you see it?

The Linux man page says:

: RETURN VALUE
:        If there  is  no  error,  it  returns  a  pointer  to  the
:        resolved_path.
:
:        Otherwise   it  returns  a  NULL  pointer  and  places  in
:        resolved_path the absolute pathname of the path  component
:        which  could not be resolved. The global variable errno is
:        set to indicate the error.

However, I don't actually need this behaviour. I thought it was part
of the "standard" functionality of realpath(), but if it isn't on
other systems, you probably don't need to implement it on DJGPP.

Frank

--
Frank Heckenbach, frank AT fjf DOT gnu DOT de
http://fjf.gnu.de/
PGP and GPG keys: http://fjf.gnu.de/plan

- Raw text -


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