Add mongoose, add xishutong-arm32.
This commit is contained in:
@@ -15,7 +15,8 @@
|
||||
|
||||
#include <iot-vfs.h>
|
||||
|
||||
typedef void DIR;
|
||||
#include <ff.h>
|
||||
// typedef void void;
|
||||
|
||||
#if defined(LIB_NEWLIB) && defined(_EXFUN)
|
||||
_READ_WRITE_RETURN_TYPE _EXFUN(read, (int __fd, void *__buf, size_t __nbyte));
|
||||
@@ -39,15 +40,15 @@ int fsync(int fd);
|
||||
int ftruncate(int fd, off_t length);
|
||||
|
||||
int mkdir(const char *path, mode_t mode);
|
||||
DIR *opendir(const char *path);
|
||||
int closedir(DIR *dirp);
|
||||
struct dirent *readdir(DIR *dirp);
|
||||
void* opendir(const char* path);
|
||||
int closedir(void* dirp);
|
||||
struct dirent* readdir(void* dirp);
|
||||
int rmdir(const char *path);
|
||||
int chdir(const char *path);
|
||||
char *getcwd(char *buf, size_t size);
|
||||
long telldir(DIR *dirp);
|
||||
void seekdir(DIR *dirp, off_t offset);
|
||||
void rewinddir(DIR *dirp);
|
||||
long telldir(void* dirp);
|
||||
void seekdir(void* dirp, off_t offset);
|
||||
void rewinddir(void* dirp);
|
||||
|
||||
int statfs(const char *path, struct statfs *buf);
|
||||
|
||||
|
||||
@@ -906,7 +906,7 @@ err:
|
||||
return 0;
|
||||
}
|
||||
|
||||
DIR *opendir(const char *path)
|
||||
void* opendir(const char* path)
|
||||
{
|
||||
struct FileDescriptor *fdp;
|
||||
struct MountPoint *mp;
|
||||
@@ -968,7 +968,7 @@ err:
|
||||
return fdp;
|
||||
}
|
||||
|
||||
int closedir(DIR *dirp)
|
||||
int closedir(void* dirp)
|
||||
{
|
||||
struct FileDescriptor *fdp = dirp;
|
||||
int ret;
|
||||
@@ -999,7 +999,7 @@ int closedir(DIR *dirp)
|
||||
}
|
||||
|
||||
static struct dirent dirent;
|
||||
struct dirent *readdir(DIR *dirp)
|
||||
struct dirent* readdir(void* dirp)
|
||||
{
|
||||
struct FileDescriptor *fdp = dirp;
|
||||
int ret;
|
||||
@@ -1036,7 +1036,7 @@ int rmdir(const char *path)
|
||||
int chdir(const char *path)
|
||||
{
|
||||
char *abspath;
|
||||
DIR *dirp;
|
||||
void* dirp;
|
||||
|
||||
if (path == NULL) {
|
||||
SYS_ERR("%s: invalid path\n", __func__);
|
||||
@@ -1074,7 +1074,7 @@ char *getcwd(char *buf, size_t size)
|
||||
return buf;
|
||||
}
|
||||
|
||||
void seekdir(DIR *dirp, off_t offset)
|
||||
void seekdir(void* dirp, off_t offset)
|
||||
{
|
||||
struct FileDescriptor *fdp = dirp;
|
||||
|
||||
@@ -1093,7 +1093,7 @@ void seekdir(DIR *dirp, off_t offset)
|
||||
fdp->mntp->fs->seekdir(fdp, offset);
|
||||
}
|
||||
|
||||
void rewinddir(DIR *dirp)
|
||||
void rewinddir(void* dirp)
|
||||
{
|
||||
struct FileDescriptor *fdp = dirp;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user