From 07e76c95be49f3b175d87deece8917b174a13843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 29 Mar 2004 12:22:24 +0000 Subject: [PATCH] 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 --- headers/os/drivers/Drivers.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/headers/os/drivers/Drivers.h b/headers/os/drivers/Drivers.h index c1824ae213..b0836fdb5a 100644 --- a/headers/os/drivers/Drivers.h +++ b/headers/os/drivers/Drivers.h @@ -22,9 +22,9 @@ typedef status_t (*device_close_hook) (void *cookie); typedef status_t (*device_free_hook) (void *cookie); typedef status_t (*device_control_hook) (void *cookie, uint32 op, void *data, 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); -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); typedef status_t (*device_select_hook) (void *cookie, uint8 event, uint32 ref, selectsync *sync);