diff options
author | Miles Bader <miles@gnu.org> | 1996-09-23 19:58:30 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-09-23 19:58:30 +0000 |
commit | fad27b7a697bc0ae039a365588ed331506104e62 (patch) | |
tree | b165322de49366d8762701874c83d71cc016d5d8 /storeio | |
parent | 5f5a34e1846c2139be4dc9da8e712cf91778ac94 (diff) |
(open_read, open_write):
Use void * buffers.
Diffstat (limited to 'storeio')
-rw-r--r-- | storeio/open.c | 4 | ||||
-rw-r--r-- | storeio/open.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/storeio/open.c b/storeio/open.c index f27dc3ab..b1013a94 100644 --- a/storeio/open.c +++ b/storeio/open.c @@ -52,7 +52,7 @@ open_free (struct open *open) and returns the number of bytes written in AMOUNT. If no error occurs, zero is returned, otherwise the error code is returned. */ error_t -open_write (struct open *open, off_t offs, char *buf, size_t len, +open_write (struct open *open, off_t offs, void *buf, size_t len, vm_size_t *amount) { error_t err; @@ -75,7 +75,7 @@ open_write (struct open *open, off_t offs, char *buf, size_t len, otherwise the error code is returned. */ error_t open_read (struct open *open, off_t offs, size_t amount, - char **buf, vm_size_t *len) + void **buf, vm_size_t *len) { error_t err; if (offs < 0) diff --git a/storeio/open.h b/storeio/open.h index efb2128d..cbac2a37 100644 --- a/storeio/open.h +++ b/storeio/open.h @@ -50,14 +50,14 @@ void open_free (struct open *open); (which may be ignored if the device doesn't support random access), and returns the number of bytes written in AMOUNT. If no error occurs, zero is returned, otherwise the error code is returned. */ -error_t open_write (struct open *open, off_t offs, char *buf, size_t len, +error_t open_write (struct open *open, off_t offs, void *buf, size_t len, size_t *amount); /* Reads up to AMOUNT bytes from the device into BUF and BUF_LEN using the standard mach out-array convention. If no error occurs, zero is returned, otherwise the error code is returned. */ error_t open_read (struct open *open, off_t offs, size_t amount, - char **buf, size_t *buf_len); + void **buf, size_t *buf_len); /* Set OPEN's location to OFFS, interpreted according to WHENCE as by seek. The new absolute location is returned in NEW_OFFS (and may not be the same |