Lines Matching refs:tv
845 struct timeval tv; local
884 tv.tv_sec = Z_LVAL_P(sec) + (usec / 1000000);
885 tv.tv_usec = usec % 1000000;
887 tv.tv_sec = Z_LVAL_P(sec);
888 tv.tv_usec = usec;
891 tv_p = &tv;
1836 struct timeval tv; local
1898 optlen = sizeof(tv);
1900 if (getsockopt(php_sock->bsd_socket, level, optname, (char*)&tv, &optlen) != 0) {
1912 tv.tv_sec = timeout ? timeout / 1000 : 0;
1913 tv.tv_usec = timeout ? (timeout * 1000) % 1000000 : 0;
1918 add_assoc_long(return_value, "sec", tv.tv_sec);
1919 add_assoc_long(return_value, "usec", tv.tv_usec);
1949 struct timeval tv; local
2037 tv.tv_sec = Z_LVAL_PP(sec);
2038 tv.tv_usec = Z_LVAL_PP(usec);
2039 optlen = sizeof(tv);
2040 opt_ptr = &tv;