Lines Matching refs:stream
62 size_t loclen, FILE *stream);
65 int tool_write_headers(struct HdrCbData *hdrcbdata, FILE *stream) in tool_write_headers() argument
72 if(len != fwrite(h->data, 1, len, stream)) in tool_write_headers()
120 if(per->config->headerfile && heads->stream) { in tool_header_cb()
121 size_t rc = fwrite(ptr, size, nmemb, heads->stream); in tool_header_cb()
125 if(fflush(heads->stream)) { in tool_header_cb()
145 else if(per->config->etag_save_file && etag_save->stream && in tool_header_cb()
162 if(ftruncate(fileno(etag_save->stream), 0)) { in tool_header_cb()
166 if(fseek(etag_save->stream, 0, SEEK_SET)) { in tool_header_cb()
171 fwrite(etag_h, size, etag_length, etag_save->stream); in tool_header_cb()
173 fputc('\n', etag_save->stream); in tool_header_cb()
174 (void)fflush(etag_save->stream); in tool_header_cb()
215 if(outs->stream) { in tool_header_cb()
238 if(tool_write_headers(&per->hdrcbdata, outs->stream)) in tool_header_cb()
243 if(!outs->stream && !tool_create_output_file(outs, per->config)) in tool_header_cb()
245 if(tool_write_headers(&per->hdrcbdata, outs->stream)) in tool_header_cb()
289 if(!outs->stream && !tool_create_output_file(outs, per->config)) in tool_header_cb()
300 fprintf(outs->stream, BOLD "%.*s" BOLDOFF ":", (int)namelen, ptr); in tool_header_cb()
302 fwrite(&value[1], cb - namelen - 1, 1, outs->stream); in tool_header_cb()
306 outs->stream); in tool_header_cb()
309 fwrite(&value[1], cb - namelen - 1, 1, outs->stream); in tool_header_cb()
314 fwrite(ptr, cb, 1, outs->stream); in tool_header_cb()
430 FILE *stream) { in write_linked_location() argument
490 fprintf(stream, "%.*s" LINK "%s" LINKST "%.*s" LINKOFF, in write_linked_location()
501 fwrite(location, loclen, 1, stream); in write_linked_location()