1DPNS_SYMLINK(3) DPNS Library Functions
2DPNS_SYMLINK(3)
3
4
5
6[1mNAME[0m
7 dpns_symlink ‐ make a symbolic link to a file or a di‐
8rectory in the
9 DPNS Name Server
10
11[1mSYNOPSIS[0m
12 [1m#include <sys/types.h>[0m
13 [1m#include "dpns_api.h"[0m
14
15 [1mint dpns_symlink (const char *[4m[22mtarget[24m[1m,
16const char *[4m[22mlinkname[24m[1m)[0m
17
18[1mDESCRIPTION[0m
19 [1mdpns_symlink [22mmakes a symbolic link to a file or a
20directory in the DPNS
21 Name Server.
22
23 [4mlinkname[0m
24 specifies the link name relative to the current
25DPNS directory
26 or the full DPNS pathname.
27
28[1mRETURN VALUE[0m
29 This routine returns 0 if the operation was successful or
30‐1 if the
31 operation failed. In the latter case, [1mserrno [22mis set
32appropriately.
33
34[1mERRORS[0m
35 [1mENOENT [22mA component of [4mlinkname[24m prefix
36does not exist.
37
38 [1mEACCES [22mSearch permission is denied on a
39component of [4mlinkname[0m
40 prefix or write permission on [4mlinkname[24m
41parent directory is
42 denied.
43
44 [1mEFAULT [4m[22mtarget[24m or [4mlinkname[24m is a
45NULL pointer.
46
47 [1mEEXIST [4m[22mlinkname[24m exists already.
48
49 [1mENOTDIR [22mA component of [4mlinkname[24m prefix
50is not a directory.
51
52 [1mENOSPC [22mThe name server database is full.
53
54 [1mENAMETOOLONG [22mThe length of [4mtarget[24m or
55[4mlinkname[24m exceeds [1mCA_MAXPATHLEN [22mor
56 the length of a [4mlinkname[24m component ex‐
57ceeds [1mCA_MAXNAMELEN[22m.
58
59 [1mSENOSHOST [22mHost unknown.
60
61 [1mSENOSSERV [22mService unknown.
62
63 [1mSECOMERR [22mCommunication error.
64
65 [1mSELOOP [22mToo many symbolic links encountered
66when parsing [4mlinkname[24m.
67
68 [1mENSNACT [22mName server is not running or is being
69shutdown.
70
71[1mSEE ALSO[0m
72 [1mCastor_limits(4)[22m, [1mdpns_chdir(3)[22m, [1mdp‐
73ns_chmod(3)[22m, [1mdpns_readlink(3)[22m,
74 [1mdpns_stat(3), dpns_statg(3)[22m, [1mCupvlist(1)[0m
75
76[1mAUTHOR[0m
77 [1mLCG Grid Deployment [22mTeam
78
79
80
81DPNS $Date: 2004/06/28 09:18:05 $
82DPNS_SYMLINK(3)
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