|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|

宏定义 | |
| #define | OSAL_O_RDONLY 00000000 |
| #define | OSAL_O_WRONLY 00000001 |
| #define | OSAL_O_RDWR 00000002 |
| #define | OSAL_O_ACCMODE 00000003 |
| #define | OSAL_O_CREAT 00000100 |
| #define | OSAL_O_EXCL 00000200 |
| #define | OSAL_O_TRUNC 00001000 |
| #define | OSAL_O_APPEND 00002000 |
| #define | OSAL_O_CLOEXEC 02000000 |
| #define | OSAL_SEEK_SET 0 |
| #define | OSAL_SEEK_CUR 1 |
| #define | OSAL_SEEK_END 2 |
函数 | |
| void * | osal_klib_fopen (const char *file, int flags, int mode) |
| open file and return file pointer. | |
| void | osal_klib_fclose (void *filp) |
| close file. | |
| int | osal_klib_fwrite (const char *buf, unsigned long size, void *filp) |
| kernel write function. | |
| int | osal_klib_fread (char *buf, unsigned long size, void *filp) |
| Kernel read function. | |
| void | osal_klib_fsync (void *filp) |
| Perform a fsync or fdatasync on a file | |
| int | osal_klib_fseek (long long offset, int whence, void *filp) |
| Kernel file seek function. | |
| int | osal_klib_unlink (const char *path) |
| Removes a file or directory. | |
| int | osal_klib_ftruncate (void *filp, unsigned long len) |
| Truncates the size of the file to the specified size. | |
| #define OSAL_O_ACCMODE 00000003 |
| #define OSAL_O_APPEND 00002000 |
| #define OSAL_O_CLOEXEC 02000000 |
| #define OSAL_O_CREAT 00000100 |
| #define OSAL_O_EXCL 00000200 |
| #define OSAL_O_RDONLY 00000000 |
| #define OSAL_O_RDWR 00000002 |
| #define OSAL_O_TRUNC 00001000 |
| #define OSAL_O_WRONLY 00000001 |
| #define OSAL_SEEK_CUR 1 |
| #define OSAL_SEEK_END 2 |
| #define OSAL_SEEK_SET 0 |