[uClibc]mipsel syscall stat ... argh!

John Rigby jrigby at lineo.com
Wed Feb 20 16:09:30 UTC 2002


Geoff:

Try the attached patch, it worked for me (I think).

john

On Tuesday 19 February 2002 19:11, Geoffrey Espin wrote:
> Headbanging excercise... (for me at least)
>
> Using uclibc-mipsel to build busybox, its nearly ok, but 'vi'
> doesn't work when opening an existing file.
>
> The problem is stat() returns a huge, bogus number.  I've
> instrumented uclibc/syscall, statfix, and even my kernel's
> linux/fs/stat.c:sys_newstat() call.  The kernel sys_newstat
> reports ".st_size" correctly... but by time it percolates to uclibc:xstat
> it is something else.  Other "struct stat" values may be correct.
>
> Hopefully, by sending this message the answer will come to me as
> soon as I hit <return>.... :-)
>
> Geoff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff.out
Type: text/x-diff
Size: 755 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20020220/f9ea5d06/attachment.bin 


More information about the uClibc mailing list