1LFC_CLOSEDIR(3) LFC Library Functions
2LFC_CLOSEDIR(3)
3
4
5
6[1mNAME[0m
7 lfc_closedir ‐ close LFC directory opened by
8[1mlfc_opendir [22min the name
9 server
10
11[1mSYNOPSIS[0m
12 [1m#include <sys/types.h>[0m
13 [1m#include "lfc_api.h"[0m
14
15 [1mint lfc_closedir (lfc_DIR *[4m[22mdirp[24m[1m)[0m
16
17[1mDESCRIPTION[0m
18 [1mlfc_closedir [22mcloses the LFC directory opened by
19[1mlfc_opendir [22min the name
20 server and frees the [1mlfc_DIR [22mstructure pointed by
21[4mdirp[24m.
22
23 [4mdirp[24m specifies the pointer value returned by
24[1mlfc_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 [1mlfc_opendirg(3)[22m, [1mlfc_readdir(3), lfc_read‐
47dirg(3)[22m, [1mlfc_rewinddir(3)[0m
48
49[1mAUTHOR[0m
50 [1mLCG Grid Deployment [22mTeam
51
52
53
54LFC $Date$
55LFC_CLOSEDIR(3)
56
57
58
59
60
61
62
63
64
65
66