diff options
| author | Miles Bader <miles@gnu.org> | 1995-07-22 22:48:10 +0000 |
|---|---|---|
| committer | Miles Bader <miles@gnu.org> | 1995-07-22 22:48:10 +0000 |
| commit | d90f7d551a27c49b0cd9c24c86c8bfe30a6b3c49 (patch) | |
| tree | 085e5f1cd07cb072e2fc74a60646704bc7da47cb /devio | |
| parent | 908c1e3d003d0dc7d09b9d54433738b9cae04a78 (diff) | |
Add declaration for open_seek.
Diffstat (limited to 'devio')
| -rw-r--r-- | devio/open.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/devio/open.h b/devio/open.h index c202d9ed..80763585 100644 --- a/devio/open.h +++ b/devio/open.h @@ -64,4 +64,10 @@ error_t open_write(struct open *open, vm_address_t buf, vm_size_t len, error_t open_read(struct open *open, vm_address_t *buf, vm_size_t *buf_len, vm_size_t amount, off_t offs); +/* 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 + as OFFS). If no error occurs, zero is returned, otherwise the error code + is returned. */ +error_t open_seek (struct open *open, off_t offs, int whence, off_t *new_offs); + #endif /* !__OPEN_H__ */ |
