25 #ifndef M2MB_FS_POSIX_H 26 #define 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 struct M2MB_STAT M2MB_STAT_T
M2MB_STATUS_T m2mb_fs_init(VOID)
File system initialization.
SSIZE_T m2mb_fs_read(INT32 fd, void *buf, UINT32 nbyte)
Read file.
INT32 m2mb_fs_close(INT32 fd)
Close file.
SSIZE_T m2mb_fs_length(INT32 fd)
Write file.
INT32 m2mb_fs_stat(const CHAR *path, struct M2MB_STAT *buf)
File status.
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.
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.
struct M2MB_LS_ENTRY M2MB_LS_ENTRY_T
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_ls_open(const char *path, HANDLE *handle)
The function opens the folder whose name is the string pointed to by path. Depending on the read/wri...
INT32 m2mb_fs_unlink(const CHAR *path)
Delete file.
SSIZE_T m2mb_fs_write(INT32 fd, const void *buf, UINT32 nbyte)
Write file.