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
18
extern
"C"
19
{
20
#endif
21
27
28
int
tbox_file_read_line(
const
char
* path,
char
* buf,
size_t
buf_size);
29
int
tbox_file_copy(
const
char
* src_path,
const
char
* dst_path);
30
int
tbox_file_sync(
const
char
* path);
31
int
tbox_file_ensure_dir(
const
char
* path);
32
int
tbox_file_get_size(
const
char
* path);
33
int
tbox_file_get_size_by_fd(
int
fd);
34
uint64_t tbox_file_get_free_space(
const
char
* path);
35
int
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__ */
include
tbox
file.h
Generated by
1.15.0