void main()
{
if(write(34,"Hello",5)!=5)
perror("eek");
}
./a.out
eek: Bad file descriptor
Glibc appears to work beautifully. And in fact there isnt actually
any glibc code really wrapping write() that would allow a bug to occur.
Alan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html