ftruncate with LFS OFF (was Re: [PATCH v2 24/46] ftruncate: Use ftruncate64 if arch does not have the ftruncate syscall)

Markos Chandras markos.chandras at gmail.com
Mon Dec 10 16:11:09 UTC 2012


On 10 December 2012 05:26, Vineet Gupta <Vineet.Gupta1 at synopsys.com> wrote:
>
> !LFS support doesn't add lot more than what we already have. The 3 which
> seem to fail for me are easily fixable. I've not seen any breakage with
> getdents

Right now, getdents requires either NR_getdents or __getdents64 which
is only compiled for LFS (see libc/sysdeps/linux/common/Makefile.in,
line 14 were are *64.c files are only available for LFS).
So at the moment, getdents fails in a uClibc w/o LFS with undefined
references to __getdents64. The fix is similar to the other functions
but
in this case the code in __getdents ( for WORDSIZE == 32 ) will become
a bit unreadable.

-- 
Regards,
Markos


More information about the uClibc mailing list