setup_buffering
retval = setup_buffering(STp, buf, count, 0);
retval = setup_buffering(STp, buf, count, 1);