From 8cc2430acba3dd2743555fa2ae1c9edfd53c96c7 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 23 Sep 1996 19:58:17 +0000 Subject: (struct dev, dev_read, dev_write): Use void * buffers. --- storeio/dev.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/storeio/dev.h b/storeio/dev.h index 8ef64090..a5171c9d 100644 --- a/storeio/dev.h +++ b/storeio/dev.h @@ -44,7 +44,7 @@ struct dev /* Non-block I/O is buffered through BUF. BUF_OFFS is the device offset corresponding to the start of BUF (which holds one block); if it is -1, then BUF is inactive. */ - char *buf; + void *buf; off_t buf_offs; int buf_dirty; @@ -82,20 +82,16 @@ int dev_stop_paging (struct dev *dev, int nosync); for any paging activity to cease. */ error_t dev_sync (struct dev *dev, int wait); -#ifdef MSG -char *brep(vm_address_t buf, vm_size_t len); -#endif - /* Write LEN bytes from BUF to DEV, returning the amount actually written in AMOUNT. If successful, 0 is returned, otherwise an error code is returned. */ -error_t dev_write (struct dev *dev, off_t offs, char *buf, size_t len, +error_t dev_write (struct dev *dev, off_t offs, void *buf, size_t len, size_t *amount); /* Read up to AMOUNT bytes from DEV, returned in BUF and LEN in the with the usual mach memory result semantics. If successful, 0 is returned, otherwise an error code is returned. */ error_t dev_read (struct dev *dev, off_t offs, size_t amount, - char **buf, size_t *len); + void **buf, size_t *len); #endif /* !__DEV_H__ */ -- cgit v1.2.3