Lines Matching refs:ctlbuf
337 struct strbuf ctlbuf; in _t_is_ok() local
350 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) in _t_is_ok()
357 free(ctlbuf.buf); in _t_is_ok()
359 tiptr->ti_ctlbuf = ctlbuf.buf; in _t_is_ok()
373 while ((retval = getmsg(fd, &ctlbuf, &databuf, &flags)) < 0) { in _t_is_ok()
394 if (ctlbuf.len < (int)sizeof (t_scalar_t)) { in _t_is_ok()
406 pptr = (union T_primitives *)ctlbuf.buf; in _t_is_ok()
410 if ((ctlbuf.len < (int)sizeof (struct T_ok_ack)) || in _t_is_ok()
417 free(ctlbuf.buf); in _t_is_ok()
419 tiptr->ti_ctlbuf = ctlbuf.buf; in _t_is_ok()
427 if ((ctlbuf.len < (int)sizeof (struct T_error_ack)) || in _t_is_ok()
460 free(ctlbuf.buf); in _t_is_ok()
462 tiptr->ti_ctlbuf = ctlbuf.buf; in _t_is_ok()
510 char *ctlbuf, *rcvbuf; in _t_alloc_bufs() local
556 if ((ctlbuf = malloc(size2)) == NULL) { in _t_alloc_bufs()
569 free(ctlbuf); in _t_alloc_bufs()
576 tiptr->ti_ctlbuf = ctlbuf; in _t_alloc_bufs()
1106 char ctlbuf[sizeof (t_scalar_t)]; in _t_adjust_state() local
1115 arg.ctlbuf.buf = ctlbuf; in _t_adjust_state()
1116 arg.ctlbuf.maxlen = (int)sizeof (ctlbuf); in _t_adjust_state()
1117 arg.ctlbuf.len = 0; in _t_adjust_state()
1143 if (((arg.ctlbuf.len == 4) && in _t_adjust_state()
1145 ((*(int32_t *)arg.ctlbuf.buf) == T_DATA_IND)) || in _t_adjust_state()
1146 ((arg.ctlbuf.len == 0) && arg.databuf.len)) { in _t_adjust_state()
1158 if ((arg.ctlbuf.len == 4) && in _t_adjust_state()
1160 ((*(int32_t *)arg.ctlbuf.buf) == T_CONN_CON)) in _t_adjust_state()
1170 if (((arg.ctlbuf.len == 4) && in _t_adjust_state()
1172 ((*(int32_t *)arg.ctlbuf.buf) == T_DATA_IND)) || in _t_adjust_state()
1173 ((arg.ctlbuf.len == 0) && arg.databuf.len)) { in _t_adjust_state()