diff --git a/arch/arm/src/common/arm_hostfs.c b/arch/arm/src/common/arm_hostfs.c index 01855695e6..9cd69e1dc6 100644 --- a/arch/arm/src/common/arm_hostfs.c +++ b/arch/arm/src/common/arm_hostfs.c @@ -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; } diff --git a/arch/risc-v/src/common/riscv_hostfs.c b/arch/risc-v/src/common/riscv_hostfs.c index e20700e1ea..10bc258557 100644 --- a/arch/risc-v/src/common/riscv_hostfs.c +++ b/arch/risc-v/src/common/riscv_hostfs.c @@ -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; } diff --git a/arch/sim/src/sim/posix/sim_hostfs.c b/arch/sim/src/sim/posix/sim_hostfs.c index 2e155e4aff..df33dccab4 100644 --- a/arch/sim/src/sim/posix/sim_hostfs.c +++ b/arch/sim/src/sim/posix/sim_hostfs.c @@ -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 */ diff --git a/arch/xtensa/src/common/xtensa_hostfs.c b/arch/xtensa/src/common/xtensa_hostfs.c index 0122970b90..a6bc4f70e2 100644 --- a/arch/xtensa/src/common/xtensa_hostfs.c +++ b/arch/xtensa/src/common/xtensa_hostfs.c @@ -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; } diff --git a/include/nuttx/fs/hostfs.h b/include/nuttx/fs/hostfs.h index 85cd7cdcb6..7e0262de1f 100644 --- a/include/nuttx/fs/hostfs.h +++ b/include/nuttx/fs/hostfs.h @@ -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);