midistat_prepare
error = (midistat_prepare(&midistat_sbuf) > 0) ? 0 : ENOMEM;
static int midistat_prepare(struct sbuf * s);