1DPNS_READDIRX(3)            DPNS Library Functions            DPNS_READDIRX(3)
2
3
4

NAME

6       dpns_readdirx  - read DPNS directory opened by dpns_opendir in the name
7       server
8

SYNOPSIS

10       #include <sys/types.h>
11       #include "dpns_api.h"
12
13       struct dpns_direnstat *dpns_readdirx (dpns_DIR *dirp)
14

DESCRIPTION

16       dpns_readdirx reads the DPNS directory opened by  dpns_opendir  in  the
17       name  server.  This routine returns a pointer to a structure containing
18       the current directory entry including the stat information.  dpns_read‐
19       dirx  caches  a variable number of such entries, depending on the file‐
20       name size, to minimize the number of requests to the name server.
21
22       dirp   specifies the pointer value returned by dpns_opendir.
23

RETURN VALUE

25       This routine returns a pointer to a structure  containing  the  current
26       directory  entry  if the operation was successful or NULL if the end of
27       the directory was reached or if the operation failed. When the  end  of
28       the  directory  is encountered, serrno is not changed. If the operation
29       failed, serrno is set appropriately.
30
31       As dpns_readdirx returns a null pointer both at the end of  the  direc‐
32       tory and on error, an application wishing to check for error situations
33       should set serrno to 0, then call dpns_readdirx, then check serrno  and
34       if it is non-zero, assume an error has occurred.
35

ERRORS

37       EBADF        File descriptor in DIR structure is invalid.
38
39       EFAULT       dirp is a NULL pointer.
40
41       SENOSHOST    Host unknown.
42
43       SENOSSERV    Service unknown.
44
45       SECOMERR     Communication error.
46
47       ENSNACT      Name server is not running or is being shutdown.
48

SEE ALSO

50       dpns_closedir(3), dpns_opendir(3), dpns_rewinddir(3), dirent, stat(2)
51

AUTHOR

53       LCG Grid Deployment Team
54
55
56
57DPNS                     $Date: 2006/03/16 13:02:57 $         DPNS_READDIRX(3)
Impressum