1LFC_OPENDIR(3) LFC Library Functions
2LFC_OPENDIR(3)
3
4
5
6[1mNAME[0m
7 lfc_opendir ‐ open a LFC directory in the name server
8
9[1mSYNOPSIS[0m
10 [1m#include <sys/types.h>[0m
11 [1m#include "lfc_api.h"[0m
12
13 [1mlfc_DIR *lfc_opendir (const char
14*[4m[22mpath[24m[1m)[0m
15
16[1mDESCRIPTION[0m
17 [1mlfc_opendir [22mopens a LFC directory in the name serv‐
18er to be used in sub‐
19 sequent [1mlfc_readdir [22moperations. A [1mlfc_DIR
20[22mstructure and a buffer to
21 cache the directory entries are allocated in the client
22API.
23
24 [4mpath[24m specifies the logical pathname relative
25to the current LFC
26 directory or the full LFC pathname.
27
28[1mRETURN VALUE[0m
29 This routine returns a pointer to be used in the subse‐
30quent directory
31 function calls if the operation was successful or NULL if
32the operation
33 failed. In the latter case, [1mserrno [22mis set appropri‐
34ately.
35
36[1mERRORS[0m
37 [1mENOENT [22mA component of [4mpath[24m prefix does
38not exist or [4mpath[24m is a
39 null pathname.
40
41 [1mEACCES [22mSearch permission is denied on a
42component of the [4mpath[0m
43 prefix or read permission is denied on
44[4mpath[24m.
45
46 [1mEFAULT [4m[22mpath[24m is a NULL pointer.
47
48 [1mENOTDIR [22mA component of [4mpath[24m prefix is
49not a directory.
50
51 [1mENAMETOOLONG [22mThe length of [4mpath[24m exceeds
52[1mCA_MAXPATHLEN [22mor the length of
53 a [4mpath[24m component exceeds [1mCA_MAX‐
54NAMELEN[22m.
55
56 [1mSENOSHOST [22mHost unknown.
57
58 [1mSENOSSERV [22mService unknown.
59
60 [1mSECOMERR [22mCommunication error.
61
62 [1mENSNACT [22mName server is not running or is being
63shutdown.
64
65[1mSEE ALSO[0m
66 [1mCastor_limits(4)[22m, [1mlfc_chdir(3)[22m,
67[1mlfc_closedir(3)[22m, [1mlfc_read‐[0m
68 [1mdir(3), lfc_readdirg(3)[22m, [1mlfc_rewinddir(3)[0m
69
70[1mAUTHOR[0m
71 [1mLCG Grid Deployment [22mTeam
72
73
74
75LFC $Date: 2001/10/04 12:12:46 $
76LFC_OPENDIR(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