1DPNS_OPENDIR(3)                  DPNS      Library      Functions
2DPNS_OPENDIR(3)
3
4
5
6[1mNAME[0m
7       dpns_opendir ‐ open a DPNS directory in the name server
8
9[1mSYNOPSIS[0m
10       [1m#include <sys/types.h>[0m
11       [1m#include "dpns_api.h"[0m
12
13       [1mdpns_DIR        *dpns_opendir        (const        char
14*[4m[22mpath[24m[1m)[0m
15
16[1mDESCRIPTION[0m
17       [1mdpns_opendir   [22mopens  a  DPNS directory in the name
18server to be used in
19       subsequent [1mdpns_readdir [22moperations.  A  [1mdpns_DIR
20[22mstructure and a  buffer
21       to cache the directory entries are allocated in the client
22API.
23
24       [4mpath[24m   specifies  the  logical  pathname   relative
25to the current DPNS
26              directory or the full DPNS 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,             [1mdpns_chdir(3)[22m,
67[1mdpns_closedir(3)[22m,    [1mdpns_read‐[0m
68       [1mdir(3), dpns_readdirx(3)[22m, [1mdpns_rewinddir(3)[0m
69
70[1mAUTHOR[0m
71       [1mLCG Grid Deployment [22mTeam
72
73
74
75DPNS                        $Date:    2001/10/04    12:12:46    $
76DPNS_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
Impressum