gfs_realpath - resolve pathname in Gfarm filesystem
char *gfs_realpath (const char * gfarm_url, char ** resolved_pathp);
gfs_realpath expands a home directory ’~’ and resolves references to
’.’, ’..’ and extra ’/’ characters in the null terminated string
pointed to by gfarm_url and stores the canonicalized absolute pathname
to dynamically allocated memory space whose pointer is returned to
resolved_pathp. It will be necessary to free the dynamically allocated
memory space pointed to by resolved_pathp.
NULL The function terminated successfully.
Insufficient memory was available.
A component of the path prefix is not a directory.
gfarm_url is NULL.
gfarm_url points outside your accessible address space.
gfarm_url does not exist.
Others An error except the above occurred. The reason is shown by its