feat add SQLite, compile OK
This commit is contained in:
@@ -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, ...)
|
||||
{
|
||||
|
||||
@@ -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, ...);
|
||||
|
||||
Reference in New Issue
Block a user