1#ifndef __SFS_NATIVE_H__
2#define __SFS_NATIVE_H__
49 int open(
const char *dirName,
51 const char *opaque = 0);
57const char *
FName() {
return (
const char *)fname;}
61 {ateof = 0; fname = 0;
63 d_pnt = &dirent_full.d_entry;
73struct {
struct dirent d_entry;
91 int open(
const char *fileName,
95 const char *opaque = 0);
100 int fctl(
const int cmd,
107 {
if (Addr) Addr = 0; Size = 0;
return SFS_OK;}
135 int getCXinfo(
char cxtype[4],
int &cxrsz) {
return cxrsz = 0;}
139 {oh = -1; fname = 0;}
166 int chmod(
const char *Name,
170 const char *opaque = 0);
172 int exists(
const char *fileName,
176 const char *opaque = 0);
178 int fsctl(
const int cmd,
187 int mkdir(
const char *dirName,
191 const char *opaque = 0);
197 int rem(
const char *path,
200 const char *opaque = 0);
202 int remdir(
const char *dirName,
205 const char *opaque = 0);
207 int rename(
const char *oldFileName,
208 const char *newFileName,
211 const char *opaqueO = 0,
212 const char *opaqueN = 0);
214 int stat(
const char *Name,
218 const char *opaque = 0);
224 const char *opaque = 0)
226 int rc =
stat(Name, &bfr, out_error, client);
227 if (!rc) mode = bfr.st_mode;
235 const char *opaque = 0);
239static int Mkpath(
const char *path, mode_t mode,
static XrdSysError eDest(0,"crypto_")
long long XrdSfsFileOffset
virtual int fctl(const int cmd, const char *args, XrdOucErrInfo &eInfo)=0
XrdSfsNativeDirectory(char *user=0, int monid=0)
XrdSfsNativeFile(char *user=0, int monid=0)
int fctl(const int cmd, const char *args, XrdOucErrInfo &out_error)
int getCXinfo(char cxtype[4], int &cxrsz)
int read(XrdSfsFileOffset fileOffset, XrdSfsXferSize preread_sz)
int getMmap(void **Addr, off_t &Size)
int prepare(XrdSfsPrep &pargs, XrdOucErrInfo &out_error, const XrdSecClientName *client=0)
int getStats(char *buff, int blen)
int rem(const char *path, XrdOucErrInfo &out_error, const XrdSecClientName *client=0, const char *opaque=0)
XrdSfsFile * newFile(char *user=0, int monid=0)
int exists(const char *fileName, XrdSfsFileExistence &exists_flag, XrdOucErrInfo &out_error, const XrdSecClientName *client=0, const char *opaque=0)
XrdSfsDirectory * newDir(char *user=0, int monid=0)
int fsctl(const int cmd, const char *args, XrdOucErrInfo &out_error, const XrdSecClientName *client=0)
static int Mkpath(const char *path, mode_t mode, const char *info=0)
int chmod(const char *Name, XrdSfsMode Mode, XrdOucErrInfo &out_error, const XrdSecClientName *client=0, const char *opaque=0)
int remdir(const char *dirName, XrdOucErrInfo &out_error, const XrdSecClientName *client=0, const char *opaque=0)
int stat(const char *Name, mode_t &mode, XrdOucErrInfo &out_error, const XrdSecClientName *client=0, const char *opaque=0)
static int Emsg(const char *, XrdOucErrInfo &, int, const char *x, const char *y="")
const char * getVersion()