1RFIO_READLINK(3)                 Rfio      Library      Functions
2RFIO_READLINK(3)
3
4
5
6[1mNAME[0m
7       rfio_readlink ‐ get the content of a symbolic link
8
9[1mSYNOPSIS[0m
10       [1m#include <sys/types.h>[0m
11       [1m#include "rfio_api.h"[0m
12
13       [1mint rfio_readlink (const char *[4m[22mpath[24m[1m, char
14*[4m[22mbuf[24m[1m, int [4m[22mlength[24m[1m)[0m
15
16[1mDESCRIPTION[0m
17       [1mrfio_readlink [22mgets the content of the symbolic link
18identified by [4mpath[24m.
19
20       [4mbuf[24m content is not null terminated.
21       Symbolic link content can be truncated to [4mlength[24m if
22[4mbuf[24m is too small.
23
24[1mRETURN VALUE[0m
25       This   routine  returns  the  count  of  bytes  placed  in
26[4mbuf[24m if the operation
27       was successful or ‐1 if the operation failed.  In the lat‐
28ter case, [1mser‐[0m
29       [1mrno [22mis set appropriately.
30
31[1mERRORS[0m
32       [1mENOENT       [4m[22mpath[24m does not exist.
33
34       [1mENOMEM       [22mInsufficient memory.
35
36       [1mEACCES        [22mSearch   permission  is  denied  on a
37component of the [4mpath[0m
38                    prefix.
39
40       [1mEFAULT       [4m[22mpath[24m or [4mbuf[24m  is  a  NULL
41pointer.
42
43       [1mENOTDIR       [22mA component of the [4mpath[24m prefix
44is not a directory.
45
46       [1mEINVAL       [4m[22mpath[24m is not a symbolic link  or
47[4mlength[24m is not positive.
48
49       [1mENAMETOOLONG  [22mThe  length  of  [4mpath[24m  exceeds
50[1mCA_MAXPATHLEN [22mor the length  of
51                    a  path  component   exceeds   [1mCA_MAXNAME‐
52LEN[22m.
53
54       [1mSENOSHOST    [22mHost unknown.
55
56       [1mSENOSSERV    [22mService unknown.
57
58       [1mSECOMERR     [22mCommunication error.
59
60       [1mSEOPNOTSUP   [22mNot supported on Windows.
61
62[1mSEE ALSO[0m
63       [1mCastor_limits(4)[22m,   [1mrfio_symlink(3)[22m,   [1mr‐
64fio_unlink(3)[0m
65
66[1mAUTHOR[0m
67       [1mLCG Grid Deployment [22mTeam
68
69
70
71LCG                         $Date:    2005/03/31    13:13:03    $
72RFIO_READLINK(3)
73
74
75
76
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
Impressum