Go to the documentation of this file.
67 m_flags = autoclose ? InternalAutoClose : 0;
88 if (m_flags & InternalAutoClose)
99 m_flags &= ~InternalAutoClose;
101 m_flags |= InternalAutoClose;
122 child->m_flags = m_flags;
170 unsigned newflags = InternalAutoClose;
172 sysopen(
name,
flags, perms, newfd, newflags);
192 fcntl(
fd, F_RDADVISE, &
info);
193 #elif _POSIX_ADVISORY_INFO > 0
194 posix_fadvise(
fd, what[
i].
offset(), what[
i].
size(), POSIX_FADV_WILLNEED);
196 #error advisory read ahead not available on this platform
249 m_flags &= ~InternalAutoClose;
258 m_flags &= ~InternalAutoClose;
virtual void open(const char *name, int flags=IOFlags::OpenRead, int perms=0666)
IOSize readv(IOBuffer *into, IOSize buffers) override
File * duplicate(bool copy) const
void close(void) override
IOSize writev(const IOBuffer *from, IOSize buffers) override
bool prefetch(const IOPosBuffer *what, IOSize n) override
IOSize writev(const IOBuffer *from, IOSize length) override
virtual void setAutoClose(bool closeit)
static int position[264][3]
virtual void attach(IOFD fd)
void throwStorageError(const char *category, const char *context, const char *call, int error)
IOSize write(const void *from, IOSize n) override
IOOffset offset(void) const
IOSize write(const void *from, IOSize n) override
virtual void create(const char *name, bool exclusive=false, int perms=0666)
IOSize readv(IOBuffer *into, IOSize length) override