Commit d4bc5519 d4bc5519d3f05c86e29ac7e4a99bc6bd04f04cb3 by Sergey Poznyakoff

(struct _stream): Removed unused member `roff'.

Added new member `offset' for support of sequential access functions.
(_strerror): New method. Return stream-specific error description (if any).
1 parent 9b6f0a8b
......@@ -45,10 +45,12 @@ struct _stream
int flags;
int state;
/* Read space. */
off_t roff;
/* Read space */
struct rbuffer rbuffer;
/* Stream pointer for sequential offset. */
off_t offset;
void (*_destroy) __P ((stream_t));
int (*_open) __P ((stream_t));
int (*_close) __P ((stream_t));
......@@ -60,6 +62,7 @@ struct _stream
int (*_size) __P ((stream_t, off_t *));
int (*_flush) __P ((stream_t));
int (*_setbufsiz)__P ((stream_t, size_t));
int (*_strerror) __P ((stream_t, const char **));
};
#ifdef __cplusplus
......