in openbsd-compat/bsd-misc.c [415:427]
int _ssh_compat_fflush(FILE *f) { int r1, r2; if (f == NULL) { r1 = fflush(stdout); r2 = fflush(stderr); if (r1 == -1 || r2 == -1) return -1; return 0; } return fflush(f); }