aboutsummaryrefslogtreecommitdiff
path: root/sim/common/callback.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common/callback.c')
-rw-r--r--sim/common/callback.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sim/common/callback.c b/sim/common/callback.c
index 2204787..7ba0c06 100644
--- a/sim/common/callback.c
+++ b/sim/common/callback.c
@@ -407,6 +407,16 @@ os_fstat (p, fd, buf)
return wrap (p, fstat (fdmap (p, fd), buf));
}
+static int
+os_lstat (p, file, buf)
+ host_callback *p;
+ const char *file;
+ struct stat *buf;
+{
+ /* NOTE: hpn/2004-12-12: Same issue here as with os_fstat. */
+ return wrap (p, lstat (file, buf));
+}
+
static int
os_ftruncate (p, fd, len)
host_callback *p;
@@ -589,6 +599,7 @@ host_callback default_callback =
os_stat,
os_fstat,
+ os_lstat,
os_ftruncate,
os_truncate,