returns the real file name
char realpath (const char file_name, char resolved_name);
resolves all links, symbolic links, and references to ``.'' and ``..'' in
and stores it in
realpath takes as input both relative and absolute path names.
It returns the ``resolved absolute'' name.
resolved_name must be big enough (MAXPATHLEN)
to contain the fully resolved path name.
If there is no error, realpath returns a pointer to the
Otherwise it returns a
pointer and places the name of the offending file in
The global variable
is set to indicate the error.
realpath operates on null-terminated strings.
One should have execute permission on all the directories
in the given and the resolved path.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005