fs/hostfs: mode_t of mkdir(2) should use the nuttx prototype
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
aad16d16e2
commit
47fbfa215e
@ -297,7 +297,7 @@ int host_unlink(const char *pathname)
|
||||
return host_call(HOST_REMOVE, &remove, sizeof(remove));
|
||||
}
|
||||
|
||||
int host_mkdir(const char *pathname, mode_t mode)
|
||||
int host_mkdir(const char *pathname, int mode)
|
||||
{
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
@ -297,7 +297,7 @@ int host_unlink(const char *pathname)
|
||||
return host_call(HOST_REMOVE, &remove, sizeof(remove));
|
||||
}
|
||||
|
||||
int host_mkdir(const char *pathname, mode_t mode)
|
||||
int host_mkdir(const char *pathname, int mode)
|
||||
{
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
@ -544,7 +544,7 @@ int host_unlink(const char *pathname)
|
||||
* Name: host_mkdir
|
||||
****************************************************************************/
|
||||
|
||||
int host_mkdir(const char *pathname, mode_t mode)
|
||||
int host_mkdir(const char *pathname, nuttx_mode_t mode)
|
||||
{
|
||||
/* Just call the host's mkdir routine */
|
||||
|
||||
|
@ -204,7 +204,7 @@ int host_unlink(const char *pathname)
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
int host_mkdir(const char *pathname, mode_t mode)
|
||||
int host_mkdir(const char *pathname, int mode)
|
||||
{
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
@ -200,7 +200,7 @@ void host_rewinddir(void *dirp);
|
||||
int host_closedir(void *dirp);
|
||||
int host_statfs(const char *path, struct nuttx_statfs_s *buf);
|
||||
int host_unlink(const char *pathname);
|
||||
int host_mkdir(const char *pathname, mode_t mode);
|
||||
int host_mkdir(const char *pathname, nuttx_mode_t mode);
|
||||
int host_rmdir(const char *pathname);
|
||||
int host_rename(const char *oldpath, const char *newpath);
|
||||
int host_stat(const char *path, struct nuttx_stat_s *buf);
|
||||
@ -224,7 +224,7 @@ void host_rewinddir(void *dirp);
|
||||
int host_closedir(void *dirp);
|
||||
int host_statfs(const char *path, struct statfs *buf);
|
||||
int host_unlink(const char *pathname);
|
||||
int host_mkdir(const char *pathname, mode_t mode);
|
||||
int host_mkdir(const char *pathname, int mode);
|
||||
int host_rmdir(const char *pathname);
|
||||
int host_rename(const char *oldpath, const char *newpath);
|
||||
int host_stat(const char *path, struct stat *buf);
|
||||
|
Loading…
Reference in New Issue
Block a user