extern "C" { void flushAll(); void drainWriteBuffer(); }