diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2006-05-29 05:09:37 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2006-05-29 05:09:37 +0000 |
commit | 48ca5a4d3d37598ebd1cae7304116db9fdac8203 (patch) | |
tree | 68995b314850fcc0c306cf4502af857753e5d937 /sys/dev/sbus/cgtwelvereg.h | |
parent | c6e4dc78ab29fab11e263b608249ce3d38c67839 (diff) |
Change MBR_read() and MBR_write() to return -1 on error and set
errno = EIO for short reads. This makes it easier to check for
read and write errors. Much patient tutoring by weingart@, deraadt@,
and cloder@.
Correctly use ssize_t to store read(2) and write(2) return values.
No functional change, since MBR_read() and MBR_write() return values
aren't currently checked.
OK deraadt@
Diffstat (limited to 'sys/dev/sbus/cgtwelvereg.h')
0 files changed, 0 insertions, 0 deletions