Home | History | Annotate | Download | only in kern

Lines Matching defs:optval

1746 	int optval = 0; /* XXX: gcc */
1787 error = sockopt_getint(sopt, &optval);
1791 if (optval)
1801 error = sockopt_getint(sopt, &optval);
1810 if (optval < 1) {
1817 if (sbreserve(&so->so_snd, (u_long)optval, so) == 0) {
1826 if (sbreserve(&so->so_rcv, (u_long)optval, so) == 0) {
1839 if (optval > so->so_snd.sb_hiwat)
1840 optval = so->so_snd.sb_hiwat;
1842 so->so_snd.sb_lowat = optval;
1846 if (optval > so->so_rcv.sb_hiwat)
1847 optval = so->so_rcv.sb_hiwat;
1849 so->so_rcv.sb_lowat = optval;
1870 optval = tv.tv_sec * hz + tv.tv_usec / tick;
1871 if (optval == 0 && tv.tv_usec != 0)
1872 optval = 1;
1876 so->so_snd.sb_timeo = optval;
1879 so->so_rcv.sb_timeo = optval;
1951 int error, optval, opt;
2014 optval = (opt == SO_SNDTIMEO ?
2018 tv.tv_sec = optval / hz;
2019 tv.tv_usec = (optval % hz) * tick;