1LFC_READLINK(3) LFC Library Functions
2LFC_READLINK(3)
3
4
5
6[1mNAME[0m
7 lfc_readlink ‐ read value of a symbolic link in the LFC
8Name Server
9
10[1mSYNOPSIS[0m
11 [1m#include <sys/types.h>[0m
12 [1m#include "lfc_api.h"[0m
13
14 [1mint lfc_readlink (const char *[4m[22mpath[24m[1m, char
15*[4m[22mbuf[24m[1m, size_t [4m[22mbufsiz[24m[1m)[0m
16
17[1mDESCRIPTION[0m
18 [1mlfc_readlink [22mreads the value of a symbolic link in
19the LFC Name Server.
20
21 [4mpath[24m specifies the link name relative to the cur‐
22rent LFC directory or
23 the full LFC pathname.
24
25 [4mbuf[24m points at a buffer to receive the value.
26
27 [4mbufsiz[24m gives the buffer size.
28
29[1mRETURN VALUE[0m
30 This routine returns the number of characters put in the
31buffer if the
32 operation was successful or ‐1 if the operation failed.
33In the latter
34 case, [1mserrno [22mis set appropriately.
35
36[1mERRORS[0m
37 [1mENOENT [22mThe named link does not exist or is a
38null pathname.
39
40 [1mEACCES [22mSearch permission is denied on a com‐
41ponent of the [4mpath[0m
42 prefix.
43
44 [1mEFAULT [4m[22mpath[24m or [4mbuf[24m is a NULL
45pointer.
46
47 [1mENOTDIR [22mA component of [4mpath[24m prefix is
48not a directory.
49
50 [1mEINVAL [4m[22mpath[24m is not a symbolic link.
51
52 [1mENAMETOOLONG [22mThe length of [4mpath[24m exceeds
53[1mCA_MAXPATHLEN [22mor the length of
54 a [4mpath[24m component exceeds [1mCA_MAX‐
55NAMELEN[22m.
56
57 [1mSENOSHOST [22mHost unknown.
58
59 [1mSENOSSERV [22mService unknown.
60
61 [1mSECOMERR [22mCommunication error.
62
63 [1mENSNACT [22mName server is not running or is being
64shutdown.
65
66[1mSEE ALSO[0m
67 [1mCastor_limits(4)[22m, [1mlfc_chdir(3)[22m,
68[1mlfc_statg(3)[22m, [1mlfc_symlink(3)[0m
69
70[1mAUTHOR[0m
71 [1mLCG Grid Deployment [22mTeam
72
73
74
75LFC $Date: 2004/06/28 09:46:55 $
76LFC_READLINK(3)
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132