Extend the error constants to cover read & select errors

This resolves issue #16 and basically implements what I suggested
there. See the documentation change for details.