[PATCH] support kernels without __ARCH_WANT_SYSCALL_OFF_T
Mark Salter
msalter at redhat.com
Tue May 1 16:09:40 UTC 2012
On Thu, 2012-04-26 at 23:53 -0400, Mike Frysinger wrote:
> > --- a/libc/sysdeps/linux/common/ftruncate.c
> > +++ b/libc/sysdeps/linux/common/ftruncate.c
> >
> > +#ifdef __NR_ftruncate
> > _syscall2(int, ftruncate, int, fd, __off_t, length)
> > +#elif defined __NR_truncate64
> > +int ftruncate(int fd, __off_t length)
> > +{
> > + return ftruncate64(fd, length);
> > +}
> > +#endif
>
> this would be a candidate for merging into existing ftruncate64.c so we can
> make them aliases to each other i think ...
Can we? ftruncate64 takes __off64_t length so I didn't think an alias
would work.
--Mark
More information about the uClibc
mailing list