WL865E4-P  36.07.001
m2mb_fs_posix.h File Reference

File system posix library implementation. More...

Go to the source code of this file.

Data Structures

struct  M2MB_STAT
 
struct  M2MB_STATVFS
 
struct  M2MB_LS_ENTRY
 
#define M2MB_O_RDONLY   00
 
#define M2MB_O_WRONLY   01
 
#define M2MB_O_RDWR   02
 
#define M2MB_O_CREAT   0100
 
#define M2MB_O_EXCL   0200
 
#define M2MB_O_TRUNC   01000
 
#define M2MB_O_APPEND   02000
 
#define M2MB_SEEK_SET   0
 
#define M2MB_SEEK_CUR   1
 
#define M2MB_SEEK_END   2
 
#define M2MB_FS_ENOERR   0
 
#define M2MB_FS_EPERM   1
 
#define M2MB_FS_ENOENT   2
 
#define M2MB_FS_EIO   5
 
#define M2MB_FS_EBADF   9
 
#define M2MB_FS_ENOMEM   12
 
#define M2MB_FS_EACCES   13
 
#define M2MB_FS_EBUSY   16
 
#define M2MB_FS_EEXIST   17
 
#define M2MB_FS_EXDEV   18
 
#define M2MB_FS_ENODEV   19
 
#define M2MB_FS_ENOTDIR   20
 
#define M2MB_FS_EISDIR   21
 
#define M2MB_FS_EINVAL   22
 
#define M2MB_FS_EMFILE   24
 
#define M2MB_FS_ETXTBSY   26
 
#define M2MB_FS_ENOSPC   28
 
#define M2MB_FS_ESPIPE   29
 
#define M2MB_FS_ENAMETOOLONG   36
 
#define M2MB_FS_ENOTEMPTY   39
 
#define M2MB_FS_ELOOP   40
 
#define M2MB_FS_EILSEQ   84
 
#define M2MB_FS_ETIMEDOUT   110
 
#define M2MB_FS_ESTALE   116
 
#define M2MB_FS_EDQUOT   122
 
INT32 m2mb_fs_open (const CHAR *path, INT32 oflag,...)
 Open file. More...
 
INT32 m2mb_fs_secure_open (const CHAR *path, INT32 oflag, const char *pwd)
 Open secure file. More...
 
SSIZE_T m2mb_fs_read (INT32 fd, void *buf, SIZE_T nbyte)
 Read file. More...
 
SSIZE_T m2mb_fs_write (INT32 fd, const void *buf, SIZE_T nbyte)
 Write file. More...
 
INT32 m2mb_fs_close (INT32 fd)
 Close file. More...
 
OFF_T m2mb_fs_lseek (INT32 fd, OFF_T offset, INT32 whence)
 Move file offset. More...
 
INT32 m2mb_fs_stat (const CHAR *path, struct M2MB_STAT *buf)
 File status. More...
 
INT32 m2mb_fs_unlink (const CHAR *path)
 Delete file. More...
 
INT32 m2mb_fs_statvfs (const CHAR *path, struct M2MB_STATVFS *buf)
 File system statistics. More...
 
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 flash media, this API can take time in the order of seconds to complete, and clients calling this API should be prepared to have their task blocked for this time duration. More...
 
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 underlying flash media, this API can take time in the order of seconds to complete, and clients calling this API should be prepared to have their task blocked for this time duration. More...
 
INT32 m2mb_fs_ls_close (HANDLE ls_hdl)
 File system ls close. More...
 

Detailed Description

File system posix library implementation.

we866e4/epl/core/inc/modules/m2mb_fs_posix.h

posix library for files. Not all the standard posix functions are available but only the most commonly used.

Note
Dependencies:
"#include m2mb_types.h"
Author
AV
Date
07/01/2018

Definition in file m2mb_fs_posix.h.