From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14418 invoked by alias); 9 Jul 2003 20:12:18 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 13890 invoked from network); 9 Jul 2003 20:12:05 -0000 Received: from unknown (HELO ns2.uk.superh.com) (193.128.105.170) by sources.redhat.com with SMTP; 9 Jul 2003 20:12:05 -0000 Received: from sh-uk-ex01.uk.w2k.superh.com (sh-uk-ex01 [192.168.16.17]) by ns2.uk.superh.com (8.11.6+Sun/8.11.6) with ESMTP id h69K7QK00876; Wed, 9 Jul 2003 21:07:26 +0100 (BST) Received: from linsvr1.uk.superh.com ([192.168.16.50]) by sh-uk-ex01.uk.w2k.superh.com with Microsoft SMTPSVC(5.0.2195.5329); Wed, 9 Jul 2003 21:12:37 +0100 Received: (from renneckej@localhost) by linsvr1.uk.superh.com (8.11.6/8.11.6) id h69KC3P04817; Wed, 9 Jul 2003 21:12:03 +0100 From: Joern Rennecke Message-Id: <200307092012.h69KC3P04817@linsvr1.uk.superh.com> Subject: Re: RFA: Add ftruncate support to newlib/gdb-sim to unbreak -fprofile-arcs To: nathan@codesourcery.com (Nathan Sidwell), newlib@sources.redhat.com Date: Wed, 09 Jul 2003 20:12:00 -0000 Cc: joern.rennecke@superh.com (Joern Rennecke), gdb-patches@sources.redhat.com, gcc@gcc.gnu.org In-Reply-To: <3F0C74B1.7000204@codesourcery.com> from "Nathan Sidwell" at Jul 09, 2003 09:01:53 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 09 Jul 2003 20:12:37.0475 (UTC) FILETIME=[7113A330:01C34656] X-SW-Source: 2003-07/txt/msg00193.txt.bz2 > > --- libc/sys/sh/truncate.c Wed Jul 9 17:18:48 2003 > > *************** > > *** 0 **** > > --- 1,9 ---- > > + #include <_ansi.h> > > + #include > > + #include "sys/syscall.h" > > + > > + int > > + truncate (const char *path, off_t length) > > + { > > + return __trap34 (SYS_ftruncate, path, length, 0); > ^ typo? Oops, yes, that should be SYS_truncate. Please consider the newlib patch thusly amended.