Lines Matching defs:ctl
237 static struct strbuf ctl = {
284 if (getmsg(p->fd, &ctl, &data, &flags) < 0) {
1123 struct strbuf ctl;
1126 ctl.maxlen = 0;
1127 ctl.len = len;
1128 ctl.buf = ptr;
1131 if (putmsg(fd, &ctl, (struct strbuf *) NULL, flags) < 0) {
1144 struct strbuf ctl;
1154 ctl.maxlen = MAXDLBUF;
1155 ctl.len = 0;
1156 ctl.buf = bufp;
1159 if (getmsg(fd, &ctl, (struct strbuf*)NULL, &flags) < 0) {
1165 dlp = (union DL_primitives *) ctl.buf;
1202 if (ctl.len < size) {
1205 what, ctl.len, size);
1208 return (ctl.len);
1496 struct strbuf ctl, data;
1513 ctl.maxlen = 0;
1514 ctl.len = dlen;
1515 ctl.buf = (void *)buf;
1521 return (putmsg(fd, &ctl, &data, 0));
1625 struct strbuf ctl;
1636 ctl.maxlen = DL_HP_PPA_ACK_SIZE;
1637 ctl.len = 0;
1638 ctl.buf = (char *)buf;
1654 if (getmsg(fd, &ctl, (struct strbuf *)NULL, &flags) < 0) {
1660 dlp = (dl_hp_ppa_ack_t *)ctl.buf;
1668 if (ctl.len < DL_HP_PPA_ACK_SIZE) {
1671 ctl.len, (unsigned long)DL_HP_PPA_ACK_SIZE);
1681 ctl.maxlen = dlp->dl_length;
1682 ctl.len = 0;
1683 ctl.buf = (char *)ppa_data_buf;
1685 if (getmsg(fd, &ctl, (struct strbuf *)NULL, &flags) < 0) {
1691 if (ctl.len < dlp->dl_length) {
1694 ctl.len, dlp->dl_length);