summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uisimulator/common/filesystem-sim.c10
-rw-r--r--uisimulator/common/filesystem-sim.h1
2 files changed, 11 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
572int 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
572off_t sim_filesize(int fildes) 582off_t sim_filesize(int fildes)
573{ 583{
574 struct filestr_desc *filestr = get_filestr(fildes); 584 struct filestr_desc *filestr = get_filestr(fildes);
diff --git a/uisimulator/common/filesystem-sim.h b/uisimulator/common/filesystem-sim.h
index 7c46c449d8..346d6fa74e 100644
--- a/uisimulator/common/filesystem-sim.h
+++ b/uisimulator/common/filesystem-sim.h
@@ -68,6 +68,7 @@ ssize_t sim_read(int fildes, void *buf, size_t nbyte);
68ssize_t sim_write(int fildes, const void *buf, size_t nbyte); 68ssize_t sim_write(int fildes, const void *buf, size_t nbyte);
69int sim_remove(const char *path); 69int sim_remove(const char *path);
70int sim_rename(const char *old, const char *new); 70int sim_rename(const char *old, const char *new);
71int sim_modtime(const char *path, time_t modtime);
71off_t sim_filesize(int fildes); 72off_t sim_filesize(int fildes);
72int sim_fsamefile(int fildes1, int fildes2); 73int sim_fsamefile(int fildes1, int fildes2);
73int sim_relate(const char *path1, const char *path2); 74int sim_relate(const char *path1, const char *path2);