Lines Matching refs:ctl
171 static struct strbuf ctl = { variable
216 if (getmsg(p->fd, &ctl, &data, &flags) < 0) { in pcap_read_dlpi()
1009 struct strbuf ctl; local
1012 ctl.maxlen = 0;
1013 ctl.len = len;
1014 ctl.buf = ptr;
1017 if (putmsg(fd, &ctl, (struct strbuf *) NULL, flags) < 0) {
1030 struct strbuf ctl; local
1040 ctl.maxlen = MAXDLBUF;
1041 ctl.len = 0;
1042 ctl.buf = bufp;
1045 if (getmsg(fd, &ctl, (struct strbuf*)NULL, &flags) < 0) {
1051 dlp = MAKE_DL_PRIMITIVES(ctl.buf);
1095 if (ctl.len < size) {
1098 what, ctl.len, size);
1101 return (ctl.len);
1385 struct strbuf ctl, data; local
1402 ctl.maxlen = 0;
1403 ctl.len = dlen;
1404 ctl.buf = (void *)buf;
1410 return (putmsg(fd, &ctl, &data, 0));
1494 struct strbuf ctl; local
1505 ctl.maxlen = DL_HP_PPA_ACK_SIZE;
1506 ctl.len = 0;
1507 ctl.buf = (char *)buf;
1523 if (getmsg(fd, &ctl, (struct strbuf *)NULL, &flags) < 0) {
1529 dlp = (dl_hp_ppa_ack_t *)ctl.buf;
1537 if (ctl.len < DL_HP_PPA_ACK_SIZE) {
1540 ctl.len, (unsigned long)DL_HP_PPA_ACK_SIZE);
1550 ctl.maxlen = dlp->dl_length;
1551 ctl.len = 0;
1552 ctl.buf = (char *)ppa_data_buf;
1554 if (getmsg(fd, &ctl, (struct strbuf *)NULL, &flags) < 0) {
1560 if (ctl.len < dlp->dl_length) {
1563 ctl.len, (unsigned long)dlp->dl_length);