XrdOssDir Class Reference

#include <XrdOssApi.hh>

Inheritance diagram for XrdOssDir:
Inheritance graph
[legend]
Collaboration diagram for XrdOssDir:
Collaboration graph
[legend]

List of all members.

Public Member Functions

int Close (long long *retsz=0)
int Opendir (const char *, XrdOucEnv &)
int Readdir (char *buff, int blen)
int StatRet (struct stat *buff)
 XrdOssDir (const char *tid, DIR *dP=0)
 ~XrdOssDir ()

Private Attributes

DIR * lclfd
void * mssfd
struct stat * Stat
bool ateof
bool isopen
unsigned char dOpts

Static Private Attributes

static const int isStage = 0x01
static const int noCheck = 0x02
static const int noDread = 0x04

Constructor & Destructor Documentation

XrdOssDir::XrdOssDir ( const char *  tid,
DIR *  dP = 0 
) [inline]

References XrdOssDF::fd.

XrdOssDir::~XrdOssDir (  )  [inline]

References Close(), and isopen.


Member Function Documentation

int XrdOssDir::Close ( long long *  retsz = 0  )  [virtual]

Close a directory or file.

Parameters:
retsz If not nil, where the size of the file is to be returned.
Returns:
0 upon success or -errno or -osserr (see XrdOssError.hh).

Implements XrdOssDF.

Referenced by ~XrdOssDir().

int XrdOssDir::Opendir ( const char *  path,
XrdOucEnv env 
) [virtual]

Open a directory.

Parameters:
path - Pointer to the path of the directory to be opened.
env - Reference to environmental information.
Returns:
0 upon success or -errno or -osserr (see XrdOssError.hh).

Reimplemented from XrdOssDF.

int XrdOssDir::Readdir ( char *  buff,
int  blen 
) [virtual]

Get the next directory entry.

Parameters:
buff - Pointer to buffer where a null terminated string of the entry name is to be returned. If no more entries exist, a null string is returned.
blen - Length of the buffer.
Returns:
0 upon success or -errno or -osserr (see XrdOssError.hh).

Reimplemented from XrdOssDF.

int XrdOssDir::StatRet ( struct stat *   )  [virtual]

Set the stat() buffer where stat information is to be placed corresponding to the directory entry returned by Readdir().

Parameters:
buff - Pointer to stat structure to be used.
Returns:
0 upon success or -ENOTSUP if not supported.
Note:
This is a one-time call as stat structure is reused for each Readdir.

Reimplemented from XrdOssDF.


Member Data Documentation

bool XrdOssDir::ateof [private]
unsigned char XrdOssDir::dOpts [private]
bool XrdOssDir::isopen [private]

Referenced by ~XrdOssDir().

const int XrdOssDir::isStage = 0x01 [static, private]
DIR* XrdOssDir::lclfd [private]
void* XrdOssDir::mssfd [private]
const int XrdOssDir::noCheck = 0x02 [static, private]
const int XrdOssDir::noDread = 0x04 [static, private]
struct stat* XrdOssDir::Stat [read, private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 7 Jul 2020 for xrootd by  doxygen 1.6.1