diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2004-12-13 00:38:38 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2004-12-13 00:38:38 +0000 |
commit | 0d3cd463e38ed3e3f7ae27ca38c00170150a275f (patch) | |
tree | b914bea3898f12983af0fc8a627d7f03d601cc79 /sim/common/callback.c | |
parent | c4b36ce9fe15924cebd13edf3867f19eded2fa89 (diff) | |
download | gdb-0d3cd463e38ed3e3f7ae27ca38c00170150a275f.zip gdb-0d3cd463e38ed3e3f7ae27ca38c00170150a275f.tar.gz gdb-0d3cd463e38ed3e3f7ae27ca38c00170150a275f.tar.bz2 |
* syscall.c (cb_syscall) <case CB_SYS_lstat>: New case.
* callback.c (os_lstat): New function.
Diffstat (limited to 'sim/common/callback.c')
-rw-r--r-- | sim/common/callback.c | 11 |
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, |