From ee3073b541eb29022a78c33d4a35ffd6e3034d45 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Tue, 21 Oct 2003 20:41:43 +0000 Subject: [PATCH] 2003-10-21 Andrew Cagney * callback.c (os_truncate): Call "truncate", and not "stat". --- sim/common/ChangeLog | 4 ++++ sim/common/callback.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 4d4a2fd4520..9e316d97c48 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +2003-10-21 Andrew Cagney + + * callback.c (os_truncate): Call "truncate", and not "stat". + 2003-10-20 Andrew Cagney * sim-base.h: Replace "struct sec" with "struct bfd_section". diff --git a/sim/common/callback.c b/sim/common/callback.c index b22548182b5..aa2cf076bd3 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 -- 2.30.2