1DPNS_CLOSEDIR(3) DPNS Library Functions DP‐
2NS_CLOSEDIR(3)
3
4
5
6[1mNAME[0m
7 dpns_closedir ‐ close DPNS directory opened by [1mdp‐
8ns_opendir [22min the name
9 server
10
11[1mSYNOPSIS[0m
12 [1m#include <sys/types.h>[0m
13 [1m#include "dpns_api.h"[0m
14
15 [1mint dpns_closedir (dpns_DIR *[4m[22mdirp[24m[1m)[0m
16
17[1mDESCRIPTION[0m
18 [1mdpns_closedir [22mcloses the DPNS directory opened by
19[1mdpns_opendir [22min the
20 name server and frees the [1mdpns_DIR [22mstructure point‐
21ed by [4mdirp[24m.
22
23 [4mdirp[24m specifies the pointer value returned by
24[1mdpns_opendir[22m.
25
26[1mRETURN VALUE[0m
27 This routine returns 0 if the operation was successful
28or ‐1 if the
29 operation failed. In the latter case, [1mserrno [22mis set
30appropriately.
31
32[1mERRORS[0m
33 [1mEBADF [22mFile descriptor in DIR structure is
34invalid.
35
36 [1mEFAULT [4m[22mdirp[24m is a NULL pointer.
37
38 [1mSENOSSERV [22mService unknown.
39
40 [1mSECOMERR [22mCommunication error.
41
42 [1mENSNACT [22mName server is not running or is being
43shutdown.
44
45[1mSEE ALSO[0m
46 [1mdpns_opendir(3)[22m, [1mdpns_readdir(3), dpns_read‐
47dirx(3)[22m, [1mdpns_rewinddir(3)[0m
48
49[1mAUTHOR[0m
50 [1mLCG Grid Deployment [22mTeam
51
52
53
54DPNS $Date$ DP‐
55NS_CLOSEDIR(3)
56
57
58
59
60
61
62
63
64
65
66