25 #ifndef M2M_M2MB_FS_POSIX_H 26 #define M2M_M2MB_FS_POSIX_H 54 #define M2MB_O_RDONLY 00 55 #define M2MB_O_WRONLY 01 56 #define M2MB_O_RDWR 02 57 #define M2MB_O_CREAT 0100 58 #define M2MB_O_EXCL 0200 59 #define M2MB_O_TRUNC 01000 60 #define M2MB_O_APPEND 02000 63 #define M2MB_SEEK_SET 0 64 #define M2MB_SEEK_CUR 1 65 #define M2MB_SEEK_END 2 68 #define M2MB_FS_ENOERR 0 69 #define M2MB_FS_EPERM 1 70 #define M2MB_FS_ENOENT 2 72 #define M2MB_FS_EBADF 9 73 #define M2MB_FS_ENOMEM 12 74 #define M2MB_FS_EACCES 13 75 #define M2MB_FS_EBUSY 16 76 #define M2MB_FS_EEXIST 17 77 #define M2MB_FS_EXDEV 18 78 #define M2MB_FS_ENODEV 19 79 #define M2MB_FS_ENOTDIR 20 80 #define M2MB_FS_EISDIR 21 81 #define M2MB_FS_EINVAL 22 82 #define M2MB_FS_EMFILE 24 83 #define M2MB_FS_ETXTBSY 26 84 #define M2MB_FS_ENOSPC 28 85 #define M2MB_FS_ESPIPE 29 86 #define M2MB_FS_ENAMETOOLONG 36 87 #define M2MB_FS_ENOTEMPTY 39 88 #define M2MB_FS_ELOOP 40 89 #define M2MB_FS_EILSEQ 84 90 #define M2MB_FS_ETIMEDOUT 110 91 #define M2MB_FS_ESTALE 116 92 #define M2MB_FS_EDQUOT 122 OFF_T m2mb_fs_lseek(INT32 fd, OFF_T offset, INT32 whence)
Move file offset.
INT32 m2mb_fs_ls_close(HANDLE ls_hdl)
File system ls close.
SSIZE_T m2mb_fs_write(INT32 fd, const void *buf, SIZE_T nbyte)
Write file.
INT32 m2mb_fs_open(const CHAR *path, INT32 oflag,...)
Open file.
INT32 m2mb_fs_secure_open(const CHAR *path, INT32 oflag, const char *pwd)
Open secure file.
INT32 m2mb_fs_ls_open(const char *path, HANDLE *handle)
List over all the files in the file system. Depending on the read/write speeds of the underlying flas...
INT32 m2mb_fs_unlink(const CHAR *path)
Delete file.
SSIZE_T m2mb_fs_read(INT32 fd, void *buf, SIZE_T nbyte)
Read file.
INT32 m2mb_fs_close(INT32 fd)
Close file.
UINT32 f_max_transaction_size
INT32 m2mb_fs_statvfs(const CHAR *path, struct M2MB_STATVFS *buf)
File system statistics.
INT32 m2mb_fs_ls_next(HANDLE ls_hdl, struct M2MB_LS_ENTRY *ls_entry)
Returns the next file system entry while listing. Depending on the read/write speeds of the underlyin...
INT32 m2mb_fs_stat(const CHAR *path, struct M2MB_STAT *buf)
File status.