cpout
cpout( cp, obuf);
cpout( cp, stdout);
cpout( cp, obuf);
cpout( cp, stdout);
cpout(cp, obuf);
cpout(cp, stdout);
static void cpout(char *str, FILE *ofd);
cpout( cp, obuf);
cpout( cp, stdout);
if (hp->cpout == NULL) {
hp->cpout = CQ_GET(freebufq);
ps->avail_out = hp->cpout->size - CSIZE;
ps->next_out = hp->cpout->buf + CSIZE;
csize = hp->cpout->size - CSIZE - ps->avail_out;
(void) memcpy(hp->cpout->buf, &cs, CSIZE);
dumpsys_swrite(hp, hp->cpout, csize + CSIZE);
hp->cpout = NULL;
if (hp->cpout != NULL) {
hp->cpout->used = 0;
CQ_PUT(mainq, hp->cpout, CBUF_ERRMSG);
hp->cpout = NULL;
hp->cpout = NULL;
ASSERT(hp->cpin == NULL && hp->cpout == NULL && hp->cperr == NULL);
if (size == 0 && hp->cpout == NULL)
hp->cpout != NULL && hp->out + osize > hp->cpout->size) {
(void) memcpy(hp->cpout->buf, &cs, CSIZE);
dumpsys_swrite(hp, hp->cpout, hp->out);
hp->cpout = NULL;
if (hp->cpout == NULL) {
hp->cpout = CQ_GET(freebufq);
(void) memcpy(hp->cpout->buf + hp->out, &cs, CSIZE);
(void) memcpy(hp->cpout->buf + hp->out, buf, size);
hp->cpout = NULL;
ASSERT(hp->cpin == NULL && hp->cpout == NULL && hp->cperr == NULL);
cbuf_t *cpin, *cpout, *cperr; /* cbuf objects in process */