Mercurial > hg > xemacs-beta
comparison src/lstream.h @ 5795:d2c0ff38ad5c
Report lstream errors when encoding/decoding.
See <CAHCOHQ=FAieD-2nP303fMvwkii8HK2z+X7gRZ2+4PH1CA5_-NA@mail.gmail.com> in
xemacs-patches.
author | Jerry James <james@xemacs.org> |
---|---|
date | Wed, 14 May 2014 14:16:24 -0600 |
parents | 65d65b52d608 |
children | a216b3c2b09e |
comparison
equal
deleted
inserted
replaced
5794:2d20d57d4e7b | 5795:d2c0ff38ad5c |
---|---|
172 Bytecount size); | 172 Bytecount size); |
173 /* Return non-zero if the last write operation on the stream resulted | 173 /* Return non-zero if the last write operation on the stream resulted |
174 in an attempt to block (EWOULDBLOCK). If this method does not | 174 in an attempt to block (EWOULDBLOCK). If this method does not |
175 exists, the implementation returns 0 */ | 175 exists, the implementation returns 0 */ |
176 int (*was_blocked_p) (Lstream *stream); | 176 int (*was_blocked_p) (Lstream *stream); |
177 /* If the reader or writer method returned LSTREAM_ERROR, the errno | |
178 associated with the error, or zero if there was no system error or this | |
179 method is not implemented. */ | |
180 int (*error) (Lstream *stream); | |
177 /* Rewind the stream. If this is NULL, the stream is not seekable. */ | 181 /* Rewind the stream. If this is NULL, the stream is not seekable. */ |
178 int (*rewinder) (Lstream *stream); | 182 int (*rewinder) (Lstream *stream); |
179 /* Indicate whether this stream is seekable -- i.e. it can be rewound. | 183 /* Indicate whether this stream is seekable -- i.e. it can be rewound. |
180 This method is ignored if the stream does not have a rewind | 184 This method is ignored if the stream does not have a rewind |
181 method. If this method is not present, the result is determined | 185 method. If this method is not present, the result is determined |
304 void Lstream_fungetc (Lstream *lstr, int c); | 308 void Lstream_fungetc (Lstream *lstr, int c); |
305 Bytecount Lstream_read (Lstream *lstr, void *data, Bytecount size); | 309 Bytecount Lstream_read (Lstream *lstr, void *data, Bytecount size); |
306 Charcount Lstream_character_tell (Lstream *); | 310 Charcount Lstream_character_tell (Lstream *); |
307 int Lstream_write (Lstream *lstr, const void *data, | 311 int Lstream_write (Lstream *lstr, const void *data, |
308 Bytecount size); | 312 Bytecount size); |
313 int Lstream_errno (Lstream *lstr); | |
309 int Lstream_was_blocked_p (Lstream *lstr); | 314 int Lstream_was_blocked_p (Lstream *lstr); |
310 void Lstream_unread (Lstream *lstr, const void *data, Bytecount size); | 315 void Lstream_unread (Lstream *lstr, const void *data, Bytecount size); |
311 int Lstream_rewind (Lstream *lstr); | 316 int Lstream_rewind (Lstream *lstr); |
312 int Lstream_seekable_p (Lstream *lstr); | 317 int Lstream_seekable_p (Lstream *lstr); |
313 int Lstream_close (Lstream *lstr); | 318 int Lstream_close (Lstream *lstr); |