TuyaOS
tuya_hal_fs.h
浏览该文件的文档.
1
10#ifndef __TUYA_HAL_FS_H__
11#define __TUYA_HAL_FS_H__
12
13#include <stdint.h>
14#include <stdbool.h>
15#include "tuya_os_adapter.h"
16#include "tal_fs.h"
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
31#define tuya_hal_fs_mkdir(path) tal_fs_mkdir(path)
32
42#define tuya_hal_fs_remove(path) tal_fs_remove(path)
43
54#define tuya_hal_fs_mode(path, mode) tal_fs_mode(path, mode)
55
66#define tuya_hal_fs_is_exist(path, is_exist) tal_fs_is_exist(path, is_exist)
67
78#define tuya_hal_fs_rename(path_old, path_new) tal_fs_rename(path_old, path_new)
79
90#define tuya_hal_dir_open(path, dir) tal_dir_open(path, dir)
91
101#define tuya_hal_dir_close(dir) tal_dir_close(dir)
102
114#define tuya_hal_dir_read(dir, info) tal_dir_read(dir, info)
115
126#define tuya_hal_dir_name(info, name) tal_dir_name(info, name)
127
138#define tuya_hal_dir_is_directory(info, is_dir) tal_dir_is_directory(info, is_dir)
139
151#define tuya_hal_dir_is_regular(info, is_regular) tal_dir_is_regular(info, is_regular)
152
163#define tuya_hal_fopen(path, mode) tal_fopen(path, mode)
164
174#define tuya_hal_fclose(file) tal_fclose(file)
175
187#define tuya_hal_fread(buf, bytes, file) tal_fread(buf, bytes, file)
188
200#define tuya_hal_fwrite(buf, bytes, file) tal_fwrite(buf, bytes, file)
201
211#define tuya_hal_fsync(fd) tal_fsync(fd)
212
224#define tuya_hal_fgets(buf, len, file) tal_fgets(buf, len, file)
225
235#define tuya_hal_feof(file) tal_feof(file)
236
248#define tuya_hal_fseek(file, offs, whence) tal_fseek(file, offs, whence)
249
259#define tuya_hal_ftell(file) tal_ftell(file)
260
270#define tuya_hal_fgetsize(filepath) tal_fgetsize(filepath)
271
283#define tuya_hal_faccess(Cfilepath, mode) tal_faccess(Cfilepath, mode)
284
294#define tuya_hal_fgetc(file) tal_fgetc(file)
295
305#define tuya_hal_fflush(file) tal_fflush(file)
306
316#define tuya_hal_fileno(file) tal_fileno(file)
317
329#define tuya_hal_ftruncate(fd, length) tal_ftruncate(fd, length)
330
331
332#ifdef __cplusplus
333} // extern "C"
334#endif /* __cplusplus */
335
336#endif // __TUYA_HAL_FS_H__
Common process - Initialization
Common process - Initialization