Mail Archives: djgpp-workers/1999/05/16/08:18:06
> > 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 -