1RFIO_READDIR(3)             Rfio Library Functions             RFIO_READDIR(3)
2
3
4

NAME

6       rfio_readdir - read directory opened by rfio_opendir
7

SYNOPSIS

9       #include <sys/types.h>
10       #include <dirent.h>
11       #include "rfio_api.h"
12
13       struct dirent *rfio_readdir (RDIR *dirp);
14

DESCRIPTION

16       rfio_readdir  reads the directory opened by rfio_opendir.  This routine
17       returns a pointer to  a  structure  containing  the  current  directory
18       entry.
19
20       dirp   specifies the pointer value returned by rfio_opendir.
21

NOTES

23       Only  the  fields  d_name,  d_reclen and on some platforms d_namlen are
24       filled.  For LCG directories, a multi-threaded application will need to
25       initialize  itself the Cthread (LCG Thread Interface) library ; this is
26       done  by  including  "shift/Cthread_api.h"  and  calling  the  function
27       Cthread_init()  at  the  beginning. Otherwise accessing LCG directories
28       will not be thread-safe. See Cthread(3).
29

RETURN VALUE

31       This routine returns a pointer to a structure  containing  the  current
32       directory  entry  if the operation was successful or NULL if the end of
33       the directory was reached or if the operation  failed.  In  the  latter
34       case, serrno is set appropriately.
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

SEE ALSO

48       rfio_closedir(3), rfio_opendir(3), rfio_rewinddir(3), dirent
49

AUTHOR

51       LCG Grid Deployment Team
52
53
54
55LCG          $Date: 2010-04-05 09:51:26 +0200 (Mon, 05 Apr 2010)RF$IO_READDIR(3)
Impressum