Lines Matching refs:stream

34 static int writeTime(FILE *stream, const struct writeoutvar *wovar,
38 static int writeString(FILE *stream, const struct writeoutvar *wovar,
42 static int writeLong(FILE *stream, const struct writeoutvar *wovar,
46 static int writeOffset(FILE *stream, const struct writeoutvar *wovar,
155 static int writeTime(FILE *stream, const struct writeoutvar *wovar, in writeTime() argument
179 fprintf(stream, "\"%s\":", wovar->name); in writeTime()
181 fprintf(stream, "%" CURL_FORMAT_CURL_OFF_TU in writeTime()
186 fprintf(stream, "\"%s\":null", wovar->name); in writeTime()
282 static int writeString(FILE *stream, const struct writeoutvar *wovar, in writeString() argument
417 fprintf(stream, "\"%s\":", wovar->name); in writeString()
418 jsonWriteString(stream, strinfo, FALSE); in writeString()
421 fputs(strinfo, stream); in writeString()
425 fprintf(stream, "\"%s\":null", wovar->name); in writeString()
433 static int writeLong(FILE *stream, const struct writeoutvar *wovar, in writeLong() argument
479 fprintf(stream, "\"%s\":%ld", wovar->name, longinfo); in writeLong()
482 fprintf(stream, "%03ld", longinfo); in writeLong()
484 fprintf(stream, "%ld", longinfo); in writeLong()
489 fprintf(stream, "\"%s\":null", wovar->name); in writeLong()
495 static int writeOffset(FILE *stream, const struct writeoutvar *wovar, in writeOffset() argument
516 fprintf(stream, "\"%s\":", wovar->name); in writeOffset()
518 fprintf(stream, "%" CURL_FORMAT_CURL_OFF_T, offinfo); in writeOffset()
522 fprintf(stream, "\"%s\":null", wovar->name); in writeOffset()
542 FILE *stream = stdout; in ourWriteOut() local
557 fputc('%', stream); in ourWriteOut()
570 fputs("%{", stream); in ourWriteOut()
591 fclose(stream); in ourWriteOut()
593 stream = stdout; in ourWriteOut()
597 fclose(stream); in ourWriteOut()
599 stream = tool_stderr; in ourWriteOut()
602 ourWriteOutJSON(stream, variables, in ourWriteOut()
607 headerJSON(stream, per); in ourWriteOut()
610 (void)wv->writefunc(stream, wv, per, per_result, false); in ourWriteOut()
633 fputs(header->value, stream); in ourWriteOut()
638 fputs("%header{", stream); in ourWriteOut()
660 fclose(stream); in ourWriteOut()
661 stream = stream2; in ourWriteOut()
668 fputs("%output{", stream); in ourWriteOut()
672 fputc('%', stream); in ourWriteOut()
673 fputc(ptr[1], stream); in ourWriteOut()
681 fputc('\r', stream); in ourWriteOut()
684 fputc('\n', stream); in ourWriteOut()
687 fputc('\t', stream); in ourWriteOut()
691 fputc(*ptr, stream); in ourWriteOut()
692 fputc(ptr[1], stream); in ourWriteOut()
698 fputc(*ptr, stream); in ourWriteOut()
703 fclose(stream); in ourWriteOut()