lists link entries for a given file.
The first entry in the list is the actual file name, while the other entries
are the symbolic links pointing at this file.
specifies the logical pathname.
specifies the Grid Unique IDentifier.
may be one of the following constant:
the first call must have this flag set to allocate buffers and
all the following calls must have this flag set.
final call to terminate the list and free resources.
This routine returns a pointer to a structure containing the current link entry
if the operation was successful or NULL if all entries have been returned
or if the operation failed. In the latter case,
is set appropriately.
The named file does not exist.
Search permission is denied on a component of the parent directory.
Memory could not be allocated for the output buffer.
are NULL pointers or
is a NULL pointer.