Searched refs:current_output (Results 1 - 2 of 2) sorted by relevance

/freebsd-13-stable/contrib/ntp/ntpdc/
H A Dntpdc.c249 static FILE *current_output = NULL; variable
1129 if (current_output == stdout)
1238 current_output = fopen(fname, "w");
1239 if (current_output == NULL) {
1245 current_output = stdout;
1251 (xcmd->handler)(&pcmd, current_output);
1254 fflush(current_output);
1260 (xcmd->handler)(&pcmd, current_output);
1262 if ((NULL != current_output) && (stdout != current_output)) {
[all...]
/freebsd-13-stable/contrib/ntp/ntpq/
H A Dntpq.c454 FILE *current_output = NULL; variable
633 if (ihost && current_output)
634 fputc('\n', current_output);
636 if (icmd && current_output)
637 fputc('\n', current_output);
1584 if (current_output == stdout)
1672 current_output = fopen(fname, "w");
1673 if (current_output == NULL) {
1679 current_output = stdout;
1685 (xcmd->handler)(&pcmd, current_output);
[all...]

Completed in 117 milliseconds