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
1730 optlen = sizeof(tv);
1732 if (getsockopt(php_sock->bsd_socket, level, optname, (char*)&tv, &optlen) != 0) {
1744 tv.tv_sec = timeout ? timeout / 1000 : 0;
1745 tv.tv_usec = timeout ? (timeout * 1000) % 1000000 : 0;
1750 add_assoc_long(return_value, "sec", tv.tv_sec);
1751 add_assoc_long(return_value, "usec", tv.tv_usec);
1856 struct timeval tv; local
1972 tv.tv_sec = Z_LVAL_P(sec);
1973 tv.tv_usec = Z_LVAL_P(usec);
1974 optlen = sizeof(tv);
1975 opt_ptr = &tv;