summaryrefslogtreecommitdiff
path: root/storeio/dev.h
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-09-23 19:58:17 +0000
committerMiles Bader <miles@gnu.org>1996-09-23 19:58:17 +0000
commit8cc2430acba3dd2743555fa2ae1c9edfd53c96c7 (patch)
treef7a2d942e3e09fbdcd9598ad76c0ad2c3e3b4f6b /storeio/dev.h
parent146d1c1ad94e706942eb7388c7314a8f8b4f0365 (diff)
(struct dev, dev_read, dev_write):
Use void * buffers.
Diffstat (limited to 'storeio/dev.h')
-rw-r--r--storeio/dev.h10
1 files 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__ */