1#ifndef __XRDPOSIXXROOTD_H__
2#define __XRDPOSIXXROOTD_H__
37#include <sys/statvfs.h>
40#if defined(__APPLE__) || defined(__FreeBSD__)
44#include <sys/statfs.h>
72static int Access(
const char *path,
int amode);
97static int endPoint(
int FD,
char *Buff,
int Blen);
138static long long Getxattr (
const char *path,
const char *name,
139 void *value,
unsigned long long size);
145static off_t
Lseek(
int fildes, off_t offset,
int whence);
151static int Mkdir(
const char *path, mode_t mode);
167static int Open(
const char *path,
int oflag, mode_t mode=0,
180static ssize_t
Pread(
int fildes,
void *buf,
size_t nbyte, off_t offset);
182static void Pread(
int fildes,
void *buf,
size_t nbyte, off_t offset,
189static ssize_t
Pwrite(
int fildes,
const void *buf,
size_t nbyte, off_t offset);
191static void Pwrite(
int fildes,
const void *buf,
size_t nbyte, off_t offset,
208 char *buff,
int blen);
222static long long QueryOpaque(
const char *path,
char *buff,
int blen);
228static ssize_t
Read(
int fildes,
void *buf,
size_t nbyte);
234static ssize_t
Readv(
int fildes,
const struct iovec *
iov,
int iovcnt);
251static int Readdir_r (DIR *dirp,
struct dirent *entry,
struct dirent **result);
252static int Readdir64_r(DIR *dirp,
struct dirent64 *entry,
struct dirent64 **result);
258static int Rename(
const char *oldpath,
const char *newpath);
282static int Stat(
const char *path,
struct stat *buf);
307static int Truncate(
const char *path, off_t offset);
336static ssize_t
Write(
int fildes,
const void *buf,
size_t nbyte);
342static ssize_t
Writev(
int fildes,
const struct iovec *
iov,
int iovcnt);
373static int Open(
const char *path,
int oflag, mode_t mode,
#define statvfs(a, b)
Definition XrdPosix.hh:100
#define stat(a, b)
Definition XrdPosix.hh:96
#define statfs(a, b)
Definition XrdPosix.hh:98
Definition XrdPosixAdmin.hh:47
Definition XrdPosixCallBack.hh:76
An abstract class to define a callback for Open() call.
Definition XrdPosixCallBack.hh:52
Definition XrdPosixConfig.hh:47
Definition XrdPosixFile.hh:62
POSIX interface to XRootD with some extensions, as noted.
Definition XrdPosixXrootd.hh:63
static ssize_t Write(int fildes, const void *buf, size_t nbyte)
Write() conforms to POSIX.1-2001 write()
static int EcStat(const char *, struct stat *, XrdPosixAdmin *)
static void VRead(int fildes, const XrdOucIOVec *readV, int n, XrdPosixCallBackIO *cbp)
static void Rewinddir(DIR *dirp)
Rewinddir() conforms to POSIX.1-2001 rewinddir()
static int Fstat(int fildes, struct stat *buf)
Fstat() conforms to POSIX.1-2001 fstat()
static int EcRename(const char *, const char *, XrdPosixAdmin *)
static int Statvfs(const char *path, struct statvfs *buf)
Statvfs() conforms to POSIX.1-2001 statvfs()
static int QueryChksum(const char *path, time_t &mtime, char *buff, int blen)
static int Open(const char *path, int oflag, mode_t mode, XrdPosixCallBack *cbP, XrdPosixInfo *infoP)
static const int isStream
Definition XrdPosixXrootd.hh:165
static int Fault(XrdPosixFile *fp, int ecode)
static int Rmdir(const char *path)
Rmdir() conforms to POSIX.1-2001 rmdir()
static int endPoint(int FD, char *Buff, int Blen)
static int Readdir64_r(DIR *dirp, struct dirent64 *entry, struct dirent64 **result)
static int baseFD
Definition XrdPosixXrootd.hh:382
static int Access(const char *path, int amode)
Access() conforms to POSIX.1-2001 access()
static int Fsync(int fildes)
Fsync() conforms to POSIX.1-2001 fsync()
static int Ftruncate(int fildes, off_t offset)
Ftruncate() conforms to POSIX.1-2001 ftruncate()
static int initDone
Definition XrdPosixXrootd.hh:383
static int Statfs(const char *path, struct statfs *buf)
static struct dirent64 * Readdir64(DIR *dirp)
static ssize_t Writev(int fildes, const struct iovec *iov, int iovcnt)
Writev() conforms to POSIX.1-2001 writev()
static DIR * Opendir(const char *path)
Opendir() conforms to POSIX.1-2001 opendir()
static void Pread(int fildes, void *buf, size_t nbyte, off_t offset, XrdPosixCallBackIO *cbp)
static int Mkdir(const char *path, mode_t mode)
Mkdir() conforms to POSIX.1-2001 mkdir()
static int Readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result)
static int Close(int fildes)
Close() conforms to POSIX.1-2001 close()
static ssize_t Pwrite(int fildes, const void *buf, size_t nbyte, off_t offset)
Pwrite() conforms to POSIX.1-2001 pwrite()
static bool OpenCache(XrdPosixFile &file, XrdPosixInfo &Info)
static ssize_t Readv(int fildes, const struct iovec *iov, int iovcnt)
Readv() conforms to POSIX.1-2001 readv()
static bool isXrootdDir(DIR *dirp)
static off_t Lseek(int fildes, off_t offset, int whence)
Lseek() conforms to POSIX.1-2001 lseek()
static int Stat(const char *path, struct stat *buf)
Stat() conforms to POSIX.1-2001 stat()
static long long QueryOpaque(const char *path, char *buff, int blen)
static long long Getxattr(const char *path, const char *name, void *value, unsigned long long size)
XrdPosixXrootd(int maxfd=255, int maxdir=0, int maxthr=0)
static ssize_t Pread(int fildes, void *buf, size_t nbyte, off_t offset)
Pread() conforms to POSIX.1-2001 pread()
static int Unlink(const char *path)
Unlink() conforms to POSIX.1-2001 unlink()
static long Telldir(DIR *dirp)
Telldir() conforms to POSIX.1-2001 telldir()
static void Pwrite(int fildes, const void *buf, size_t nbyte, off_t offset, XrdPosixCallBackIO *cbp)
static ssize_t Read(int fildes, void *buf, size_t nbyte)
Read() conforms to POSIX.1-2001 read()
static ssize_t VRead(int fildes, const XrdOucIOVec *readV, int n)
static int Closedir(DIR *dirp)
Closedir() conforms to POSIX.1-2001 closedir()
static int Rename(const char *oldpath, const char *newpath)
Rename() conforms to POSIX.1-2001 rename()
static int Truncate(const char *path, off_t offset)
Telldir() conforms to POSIX.1-2001 telldir()
static int Open(const char *path, int oflag, mode_t mode=0, XrdPosixCallBack *cbP=0)
int fdOrigin()
Definition XrdPosixXrootd.hh:349
static int EcUnlink(const char *, XrdPosixAdmin *)
static struct dirent * Readdir(DIR *dirp)
static void Seekdir(DIR *dirp, long loc)
Seekdir() conforms to POSIX.1-2001 seekdir()
static void Fsync(int fildes, XrdPosixCallBackIO *cbp)
Definition XrdOucIOVec.hh:41
Definition XrdPosixInfo.hh:40
Definition XrdOucIOVec.hh:65