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:
chao an 2022-12-12 23:29:21 +08:00 committed by Xiang Xiao
parent aad16d16e2
commit 47fbfa215e
5 changed files with 6 additions and 6 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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 */

View File

@ -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;
}

View File

@ -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);