Orthogonal approach to read()/write() that handles EINTR and counts > 2^31