[PATCH] libc/sysdeps: Fix common-generic stat.h for BE part 2
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Fri Jul 26 07:44:50 UTC 2013
On Tue, Jul 23, 2013 at 05:35:51PM +0100, Markos Chandras wrote:
> On 23 July 2013 17:32, Mischa Jonker <Mischa.Jonker at synopsys.com> wrote:
> > Previous patch only fixed the build. This patch fixes the behavior at
> > run-time as well.
> >
> > It fixes "Value too large for defined data type" messages caused by
> > fstat syscall wrapper returning -EOVERFLOW.
> >
> > Signed-off-by: Mischa Jonker <mjonker at synopsys.com>
> > ---
> > libc/sysdeps/linux/common-generic/bits/stat.h | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/libc/sysdeps/linux/common-generic/bits/stat.h b/libc/sysdeps/linux/common-generic/bits/stat.h
> > index 07716ab..945c408 100644
> > --- a/libc/sysdeps/linux/common-generic/bits/stat.h
> > +++ b/libc/sysdeps/linux/common-generic/bits/stat.h
> > @@ -63,8 +63,8 @@ struct stat
> > unsigned long long __pad4;
> > long __pad5;
> > long st_size; /* Size of file, in bytes. */
> > - int __pad6;
> > int st_blksize; /* Optimal block size for I/O. */
> > + int __pad6;
> > long __pad7;
> > long st_blocks; /* Number 512-byte blocks allocated */
> > # endif /* __LITTLE_ENDIAN */
> Looks reasonable to me. Thanks for fixing it.
Applied, thanks!
More information about the uClibc
mailing list