Lines Matching refs:tv
572 struct timeval tv; local
620 tv.tv_sec = sec + (usec / 1000000);
621 tv.tv_usec = usec % 1000000;
623 tv.tv_sec = sec;
624 tv.tv_usec = usec;
627 tv_p = &tv;
1594 struct timeval tv; local
1677 optlen = sizeof(tv);
1679 if (getsockopt(php_sock->bsd_socket, level, optname, (char*)&tv, &optlen) != 0) {
1691 tv.tv_sec = timeout ? timeout / 1000 : 0;
1692 tv.tv_usec = timeout ? (timeout * 1000) % 1000000 : 0;
1697 add_assoc_long(return_value, "sec", tv.tv_sec);
1698 add_assoc_long(return_value, "usec", tv.tv_usec);
1803 struct timeval tv; local
1913 tv.tv_sec = Z_LVAL_P(sec);
1914 tv.tv_usec = Z_LVAL_P(usec);
1915 optlen = sizeof(tv);
1916 opt_ptr = &tv;