On Wed, Mar 09, 2011, Dave Martin wrote:
The upstream master branch of U-Boot on git://git.denx.de/u-boot.git has the bug too.
Yes, this is where I was pasting the bogus code from; I just have no idea why write() would suddenly become partial ones, but I didn't check the eglibc or linux code to see the cases it might happen, so my first reaction was proposing to try the latest version as it might also be an old bug.
In any case we should fix the handling of write() (and read()).