[uClibc] fstat and fstat64
Mike Frysinger
vapier at gentoo.org
Mon Jul 4 12:58:38 UTC 2005
On Tuesday 28 June 2005 02:05 am, John Bowler wrote:
> Ok, so as not to lose this, it's http://busybox.net/bugs/view.php?id=314
the bug tracker is a poor place for discussion imho ...
> <snip>
> Both taken from the www.kernel.org source, no changes. No conditional
> compilation in either case (for this structure member). Therefore the two
> relevant (low order) bytes of st_dev are at offset_ofs of:
> <snip>
yeah, i'm on the same page now i think :)
the posted xstatconv.c contains too much arch-specific info ... how about this
version ?
note: i was browsing the linux 2.4 and 2.6 git repos for diff arches and it
looks like mips opted to not screw with their stat struct so it is not
affected, ppc uses long long in both 2.4 and 2.6, but sheb and sparc should
be affected by the same issue (they went from short in 2.4 to long in 2.6)
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kernel_stat.h
Type: text/x-chdr
Size: 1697 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20050704/970551f0/attachment.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xstatconv.c
Type: text/x-csrc
Size: 3704 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20050704/970551f0/attachment.c
More information about the uClibc
mailing list