linux.c: Implement the return-code protocol described.