1 #ifndef STORAGE_FACTORY_FILE_H 2 #define STORAGE_FACTORY_FILE_H 21 virtual void create(
const char *name,
bool exclusive =
false,
int perms = 0666);
47 void flush(
void)
override;
48 void close(
void)
override;
49 virtual void abort(
void);
61 static void sysopen(
const char *name,
int flags,
int perms,
IOFD &newfd,
unsigned &newflags);
67 #endif // STORAGE_FACTORY_FILE_H virtual void setAutoClose(bool closeit)
IOSize writev(const IOBuffer *from, IOSize length) override
virtual IOSize readv(IOPosBuffer *into, IOSize buffers)
static void sysopen(const char *name, int flags, int perms, IOFD &newfd, unsigned &newflags)
virtual void create(const char *name, bool exclusive=false, int perms=0666)
virtual void attach(IOFD fd)
IOSize write(const void *from, IOSize n) override
IOOffset size(void) const override
virtual void open(const char *name, int flags=IOFlags::OpenRead, int perms=0666)
virtual IOSize write(const void *from, IOSize n, IOOffset pos)
static bool sysclose(IOFD fd, int *error=nullptr)
virtual IOOffset position(void) const
void close(void) override
IOSize readv(IOBuffer *into, IOSize length) override
static IOFD sysduplicate(IOFD fd)
void flush(void) override
void resize(IOOffset size) override
File * duplicate(bool copy) const
virtual IOFD fd(void) const
bool prefetch(const IOPosBuffer *what, IOSize n) override
virtual IOSize writev(const IOPosBuffer *from, IOSize buffers)