diff options
Diffstat (limited to 'uisimulator/common/filesystem-sim.c')
-rw-r--r-- | uisimulator/common/filesystem-sim.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/uisimulator/common/filesystem-sim.c b/uisimulator/common/filesystem-sim.c index 766beb3fda..8d7fb14931 100644 --- a/uisimulator/common/filesystem-sim.c +++ b/uisimulator/common/filesystem-sim.c | |||
@@ -569,6 +569,16 @@ int sim_rename(const char *old, const char *new) | |||
569 | return rc; | 569 | return rc; |
570 | } | 570 | } |
571 | 571 | ||
572 | int sim_modtime(const char *path, time_t modtime) | ||
573 | { | ||
574 | char ospath[SIM_TMPBUF_MAX_PATH]; | ||
575 | |||
576 | if (sim_get_os_path(ospath, path, sizeof (ospath)) < 0) | ||
577 | return false; | ||
578 | |||
579 | return os_modtime(ospath, modtime); | ||
580 | } | ||
581 | |||
572 | off_t sim_filesize(int fildes) | 582 | off_t sim_filesize(int fildes) |
573 | { | 583 | { |
574 | struct filestr_desc *filestr = get_filestr(fildes); | 584 | struct filestr_desc *filestr = get_filestr(fildes); |