686 |
int |
int |
687 |
stream_sequential_write (stream_t stream, char *buf, size_t size) |
stream_sequential_write (stream_t stream, char *buf, size_t size) |
688 |
{ |
{ |
689 |
|
if (stream == NULL) |
690 |
|
return EINVAL; |
691 |
while (size > 0) |
while (size > 0) |
692 |
{ |
{ |
693 |
size_t sz; |
size_t sz; |
705 |
int |
int |
706 |
stream_strerror (stream_t stream, const char **p) |
stream_strerror (stream_t stream, const char **p) |
707 |
{ |
{ |
708 |
|
if (stream == NULL) |
709 |
|
return EINVAL; |
710 |
if (stream->_strerror) |
if (stream->_strerror) |
711 |
return stream->_strerror (stream, p); |
return stream->_strerror (stream, p); |
712 |
return ENOSYS; |
return ENOSYS; |