gfs_realpath3
Resolve pathname in gfarm filesystem
Usage
#include <gfarm/gfarm.h>
char *gfs_realpath (const char * gfarm_url, char ** resolved_pathp);
Overview
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.
Return values
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. |
|
An error except the above occurred. The reason is shown by its pointed strings. |
Releases
Unchanged in 2 releases since Debian 6.0 (Squeeze).