Lines Matching refs:stream

90 tui_fileopen (FILE *stream)  in tui_fileopen()  argument
96 tmpstream->ts_filestream = stream; in tui_fileopen()
126 struct tui_stream *stream = ui_file_data (file); in tui_file_isatty() local
128 if (stream->ts_magic != &tui_file_magic) in tui_file_isatty()
131 if (stream->ts_streamtype == afile) in tui_file_isatty()
132 return (isatty (fileno (stream->ts_filestream))); in tui_file_isatty()
140 struct tui_stream *stream = ui_file_data (file); in tui_file_rewind() local
142 if (stream->ts_magic != &tui_file_magic) in tui_file_rewind()
145 stream->ts_strbuf[0] = '\0'; in tui_file_rewind()
153 struct tui_stream *stream = ui_file_data (file); in tui_file_put() local
155 if (stream->ts_magic != &tui_file_magic) in tui_file_put()
158 if (stream->ts_streamtype == astring) in tui_file_put()
159 write (dest, stream->ts_strbuf, strlen (stream->ts_strbuf)); in tui_file_put()
174 struct tui_stream *stream = ui_file_data (file); in tui_file_fputs() local
176 if (stream->ts_streamtype == astring) in tui_file_fputs()
179 strcat (stream->ts_strbuf, linebuffer); in tui_file_fputs()
190 struct tui_stream *stream = ui_file_data (file); in tui_file_get_strbuf() local
192 if (stream->ts_magic != &tui_file_magic) in tui_file_get_strbuf()
195 return (stream->ts_strbuf); in tui_file_get_strbuf()
204 struct tui_stream *stream = ui_file_data (file); in tui_file_adjust_strbuf() local
207 if (stream->ts_magic != &tui_file_magic) in tui_file_adjust_strbuf()
211 if (stream->ts_streamtype != astring) in tui_file_adjust_strbuf()
214 if (stream->ts_strbuf) in tui_file_adjust_strbuf()
217 non_null_chars = strlen (stream->ts_strbuf); in tui_file_adjust_strbuf()
219 if (n > (stream->ts_buflen - non_null_chars - 1)) in tui_file_adjust_strbuf()
221 stream->ts_buflen = n + non_null_chars + 1; in tui_file_adjust_strbuf()
222 stream->ts_strbuf = xrealloc (stream->ts_strbuf, stream->ts_buflen); in tui_file_adjust_strbuf()
227 stream->ts_strbuf = xmalloc ((n + 1) * sizeof (char)); in tui_file_adjust_strbuf()
233 struct tui_stream *stream = ui_file_data (file); in tui_file_flush() local
235 if (stream->ts_magic != &tui_file_magic) in tui_file_flush()
239 switch (stream->ts_streamtype) in tui_file_flush()
244 fflush (stream->ts_filestream); in tui_file_flush()