Hi,

On Thu, 28 Apr 2011 03:09:20 -0500
William Pitcock <[email protected]> wrote:

> lseek takes off_t as the offset type, but gcc will normally pass a
> 32-bit value unless the number is wider than 16 bits.  so we force
> gcc to pass the constant as off_t type always by casting the constant
> to off_t.
> 
> Signed-off-by: William Pitcock <[email protected]>
[...]

Actually, this patch is not needed.  We found this issue when working
with some derived code that generated TZ environment variable strings
from precompiled tzdata files[1].  This issue was actually caused by us
forgetting to include unistd.h which provided the lseek prototype in
the derived utility, however we did not realize this was missing until
after we fixed a non-existant bug in uclibc.

[1]: http://git.alpinelinux.org/cgit/ncopa/posixtz.git/

William
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to