2003-10-21 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Tue, 21 Oct 2003 20:41:43 +0000 (20:41 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 21 Oct 2003 20:41:43 +0000 (20:41 +0000)
* callback.c (os_truncate): Call "truncate", and not "stat".

sim/common/ChangeLog
sim/common/callback.c

index 4d4a2fd4520adfed7fc41cf9bb55371a52fcfd9e..9e316d97c485c34bf7f9bd7f81b6a64109f71071 100644 (file)
@@ -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".
index b22548182b5c70c89d0e29621b9b3318bfaa2a13..aa2cf076bd3505d3b2898f8971905bfc7f196d55 100644 (file)
@@ -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
This page took 0.038797 seconds and 4 git commands to generate.