uisimulator: implement sim_modtime
Change-Id: I1094632df092ba63605631333e939cf30b585a59
This commit is contained in:
parent
1298e47134
commit
d6dcb99684
2 changed files with 11 additions and 0 deletions
|
@ -569,6 +569,16 @@ int sim_rename(const char *old, const char *new)
|
|||
return rc;
|
||||
}
|
||||
|
||||
int sim_modtime(const char *path, time_t modtime)
|
||||
{
|
||||
char ospath[SIM_TMPBUF_MAX_PATH];
|
||||
|
||||
if (sim_get_os_path(ospath, path, sizeof (ospath)) < 0)
|
||||
return false;
|
||||
|
||||
return os_modtime(ospath, modtime);
|
||||
}
|
||||
|
||||
off_t sim_filesize(int fildes)
|
||||
{
|
||||
struct filestr_desc *filestr = get_filestr(fildes);
|
||||
|
|
|
@ -68,6 +68,7 @@ ssize_t sim_read(int fildes, void *buf, size_t nbyte);
|
|||
ssize_t sim_write(int fildes, const void *buf, size_t nbyte);
|
||||
int sim_remove(const char *path);
|
||||
int sim_rename(const char *old, const char *new);
|
||||
int sim_modtime(const char *path, time_t modtime);
|
||||
off_t sim_filesize(int fildes);
|
||||
int sim_fsamefile(int fildes1, int fildes2);
|
||||
int sim_relate(const char *path1, const char *path2);
|
||||
|
|
Loading…
Reference in a new issue