Lines Matching refs:stream
39 fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream) in fwrite() argument
44 if ((stream->flags & __SWR) == 0 || size == 0) in fwrite()
49 struct __file_bufio *bf = (struct __file_bufio *) stream; in fwrite()
51 if ((stream->flags & __SBUF) != 0 && in fwrite()
56 __bufio_lock(stream); in fwrite()
57 __bufio_setdir_locked(stream, __SWR); in fwrite()
64 int ret = __bufio_flush_locked(stream); in fwrite()
66 stream->flags |= ret; in fwrite()
79 if (__bufio_flush_locked(stream) >= 0) { in fwrite()
83 stream->flags |= _FDEV_ERR; in fwrite()
92 __bufio_unlock(stream); in fwrite()
98 if (stream->put(*cp++, stream) < 0) in fwrite()