gfal_readdir(3) - Linux man page
Name
gfal_readdir - read a directorySynopsis
#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.