int rfio_symlink (const char *oldpath, const char *newpath); int rfio_msymlink (const char *oldpath, const char *newpath); int rfio_msymlink_reset (); int rfio_symend ();
creates a symbolic link
which contains the string
may point to a non existing file.
exists already, it will not be overwritten.
Write permission is required on
is identical to
but keeps the connection open to the server unless there are more than MAXMCON
connections already opened. This is useful when issuing a series of symlink calls.
call should be followed by a call to
is to be used when your program is forking. In such a case the permanent connections opened with
become shared between the parent and the child. Use
to perform the necessary reset and close of the socket file descriptor in the parent or the child in order to be sure that only of them will receice an answer from the RFIO daemon.
See NOTES section below.
This routine returns 0 if the operation was successful or -1 if the operation
failed. In the latter case,
is set appropriately.
Multiple connections using rfio_msymlink are thread-safe but not process-wide, therefore a forked child can share file descriptors opened with rfio_msymlink by its parent. Use
in such case.
Multiple connections behaviour is undefined if you work in a multi-threaded environment and with threads not created using the LCG's Cthread interface.
A component of
prefix does not exist or
is a null pathname.
Search permission is denied on a component of the
prefix or write permission on the
parent directory is denied.
is a NULL pointer.
A component of the
prefix is not a directory.
The length of
or the length of a path component exceeds