-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathardvfs.h
123 lines (96 loc) · 2.56 KB
/
ardvfs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#include "ardio.h"
//this file need for suchesful linking functions into sod
static int ArdVfs_chdir(const char *zPath) /* int (*xChdir)(const char *) */
{
_chdir(zPath);
}
static int ArdVfs_getcwd(SyBlob *pCtx) /* int (*xGetcwd)(SyBlob *) */
{
_getcwd(pCtx);
}
static int ArdVfs_mkdir(const char *zPath, int mode, int recursive) /* int (*xMkdir)(const char *, int, int) */
{
_mkdir(zPath,mode,recursive);
}
static int ArdVfs_rmdir(const char *zPath) /* int (*xRmdir)(const char *) */
{
_rmdir(zPath);
}
static int ArdVfs_isdir(const char *zPath) /* int (*xIsdir)(const char *) */
{
_isdir(zPath);
}
static int ArdVfs_Rename(const char *ch) /* int (*xRename)(const char *, const char *) */
{
_Rename(ch);
}
static int ArdVfs_Realpath(const char *ch) /*int (*xRealpath)(const char *, SyBlob *)*/
{
_Realpath(ch);
}
/* Directory */
static int ArdDir_Open(const char *ch, void **ppHandle)
{
_Dir_Open(ch,ppHandle);
}
static int ArdDir_Close(const char *ch)
{
_Dir_Close(ch);
}
static int ArdDir_Read(const char *ch)
{
_Dir_Read(ch);
}
static int ArdDir_Rewind(const char *ch)
{
_Dir_Rewind(ch);
}
/* Systems function */
static int ArdVfs_unlink(const char *ch) /* int (*xUnlink)(const char *) */
{
_unlink(ch);
}
static int ArdVfs_FileExists(const char *ch) /* int (*xFileExists)(const char *) */
{
_FileExists(ch);
}
static int64_t ArdVfs_DiskFreeSpace(const char *ch) /* int64_t (*xFreeSpace)(const char *) */
{
_DiskFreeSpace(ch);
}
static int64_t ArdVfs_DiskTotalSpace(const char *ch) /* int64_t (*xTotalSpace)(const char *) */
{
_DiskTotalSpace(ch);
}
static int64_t ArdVfs_FileSize(const char *ch) /* int64_t (*xFileSize)(const char *) */
{
_FileSize(ch);
}
static int ArdVfs_isfile(const char *ch) /* int (*xIsfile)(const char *) */
{
_isfile(ch);
}
static int ArdVfs_isReadable(const char *ch) /* int (*xReadable)(const char *) */
{
_isReadable(ch);
}
static int ArdVfs_iswritable(const char *ch) /* int (*xWritable)(const char *) */
{
_iswritable(ch);
}
static int ArdVfs_isexecutable(const char *ch) /* int (*xExecutable)(const char *) */
{
_isexecutable(ch);
}
static int ArdVfs_Mmap(const char *ch,void **p,size_t *nb) /* int (*xMmap)(const char *, void **, size_t *) */
{
_Mmap(ch,p,nb);
}
static int ArdVfs_Unmap(void *p,size_t sz) /* void (*xUnmap)(void *, size_t); */
{
_Unmap(p,sz);
}
static float ArdVfs_GetTicks(void)
{
_GetTicks();
}