1LFC_READLINK(3)              LFC Library Functions             LFC_READLINK(3)
2
3
4

NAME

6       lfc_readlink - read value of a symbolic link in the LFC Name Server
7

SYNOPSIS

9       #include <sys/types.h>
10       #include "lfc_api.h"
11
12       int lfc_readlink (const char *path, char *buf, size_t bufsiz)
13

DESCRIPTION

15       lfc_readlink reads the value of a symbolic link in the LFC Name Server.
16
17       path   specifies the link name relative to the current LFC directory or
18              the full LFC pathname.
19
20       buf    points at a buffer to receive the value.
21
22       bufsiz gives the buffer size.
23

RETURN VALUE

25       This routine returns the number of characters put in the buffer if  the
26       operation  was  successful or -1 if the operation failed. In the latter
27       case, serrno is set appropriately.
28

ERRORS

30       ENOENT       The named link does not exist or is a null pathname.
31
32       EACCES       Search permission is denied on a  component  of  the  path
33                    prefix.
34
35       EFAULT       path or buf is a NULL pointer.
36
37       ENOTDIR      A component of path prefix is not a directory.
38
39       EINVAL       path is not a symbolic link.
40
41       ENAMETOOLONG The  length of path exceeds CA_MAXPATHLEN or the length of
42                    a path component exceeds CA_MAXNAMELEN.
43
44       SENOSHOST    Host unknown.
45
46       SENOSSERV    Service unknown.
47
48       SECOMERR     Communication error.
49
50       ENSNACT      Name server is not running or is being shutdown.
51

SEE ALSO

53       Castor_limits(4), lfc_chdir(3), lfc_statg(3), lfc_symlink(3)
54

AUTHOR

56       LCG Grid Deployment Team
57
58
59
60LFC                      $Date: 2004/06/28 09:46:55 $          LFC_READLINK(3)
Impressum