feat add SQLite, compile OK

This commit is contained in:
Liu_Weichao
2023-10-25 16:07:23 +08:00
parent 0705bdaf1a
commit dfa6b664ac
30 changed files with 219137 additions and 3 deletions

View File

@@ -163,6 +163,37 @@ int PrivTimerModify(timer_t timerid, int flags, const struct itimerspec *restric
/*********************fs**************************/
#ifdef FS_VFS
/************************Files Posix Transform***********************/
int PrivLseek(int fd, off_t offset, int whence)
{
return lseek(fd, offset, whence);
}
int PrivFsync(int fd)
{
return fsync(fd);
}
int PrivFstat(int fd, struct stat *buf)
{
return fstat(fd, buf);
}
int PrivStat(const char *path, struct stat *buf)
{
return stat(path, buf);
}
int PrivUnlink(const char *path)
{
return unlink(path);
}
char *PrivGetcwd(char *buf, size_t size)
{
return getcwd(buf, size);
}
/************************Driver Posix Transform***********************/
int PrivOpen(const char *path, int flags, ...)
{

View File

@@ -430,6 +430,13 @@ int PrivTaskDelay(int32_t ms);
int PrivUserTaskSearch(void);
uint32_t PrivGetTickTime();
/*********************Files**************************/
int PrivLseek(int fd, off_t offset, int whence);
int PrivFsync(int fd);
int PrivFstat(int fd, struct stat *buf);
int PrivStat(const char *path, struct stat *buf);
int PrivUnlink(const char *path);
char *PrivGetcwd(char *buf, size_t size);
/*********************driver*************************/
int PrivOpen(const char *path, int flags, ...);