1DPNS_READLINK(3)            DPNS Library Functions            DPNS_READLINK(3)
2
3
4

NAME

6       dpns_readlink - read value of a symbolic link in the DPNS Name Server
7

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

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

ERRORS

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

SEE ALSO

54       Castor_limits(4), dpns_chdir(3), dpns_stat(3), dpns_statg(3), dpns_sym‐
55       link(3)
56

AUTHOR

58       LCG Grid Deployment Team
59
60
61
62DPNS                     $Date: 2004/06/28 09:46:55 $         DPNS_READLINK(3)
Impressum