Lines Matching refs:ctl
234 show_msg(str, fd, ctl, dat, flags) in show_msg() argument
237 struct svr4_strbuf *ctl;
245 if (ctl != NULL) {
246 if ((error = copyin(ctl, &buf, sizeof(buf))) != 0)
1471 struct svr4_strbuf dat, ctl; local
1483 show_msg(">putmsg", uap->fd, uap->ctl,
1487 if (uap->ctl != NULL) {
1488 if ((error = copyin(uap->ctl, &ctl, sizeof(ctl))) != 0) {
1496 ctl.len = -1;
1517 if (ctl.len < 0 || ctl.len > sizeof(sc)) {
1518 DPRINTF(("putmsg: Bad control size %d != %d\n", ctl.len,
1523 if ((error = copyin(ctl.buf, &sc, ctl.len)) != 0)
1557 if (ctl.len == 8) {
1645 struct svr4_strbuf dat, ctl; local
1665 show_msg(">getmsg", uap->fd, uap->ctl,
1669 if (uap->ctl != NULL) {
1670 if ((error = copyin(uap->ctl, &ctl, sizeof(ctl))) != 0)
1672 if (ctl.len < 0)
1676 ctl.len = -1;
1677 ctl.maxlen = 0;
1697 if (ctl.maxlen == -1 || dat.maxlen == -1) {
1728 ctl.len = 8;
1772 ctl.len = 40;
1787 ctl.len = 8;
1818 ctl.len = 40;
1826 ctl.len = 134;
1847 if (ctl.maxlen > 36 && ctl.len < 36)
1848 ctl.len = 36;
1850 if (ctl.len > sizeof(sc))
1851 ctl.len = sizeof(sc);
1853 if ((error = copyin(ctl.buf, &sc, ctl.len)) != 0) {
1947 if (uap->ctl) {
1948 if (ctl.len > sizeof(sc))
1949 ctl.len = sizeof(sc);
1950 if (ctl.len != -1)
1951 error = copyout(&sc, ctl.buf, ctl.len);
1954 error = copyout(&ctl, uap->ctl, sizeof(ctl));
1983 show_msg("<getmsg", uap->fd, uap->ctl,