|
int | luat_fs_init (void) |
| 文件系统初始化
|
|
int | luat_fs_mkfs (luat_fs_conf_t *conf) |
| 文件系统格式化
|
|
int | luat_fs_mount (luat_fs_conf_t *conf) |
| 文件系统挂载
|
|
int | luat_fs_umount (luat_fs_conf_t *conf) |
| 文件系统取消挂载
|
|
int | luat_fs_info (const char *path, luat_fs_info_t *conf) |
| 获取文件系统状态
|
|
FILE * | luat_fs_fopen (const char *filename, const char *mode) |
| 打开文件,类似于fopen
|
|
int | luat_fs_getc (FILE *stream) |
| 读到单个字节,类似于getc
|
|
int | luat_fs_fseek (FILE *stream, long int offset, int origin) |
| 设置句柄位置,类似于fseek
|
|
int | luat_fs_ftell (FILE *stream) |
| 获取句柄位置,类似于ftell
|
|
int | luat_fs_fclose (FILE *stream) |
| 关闭句柄位置,类似于fclose
|
|
int | luat_fs_feof (FILE *stream) |
| 是否已经到文件结尾,类似于feof
|
|
int | luat_fs_ferror (FILE *stream) |
| 是否有文件系统错误,类似于ferror
|
|
size_t | luat_fs_fread (void *ptr, size_t size, size_t nmemb, FILE *stream) |
| 读取文件,类似于fread
|
|
size_t | luat_fs_fwrite (const void *ptr, size_t size, size_t nmemb, FILE *stream) |
| 写入文件,类似于fwrite
|
|
int | luat_fs_fflush (FILE *stream) |
|
int | luat_fs_remove (const char *filename) |
| 删除文件,类似于remove
|
|
int | luat_fs_rename (const char *old_filename, const char *new_filename) |
| 文件改名,类似于rename
|
|
size_t | luat_fs_fsize (const char *filename) |
| 文件大小,类似于fsize
|
|
int | luat_fs_fexist (const char *filename) |
| 文件是否存在,类似于fexist
|
|
int | luat_fs_readline (char *buf, int bufsize, FILE *stream) |
| 行读取
|
|
void * | luat_fs_mmap (FILE *stream) |
| 获取文件映射地址
|
|
int | luat_fs_mkdir (char const *_DirName) |
| 创建文件夹
|
|
int | luat_fs_rmdir (char const *_DirName) |
| 删除文件夹,必须为空文件夹
|
|
int | luat_fs_lsdir (char const *_DirName, luat_fs_dirent_t *ents, size_t offset, size_t len) |
| 遍历文件夹
|
|
int | luat_fs_truncate (const char *filename, size_t len) |
| 文件截断
|
|
int | luat_fs_dexist (const char *dir) |
| 文件夹是否存在
|
|