RFA: Add ftruncate support to newlib/gdb-sim to unbreak -fprofile-arcs
Joern Rennecke
joern.rennecke@superh.com
Thu Jul 10 02:57:00 GMT 2003
> > --- 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.
More information about the Newlib
mailing list