Merge branch 'prepare_for_master' of https://gitlink.org.cn/xuos/xiuos into jerryscript

This commit is contained in:
wgzAIIT
2023-11-02 15:18:23 +08:00
225 changed files with 228999 additions and 122 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, ...);