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 ...@@ -45,10 +45,12 @@ struct _stream
45 int flags; 45 int flags;
46 int state; 46 int state;
47 47
48 /* Read space. */ 48 /* Read space */
49 off_t roff;
50 struct rbuffer rbuffer; 49 struct rbuffer rbuffer;
51 50
51 /* Stream pointer for sequential offset. */
52 off_t offset;
53
52 void (*_destroy) __P ((stream_t)); 54 void (*_destroy) __P ((stream_t));
53 int (*_open) __P ((stream_t)); 55 int (*_open) __P ((stream_t));
54 int (*_close) __P ((stream_t)); 56 int (*_close) __P ((stream_t));
...@@ -60,6 +62,7 @@ struct _stream ...@@ -60,6 +62,7 @@ struct _stream
60 int (*_size) __P ((stream_t, off_t *)); 62 int (*_size) __P ((stream_t, off_t *));
61 int (*_flush) __P ((stream_t)); 63 int (*_flush) __P ((stream_t));
62 int (*_setbufsiz)__P ((stream_t, size_t)); 64 int (*_setbufsiz)__P ((stream_t, size_t));
65 int (*_strerror) __P ((stream_t, const char **));
63 }; 66 };
64 67
65 #ifdef __cplusplus 68 #ifdef __cplusplus
......