xmon_write
rc = xmon_write(xmon_outbuf, n);
xmon_write(str, strlen(str));
return xmon_write(&ch, 1) == 1? c: -1;