Content-type: text/html
Man page of GFAL_READDIR
GFAL_READDIR
Section: Library Functions (3)
Updated: $Date: 2003/11/19 12:56:29 $
Index
Return to Main Contents
NAME
gfal_readdir - read a directory
SYNOPSIS
#include "gfal_api.h"
struct dirent *gfal_readdir (DIR *dirp);
Under Linux, for large files:
#define _LARGEFILE64_SOURCE
#include "gfal_api.h"
struct dirent64 *gfal_readdir64 (DIR *dirp);
Under Solaris, for large files:
#include "gfal_api.h"
struct dirent64 *gfal_readdir64 (DIR *dirp);
DESCRIPTION
gfal_readdir
reads a directory opened by
gfal_opendir
and associated with the
DIR
structure pointed by
dirp.
The 64 bits function must be used for large files. It has the same syntax as
the normal readdir function except that it uses a
dirent64
structure.
RETURN VALUE
These routines return a pointer to a structure containing the current directory
entry if the operation was successful or NULL if the end of the directory was
reached or if the operation failed. In the latter case,
errno
is set appropriately.
ERRORS
- EBADF
-
File descriptor in DIR structure is invalid.
- EFAULT
-
dirp
is a NULL pointer.
- ECOMM
-
Communication error.
- EPROTONOSUPPORT
-
Access method not supported.
SEE ALSO
gfal(3)
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUE
-
- ERRORS
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 14:16:31 GMT, July 14, 2009