DOKK / manpages / debian 10 / liblfc-dev / lfc_symlink.3.en
LFC_SYMLINK(3) LFC Library Functions LFC_SYMLINK(3)

lfc_symlink - make a symbolic link to a file or a directory in the LFC Name Server

#include <sys/types.h>
#include "lfc_api.h"

int lfc_symlink (const char *target, const char *linkname)

lfc_symlink makes a symbolic link to a file or a directory in the LFC Name Server.

specifies the link name relative to the current LFC directory or the full LFC pathname.

This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately.

A component of linkname prefix does not exist.
Search permission is denied on a component of linkname prefix or write permission on linkname parent directory is denied.
target or linkname is a NULL pointer.
linkname exists already.
A component of linkname prefix is not a directory.
The name server database is full.
The length of target or linkname exceeds CA_MAXPATHLEN or the length of a linkname component exceeds CA_MAXNAMELEN.
Host unknown.
Service unknown.
Communication error.
Too many symbolic links encountered when parsing linkname.
Name server is not running or is being shutdown.

Castor_limits(4), lfc_chdir(3), lfc_chmod(3), lfc_readlink(3), lfc_statg(3), Cupvlist(1)

LCG Grid Deployment Team

$Date: 2004/06/28 09:18:05 $ LFC