WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
osal_fileops.h 文件参考
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

宏定义

#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.
 

宏定义说明

◆ OSAL_O_ACCMODE

#define OSAL_O_ACCMODE   00000003

◆ OSAL_O_APPEND

#define OSAL_O_APPEND   00002000

◆ OSAL_O_CLOEXEC

#define OSAL_O_CLOEXEC   02000000

◆ OSAL_O_CREAT

#define OSAL_O_CREAT   00000100

◆ OSAL_O_EXCL

#define OSAL_O_EXCL   00000200

◆ OSAL_O_RDONLY

#define OSAL_O_RDONLY   00000000

◆ OSAL_O_RDWR

#define OSAL_O_RDWR   00000002

◆ OSAL_O_TRUNC

#define OSAL_O_TRUNC   00001000

◆ OSAL_O_WRONLY

#define OSAL_O_WRONLY   00000001

◆ OSAL_SEEK_CUR

#define OSAL_SEEK_CUR   1

◆ OSAL_SEEK_END

#define OSAL_SEEK_END   2

◆ OSAL_SEEK_SET

#define OSAL_SEEK_SET   0