This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]