Lines Matching defs:optval
1743 int optval = 0; /* XXX: gcc */
1784 error = sockopt_getint(sopt, &optval);
1788 if (optval)
1798 error = sockopt_getint(sopt, &optval);
1807 if (optval < 1) {
1814 if (sbreserve(&so->so_snd, (u_long)optval, so) == 0) {
1823 if (sbreserve(&so->so_rcv, (u_long)optval, so) == 0) {
1836 if (optval > so->so_snd.sb_hiwat)
1837 optval = so->so_snd.sb_hiwat;
1839 so->so_snd.sb_lowat = optval;
1843 if (optval > so->so_rcv.sb_hiwat)
1844 optval = so->so_rcv.sb_hiwat;
1846 so->so_rcv.sb_lowat = optval;
1867 optval = tv.tv_sec * hz + tv.tv_usec / tick;
1868 if (optval == 0 && tv.tv_usec != 0)
1869 optval = 1;
1873 so->so_snd.sb_timeo = optval;
1876 so->so_rcv.sb_timeo = optval;
1948 int error, optval, opt;
2011 optval = (opt == SO_SNDTIMEO ?
2015 tv.tv_sec = optval / hz;
2016 tv.tv_usec = (optval % hz) * tick;