As a continuation of the thread "bug in read(2) syscall" onlinux-smp I would like to confirm that the same bug exists inwrite(2) as well, i.e. write(1, 0, 10) returns 10 instead of -1with errno=EFAULT.

This is only when the descriptor is a tty - on files and /dev/nullit's okay...