rfio_readdir man page

RFIO_READDIR(3) Rfio Library Functions RFIO_READDIR(3)

[1mNAME[0m
rfio_readdir - read directory opened by [1mrfio_opendir[0m

[1mSYNOPSIS[0m
[1m#include <sys/types.h>[0m
[1m#include <dirent.h>[0m
[1m#include "rfio_api.h"[0m

[1mstruct dirent *rfio_readdir (RDIR *[4m[22mdirp[24m[1m);[0m

[1mDESCRIPTION[0m
[1mrfio_readdir [22mreads the directory opened by [1mrfio_opendir[22m. This routine
returns a pointer to a structure containing the current directory
entry.

[4mdirp[24m specifies the pointer value returned by [1mrfio_opendir[22m.

[1mNOTES[0m
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 [1mCthread[22m(3).

[1mRETURN VALUE[0m
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, [1mserrno [22mis set appropriately.

[1mERRORS[0m
[1mEBADF [22mFile descriptor in DIR structure is invalid.

[1mEFAULT [4m[22mdirp[24m is a NULL pointer.

[1mSENOSHOST [22mHost unknown.

[1mSENOSSERV [22mService unknown.

[1mSECOMERR [22mCommunication error.

[1mSEE ALSO[0m
[1mrfio_closedir(3)[22m, [1mrfio_opendir(3)[22m, [1mrfio_rewinddir(3)[22m, [1mdirent[0m

[1mAUTHOR[0m
[1mLCG Grid Deployment [22mTeam

LCG $Date: 2010-04-05 09:51:26 +0200 (Mon, 05 Apr 2010)RF$IO_READDIR(3)

Info