OSDN Git Service

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 4d4a2fd..9e316d9 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 b225481..aa2cf07 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