Lines Matching refs:tv
588 struct timeval tv; local
641 tv.tv_sec = sec + (usec / 1000000);
642 tv.tv_usec = usec % 1000000;
644 tv.tv_sec = sec;
645 tv.tv_usec = usec;
648 tv_p = &tv;
1642 struct timeval tv; local
1749 optlen = sizeof(tv);
1751 if (getsockopt(php_sock->bsd_socket, level, optname, (char*)&tv, &optlen) != 0) {
1763 tv.tv_sec = timeout ? timeout / 1000 : 0;
1764 tv.tv_usec = timeout ? (timeout * 1000) % 1000000 : 0;
1769 add_assoc_long(return_value, "sec", tv.tv_sec);
1770 add_assoc_long(return_value, "usec", tv.tv_usec);
1875 struct timeval tv; local
2012 tv.tv_sec = Z_LVAL_P(sec);
2013 tv.tv_usec = Z_LVAL_P(usec);
2014 optlen = sizeof(tv);
2015 opt_ptr = &tv;