NewOS read/write hooks return ssize_t, but on BeOS, they return status_t and

the number of bytes read/written in an argument. Until now, we had a buggy
mix between those two solutions. Courtesy of Jack Burton.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7100 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-03-29 12:22:24 +00:00
parent ac9d54bb91
commit 07e76c95be

View File

@ -22,9 +22,9 @@ typedef status_t (*device_close_hook) (void *cookie);
typedef status_t (*device_free_hook) (void *cookie); typedef status_t (*device_free_hook) (void *cookie);
typedef status_t (*device_control_hook) (void *cookie, uint32 op, void *data, typedef status_t (*device_control_hook) (void *cookie, uint32 op, void *data,
size_t len); size_t len);
typedef ssize_t (*device_read_hook) (void *cookie, off_t position, void *data, typedef status_t (*device_read_hook) (void *cookie, off_t position, void *data,
size_t *numBytes); size_t *numBytes);
typedef ssize_t (*device_write_hook) (void *cookie, off_t position, typedef status_t (*device_write_hook) (void *cookie, off_t position,
const void *data, size_t *numBytes); const void *data, size_t *numBytes);
typedef status_t (*device_select_hook) (void *cookie, uint8 event, uint32 ref, typedef status_t (*device_select_hook) (void *cookie, uint8 event, uint32 ref,
selectsync *sync); selectsync *sync);