mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
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:
@@ -297,7 +297,7 @@ int host_unlink(const char *pathname)
|
|||||||
return host_call(HOST_REMOVE, &remove, sizeof(remove));
|
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;
|
return -ENOSYS;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -297,7 +297,7 @@ int host_unlink(const char *pathname)
|
|||||||
return host_call(HOST_REMOVE, &remove, sizeof(remove));
|
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;
|
return -ENOSYS;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -544,7 +544,7 @@ int host_unlink(const char *pathname)
|
|||||||
* Name: host_mkdir
|
* 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 */
|
/* Just call the host's mkdir routine */
|
||||||
|
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ int host_unlink(const char *pathname)
|
|||||||
return -ENOSYS;
|
return -ENOSYS;
|
||||||
}
|
}
|
||||||
|
|
||||||
int host_mkdir(const char *pathname, mode_t mode)
|
int host_mkdir(const char *pathname, int mode)
|
||||||
{
|
{
|
||||||
return -ENOSYS;
|
return -ENOSYS;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ void host_rewinddir(void *dirp);
|
|||||||
int host_closedir(void *dirp);
|
int host_closedir(void *dirp);
|
||||||
int host_statfs(const char *path, struct nuttx_statfs_s *buf);
|
int host_statfs(const char *path, struct nuttx_statfs_s *buf);
|
||||||
int host_unlink(const char *pathname);
|
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_rmdir(const char *pathname);
|
||||||
int host_rename(const char *oldpath, const char *newpath);
|
int host_rename(const char *oldpath, const char *newpath);
|
||||||
int host_stat(const char *path, struct nuttx_stat_s *buf);
|
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_closedir(void *dirp);
|
||||||
int host_statfs(const char *path, struct statfs *buf);
|
int host_statfs(const char *path, struct statfs *buf);
|
||||||
int host_unlink(const char *pathname);
|
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_rmdir(const char *pathname);
|
||||||
int host_rename(const char *oldpath, const char *newpath);
|
int host_rename(const char *oldpath, const char *newpath);
|
||||||
int host_stat(const char *path, struct stat *buf);
|
int host_stat(const char *path, struct stat *buf);
|
||||||
|
|||||||
Reference in New Issue
Block a user