#include #include #include kiocond ksbufflush(ksbuf* b) { ksraw str = {b -> cur - b -> buf, b -> buf}; b -> cur = b -> buf; return kiosend(b -> channel, str, null); }