PetscGetRealPath

Get the path without symbolic links etc. and in absolute form.

Synopsis

int PetscGetRealPath(char * path, char *rpath )
Not Collective

Input Parameter

path -path to resolve

Output Parameter

rpath -resolved path

Notes

rpath is assumed to be of length MAXPATHLEN.

Systems that use the automounter often generate absolute pathsof the form "/tmp_mnt....". However, the automounter will fail tomount this path if it isn't already mounted, so we remove this fromthe head of the line. This may cause problems if, for some reason, /tmp_mnt is valid and not the result of the automounter.

Keywords

system, get, real, path

See Also

PetscGetFullPath()

Location: src/sys/src/fileiogrpath.c
System Index
Table of Contents