rfio_readdir(3)

rfio_readdir3

Read directory opened by rfio_opendir

Usage

#include <sys/types.h>
#include <dirent.h>
#include "rfio_api.h"

struct dirent *rfio_readdir (RDIR *dirp);

Overview

rfio_readdir reads the directory opened by rfio_opendir. This routine returns a pointer to a structure containing the current directory entry.

dirp

specifies the pointer value returned by rfio_opendir.

Notes

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

Return value

This routine returns 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, serrno is set appropriately.

Errors

EBADF

File descriptor in DIR structure is invalid.

EFAULT

dirp is a NULL pointer.

SENOSHOST

Host unknown.

SENOSSERV

Service unknown.

SECOMERR

Communication error.

Releases

Unchanged in 5 releases since Debian 6.0 (Squeeze).

  1. 6.0–10

Author

LCG Grid Deployment Team

From libdpm-dev 1.10.0-2+b3 in Debian 10 (Buster). Parsed by carta from the page's man source.