This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: RFA: Add ftruncate support to newlib/gdb-sim to unbreak -fprofile-arcs
- From: Joern Rennecke <joern dot rennecke at superh dot com>
- To: nathan at codesourcery dot com (Nathan Sidwell), newlib at sources dot redhat dot com
- Cc: joern dot rennecke at superh dot com (Joern Rennecke), gdb-patches at sources dot redhat dot com, gcc at gcc dot gnu dot org
- Date: Wed, 9 Jul 2003 21:12:03 +0100 (BST)
- Subject: Re: RFA: Add ftruncate support to newlib/gdb-sim to unbreak -fprofile-arcs
> > --- libc/sys/sh/truncate.c Wed Jul 9 17:18:48 2003
> > ***************
> > *** 0 ****
> > --- 1,9 ----
> > + #include <_ansi.h>
> > + #include <sys/types.h>
> > + #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.