68 if (flags & O_APPEND || flags & O_TRUNC)
73 if ((flags & O_CREAT) && (flags & O_EXCL))
91 if ((file->
flags & O_ACCMODE) == O_WRONLY)
121 if ((file->
flags & O_ACCMODE) == O_RDONLY)
off_t lseek(File *file, off_t offset, int whence) OVERRIDE
Seek method.
size_t fileSize
Maximum file size we can grow to.
virtual void read(unsigned int index, void *buf, size_t len)=0
Read from the EEPROM.
virtual void write(unsigned int index, const void *buf, size_t len)=0
Write to the EEPROM.
int open(File *file, const char *path, int flags, int mode) OVERRIDE
Open a device.
static _off_t lseek(struct _reent *reent, int fd, _off_t offset, int whence)
Change the offset index of a file or device.
int open(File *, const char *, int, int) OVERRIDE
Open method.
OSMutex lock_
protects internal structures.
void unlock()
Unlock a mutex.
off_t offset
current offset within file