Home
last modified time | relevance | path

Searched refs:tv (Results 26 – 37 of 37) sorted by relevance

12

/PHP-7.1/sapi/cli/
H A Dphp_cli_server.c256 struct timeval tv; in php_cli_server_get_system_time() local
259 gettimeofday(&tv, NULL); in php_cli_server_get_system_time()
262 php_localtime_r(&tv.tv_sec, &tm); in php_cli_server_get_system_time()
349 struct timeval tv = {0}; in append_essential_headers() local
358 if (!gettimeofday(&tv, NULL)) { in append_essential_headers()
359 zend_string *dt = php_format_date("r", 1, tv.tv_sec, 1); in append_essential_headers()
794 return php_select(poller->max_fd + 1, &poller->active.rfds, &poller->active.wfds, NULL, tv); in php_cli_server_poller_poll()
1794 struct timeval tv = { 10, 0 }; in php_cli_server_client_send_through() local
1811 int nfds = php_pollfd_for(client->sock, POLLOUT, &tv); in php_cli_server_client_send_through()
2520 struct timeval tv = { 1, 0 }; in php_cli_server_do_event_loop() local
[all …]
H A Dphp_cli.c250 struct timeval tv; in sapi_cli_select() local
258 tv.tv_sec = (long)FG(default_socket_timeout); in sapi_cli_select()
259 tv.tv_usec = 0; in sapi_cli_select()
261 ret = php_select(fd+1, &dfd, &wfd, &dfd, &tv); in sapi_cli_select()
/PHP-7.1/main/
H A Dnetwork.c1227 struct timeval tv; local
1254 tv.tv_sec = timeout / 1000;
1255 tv.tv_usec = (timeout - (tv.tv_sec * 1000)) * 1000;
1263 n = select(max_fd + 1, &rset, &wset, &eset, timeout >= 0 ? &tv : NULL);
H A Dfastcgi.c1452 struct timeval tv = {5,0};
1460 ret = select(req->fd + 1, &set, NULL, NULL, &tv) >= 0;
/PHP-7.1/ext/session/
H A Dsession.c1108 struct timeval tv;
1111 gettimeofday(&tv, NULL);
1112 now = tv.tv_sec + PS(cache_expire) * 60;
1273 struct timeval tv;
1276 gettimeofday(&tv, NULL);
1277 t = tv.tv_sec + PS(cookie_lifetime);
2807 struct timeval tv = {0};
2809 gettimeofday(&tv, NULL);
2810 dtv = (double) tv.tv_sec + tv.tv_usec / 1000000.0;
/PHP-7.1/ext/openssl/
H A Dxp_ssl.c2315 struct timeval tv; in php_openssl_sockop_set_option() local
2322 tv.tv_sec = (long)FG(default_socket_timeout); in php_openssl_sockop_set_option()
2324 tv.tv_sec = (time_t)FG(default_socket_timeout); in php_openssl_sockop_set_option()
2326 tv.tv_usec = 0; in php_openssl_sockop_set_option()
2328 tv = sslsock->connect_timeout; in php_openssl_sockop_set_option()
2331 tv.tv_sec = value; in php_openssl_sockop_set_option()
2332 tv.tv_usec = 0; in php_openssl_sockop_set_option()
2337 } else if (php_pollfd_for(sslsock->s.socket, PHP_POLLREADABLE|POLLPRI, &tv) > 0) { in php_openssl_sockop_set_option()
H A Dopenssl.c1247 struct timeval tv; in php_openssl_rand_add_timeval() local
1249 gettimeofday(&tv, NULL); in php_openssl_rand_add_timeval()
1250 RAND_add(&tv, sizeof(tv), 0.0); in php_openssl_rand_add_timeval()
/PHP-7.1/sapi/litespeed/
H A Dlsapilib.c231 struct timeval tv; in LSAPI_Log() local
233 gettimeofday(&tv, NULL); in LSAPI_Log()
234 localtime_r(&tv.tv_sec, &tm); in LSAPI_Log()
239 tm.tm_hour, tm.tm_min, tm.tm_sec, (int)tv.tv_usec); in LSAPI_Log()
1332 struct timeval tv; in init_conn_key() local
1334 gettimeofday( &tv, NULL ); in init_conn_key()
1335 srand( (tv.tv_sec % 0x1000 + tv.tv_usec) ^ rand() ); in init_conn_key()
/PHP-7.1/ext/soap/
H A Dphp_http.c171 struct timeval tv; in http_connect() local
187 tv.tv_sec = Z_LVAL_P(tmp); in http_connect()
188 tv.tv_usec = 0; in http_connect()
189 timeout = &tv; in http_connect()
/PHP-7.1/ext/mysqlnd/
H A Dmysqlnd_connection.c2618 struct timeval tv; local
2662 tv.tv_sec = sec + (usec / 1000000);
2663 tv.tv_usec = usec % 1000000;
2665 tv.tv_sec = sec;
2666 tv.tv_usec = usec;
2669 tv_p = &tv;
/PHP-7.1/main/streams/
H A Duserspace.c1059 struct timeval tv = *(struct timeval*)ptrparam; in php_userstreamop_set_option() local
1060 ZVAL_LONG(&args[1], tv.tv_sec); in php_userstreamop_set_option()
1061 ZVAL_LONG(&args[2], tv.tv_usec); in php_userstreamop_set_option()
/PHP-7.1/win32/build/
H A Dconfutils.js1502 var tv;
1521 tv = configure_subst.Item(sym);
1526 tv = "";
1586 tv += " " + obj;
1706 DEFINE(sym, tv);

Completed in 100 milliseconds

12