summaryrefslogtreecommitdiff
path: root/uisimulator/common/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/common/io.c')
-rw-r--r--uisimulator/common/io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/uisimulator/common/io.c b/uisimulator/common/io.c
index 20f5a368f4..f794d5fbc3 100644
--- a/uisimulator/common/io.c
+++ b/uisimulator/common/io.c
@@ -352,9 +352,9 @@ int sim_close(int fd)
352 return ret; 352 return ret;
353} 353}
354 354
355int sim_creat(const char *name) 355int sim_creat(const char *name, mode_t mode)
356{ 356{
357 return OPEN(get_sim_pathname(name), O_BINARY | O_WRONLY | O_CREAT | O_TRUNC, 0666); 357 return OPEN(get_sim_pathname(name), O_BINARY | O_WRONLY | O_CREAT | O_TRUNC, mode);
358} 358}
359 359
360ssize_t sim_read(int fd, void *buf, size_t count) 360ssize_t sim_read(int fd, void *buf, size_t count)