diff options
Diffstat (limited to 'sim/common/sim-io.c')
-rw-r--r-- | sim/common/sim-io.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sim/common/sim-io.c b/sim/common/sim-io.c index 68ef3f9..250f37d 100644 --- a/sim/common/sim-io.c +++ b/sim/common/sim-io.c @@ -387,3 +387,15 @@ sim_io_poll_read (SIM_DESC sd, return sim_io_read (sd, sim_io_fd, buf, sizeof_buf); #endif } + +int +sim_io_stat (SIM_DESC sd, const char *path, struct stat *buf) +{ + return STATE_CALLBACK (sd)->stat (STATE_CALLBACK (sd), path, buf); +} + +int +sim_io_fstat (SIM_DESC sd, int fd, struct stat *buf) +{ + return STATE_CALLBACK (sd)->fstat (STATE_CALLBACK (sd), fd, buf); +} |