T-Box Basic dev
Loading...
Searching...
No Matches
file.h
Go to the documentation of this file.
1
10
11#ifndef __TBOX_FILE_H__
12#define __TBOX_FILE_H__
13
14#include <stddef.h>
15#include <stdint.h>
16
17#ifdef __cplusplus
18extern "C"
19{
20#endif
21
27
28int tbox_file_read_line(const char* path, char* buf, size_t buf_size);
29int tbox_file_copy(const char* src_path, const char* dst_path);
30int tbox_file_sync(const char* path);
31int tbox_file_ensure_dir(const char* path);
32int tbox_file_get_size(const char* path);
33int tbox_file_get_size_by_fd(int fd);
34uint64_t tbox_file_get_free_space(const char* path);
35int tbox_file_get_partition_size(const char* device, uint64_t* size);
36
40
41#ifdef __cplusplus
42}
43#endif
44
45#endif /* __TBOX_FILE_H__ */