aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-10-21 20:41:43 +0000
committerAndrew Cagney <cagney@redhat.com>2003-10-21 20:41:43 +0000
commitee3073b541eb29022a78c33d4a35ffd6e3034d45 (patch)
treee6e9925da994cb039c9ccee7b54ddca14c7a56cb /sim
parentaf9ba62190ff90757b9f66469de3a1a64760704e (diff)
downloadfsf-binutils-gdb-ee3073b541eb29022a78c33d4a35ffd6e3034d45.zip
fsf-binutils-gdb-ee3073b541eb29022a78c33d4a35ffd6e3034d45.tar.gz
fsf-binutils-gdb-ee3073b541eb29022a78c33d4a35ffd6e3034d45.tar.bz2
2003-10-21 Andrew Cagney <cagney@redhat.com>
* callback.c (os_truncate): Call "truncate", and not "stat".
Diffstat (limited to 'sim')
-rw-r--r--sim/common/ChangeLog4
-rw-r--r--sim/common/callback.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 4d4a2fd..9e316d9 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,7 @@
+2003-10-21 Andrew Cagney <cagney@redhat.com>
+
+ * callback.c (os_truncate): Call "truncate", and not "stat".
+
2003-10-20 Andrew Cagney <cagney@redhat.com>
* sim-base.h: Replace "struct sec" with "struct bfd_section".
diff --git a/sim/common/callback.c b/sim/common/callback.c
index b225481..aa2cf07 100644
--- a/sim/common/callback.c
+++ b/sim/common/callback.c
@@ -420,7 +420,7 @@ os_truncate (p, file, len)
const char *file;
long len;
{
- return wrap (p, stat (file, len));
+ return wrap (p, truncate (file, len));
}
static int