1LFC_READDIRXC(3) LFC Library Functions LFC_READDIRXC(3)
2
3
4
6 lfc_readdirxc - read LFC directory opened by lfc_opendir in the name
7 server
8
10 #include <sys/types.h>
11 #include "lfc_api.h"
12
13 struct lfc_direnstatc *lfc_readdirxc (lfc_DIR *dirp)
14
16 lfc_readdirxc reads the LFC directory opened by lfc_opendir in the name
17 server. This routine returns a pointer to a structure containing the
18 current directory entry including the stat information and the comment
19 associated. lfc_readdirxc caches a variable number of such entries,
20 depending on the filename size, to minimize the number of requests to
21 the name server.
22
23 dirp specifies the pointer value returned by lfc_opendir.
24
26 This routine returns a pointer to a structure containing the current
27 directory entry if the operation was successful or NULL if the end of
28 the directory was reached or if the operation failed. When the end of
29 the directory is encountered, serrno is not changed. If the operation
30 failed, serrno is set appropriately.
31
32 As lfc_readdirxc returns a null pointer both at the end of the direcā
33 tory and on error, an application wishing to check for error situations
34 should set serrno to 0, then call lfc_readdirxc, then check serrno and
35 if it is non-zero, assume an error has occurred.
36
38 EBADF File descriptor in DIR structure is invalid.
39
40 EFAULT dirp is a NULL pointer.
41
42 SENOSHOST Host unknown.
43
44 SENOSSERV Service unknown.
45
46 SECOMERR Communication error.
47
48 ENSNACT Name server is not running or is being shutdown.
49
51 lfc_closedir(3), lfc_opendirg(3), lfc_rewinddir(3), lfc_setcomment(3),
52 stat(2)
53
55 LCG Grid Deployment Team
56
57
58
59LFC $Date: 2006/03/16 13:02:57 $ LFC_READDIRXC(3)