Updates for pread/pwrite code.