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 | d924ccec4fc2a082d00202d410f2798f8fd31f90 (patch) | |
tree | 65cf1ff7c55152f365a8b48175ab92e173708361 /devio | |
parent | 6efa6770c9a6e3291d752aa29401920aefec0912 (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__ */ |