Home
last modified time | relevance | path

Searched refs:tv (Results 1 – 25 of 36) sorted by path

12

/PHP-5.5/ext/ftp/
H A Dftp.c128 struct timeval tv; in ftp_open() local
134 tv.tv_sec = timeout_sec; in ftp_open()
135 tv.tv_usec = 0; in ftp_open()
139 0, &tv, NULL, NULL, NULL, 0 TSRMLS_CC); in ftp_open()
1376 struct timeval tv; in ftp_getdata() local
1404 tv.tv_sec = ftp->timeout_sec; in ftp_getdata()
1405 tv.tv_usec = 0; in ftp_getdata()
1406 if (php_connect_nonb(fd, (struct sockaddr*) &ftp->pasvaddr, size, &tv) == -1) { in ftp_getdata()
/PHP-5.5/ext/mbstring/libmbfl/
H A DAUTHORS12 Maksym Veremeyenko <verem@m1stereo.tv>
/PHP-5.5/ext/mysqlnd/
H A Dmysqlnd.c1359 struct timeval tv; local
1403 tv.tv_sec = sec + (usec / 1000000);
1404 tv.tv_usec = usec % 1000000;
1406 tv.tv_sec = sec;
1407 tv.tv_usec = usec;
1410 tv_p = &tv;
H A Dmysqlnd_debug.c104 struct timeval tv; in MYSQLND_METHOD()
106 if (gettimeofday(&tv, NULL) != -1) { in MYSQLND_METHOD()
107 if ((tm_p= localtime((const time_t *)&tv.tv_sec))) { in MYSQLND_METHOD()
113 (int) (tv.tv_usec)); in MYSQLND_METHOD()
202 struct timeval tv; in MYSQLND_METHOD()
204 if (gettimeofday(&tv, NULL) != -1) { in MYSQLND_METHOD()
205 if ((tm_p= localtime((const time_t *)&tv.tv_sec))) { in MYSQLND_METHOD()
211 (int) (tv.tv_usec)); in MYSQLND_METHOD()
H A Dmysqlnd_net.c161 struct timeval tv; in MYSQLND_METHOD() local
174 tv.tv_sec = net->data->options.timeout_connect; in MYSQLND_METHOD()
175 tv.tv_usec = 0; in MYSQLND_METHOD()
180 hashed_details, (net->data->options.timeout_connect) ? &tv : NULL, in MYSQLND_METHOD()
244 struct timeval tv; in MYSQLND_METHOD() local
246 tv.tv_sec = net->data->options.timeout_read; in MYSQLND_METHOD()
247 tv.tv_usec = 0; in MYSQLND_METHOD()
248 php_stream_set_option(net_stream, PHP_STREAM_OPTION_READ_TIMEOUT, 0, &tv); in MYSQLND_METHOD()
922 struct timeval tv; in MYSQLND_METHOD() local
924 tv.tv_sec = net->data->options.timeout_read; in MYSQLND_METHOD()
[all …]
/PHP-5.5/ext/opcache/Optimizer/
H A Dpass1_5.c38 zend_uint tv = ZEND_RESULT(opline).var; /* temporary variable */
63 replace_tmp_by_const(op_array, opline + 1, tv, &result TSRMLS_CC);
73 zend_uint tv = ZEND_RESULT(opline).var; /* temporary variable */
98 replace_tmp_by_const(op_array, opline + 1, tv, &res TSRMLS_CC);
112 zend_uint tv = ZEND_RESULT(opline).var; /* temporary variable */
132 replace_tmp_by_const(op_array, opline + 1, tv, &result TSRMLS_CC);
222 zend_uint tv = ZEND_RESULT(opline).var;
226 replace_tmp_by_const(op_array, opline, tv, &offset TSRMLS_CC);
237 zend_uint tv = ZEND_RESULT(opline).var;
245 replace_tmp_by_const(op_array, opline, tv, &c TSRMLS_CC);
/PHP-5.5/ext/openssl/
H A Dxp_ssl.c821 struct timeval tv; in php_openssl_sockop_set_option() local
827 tv.tv_sec = FG(default_socket_timeout); in php_openssl_sockop_set_option()
828 tv.tv_usec = 0; in php_openssl_sockop_set_option()
830 tv = sslsock->connect_timeout; in php_openssl_sockop_set_option()
833 tv.tv_sec = value; in php_openssl_sockop_set_option()
834 tv.tv_usec = 0; in php_openssl_sockop_set_option()
839 } else if (php_pollfd_for(sslsock->s.socket, PHP_POLLREADABLE|POLLPRI, &tv) > 0) { in php_openssl_sockop_set_option()
/PHP-5.5/ext/session/
H A Dsession.c298 struct timeval tv; in php_session_create_id() local
303 gettimeofday(&tv, NULL); in php_session_create_id()
1199 struct timeval tv;
1202 gettimeofday(&tv, NULL);
1203 now = tv.tv_sec + PS(cache_expire) * 60;
1368 struct timeval tv;
1371 gettimeofday(&tv, NULL);
1372 t = tv.tv_sec + PS(cookie_lifetime);
2583 struct timeval tv = {0};
2585 gettimeofday(&tv, NULL);
[all …]
/PHP-5.5/ext/soap/
H A Dphp_http.c173 struct timeval tv; in http_connect() local
189 tv.tv_sec = Z_LVAL_PP(tmp); in http_connect()
190 tv.tv_usec = 0; in http_connect()
191 timeout = &tv; in http_connect()
/PHP-5.5/ext/sockets/
H A Dsockets.c845 struct timeval tv; local
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);
1949 struct timeval tv; local
2037 tv.tv_sec = Z_LVAL_PP(sec);
2039 optlen = sizeof(tv);
[all …]
/PHP-5.5/ext/standard/
H A Dfsock.c40 struct timeval tv; in php_fsockopen_stream() local
67 tv.tv_sec = conv / 1000000; in php_fsockopen_stream()
68 tv.tv_usec = conv % 1000000; in php_fsockopen_stream()
80 STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT, hashkey, &tv, NULL, &errstr, &err); in php_fsockopen_stream()
H A Dlcg.c78 struct timeval tv; in lcg_seed() local
80 if (gettimeofday(&tv, NULL) == 0) { in lcg_seed()
81 LCG(s1) = tv.tv_sec ^ (tv.tv_usec<<11); in lcg_seed()
92 if (gettimeofday(&tv, NULL) == 0) { in lcg_seed()
93 LCG(s2) ^= (tv.tv_usec<<11); in lcg_seed()
H A Dstreamsfuncs.c93 struct timeval tv; in PHP_FUNCTION() local
119 tv.tv_sec = conv / 1000000; in PHP_FUNCTION()
120 tv.tv_usec = conv % 1000000; in PHP_FUNCTION()
247 struct timeval tv; in PHP_FUNCTION() local
265 tv.tv_sec = conv / 1000000; in PHP_FUNCTION()
266 tv.tv_usec = conv % 1000000; in PHP_FUNCTION()
277 &tv, &errstr in PHP_FUNCTION()
777 struct timeval tv; in PHP_FUNCTION() local
837 tv.tv_sec = Z_LVAL_PP(sec); in PHP_FUNCTION()
838 tv.tv_usec = usec; in PHP_FUNCTION()
[all …]
H A Duniqid.c54 struct timeval tv; in PHP_FUNCTION() local
71 gettimeofday((struct timeval *) &tv, (struct timezone *) NULL); in PHP_FUNCTION()
72 sec = (int) tv.tv_sec; in PHP_FUNCTION()
73 usec = (int) (tv.tv_usec % 0x100000); in PHP_FUNCTION()
/PHP-5.5/main/
H A Dnetwork.c1145 struct timeval tv; local
1172 tv.tv_sec = timeout / 1000;
1173 tv.tv_usec = (timeout - (tv.tv_sec * 1000)) * 1000;
1181 n = select(max_fd + 1, &rset, &wset, &eset, timeout >= 0 ? &tv : NULL);
/PHP-5.5/main/streams/
H A Duserspace.c1111 struct timeval tv = *(struct timeval*)ptrparam; in php_userstreamop_set_option() local
1112 ZVAL_LONG(zvalue, tv.tv_sec); in php_userstreamop_set_option()
1113 ZVAL_LONG(zptrparam, tv.tv_usec); in php_userstreamop_set_option()
H A Dxp_socket.c277 struct timeval tv; in php_sockop_set_option() local
283 tv.tv_sec = FG(default_socket_timeout); in php_sockop_set_option()
284 tv.tv_usec = 0; in php_sockop_set_option()
286 tv = sock->timeout; in php_sockop_set_option()
289 tv.tv_sec = value; in php_sockop_set_option()
290 tv.tv_usec = 0; in php_sockop_set_option()
295 } else if (php_pollfd_for(sock->socket, PHP_POLLREADABLE|POLLPRI, &tv) > 0) { in php_sockop_set_option()
/PHP-5.5/sapi/cgi/
H A Dfastcgi.c1252 struct timeval tv = {5,0};
1260 ret = select(req->fd + 1, &set, NULL, NULL, &tv) >= 0;
/PHP-5.5/sapi/cli/
H A Dphp_cli.c239 struct timeval tv; in sapi_cli_select() local
247 tv.tv_sec = FG(default_socket_timeout); in sapi_cli_select()
248 tv.tv_usec = 0; in sapi_cli_select()
250 ret = php_select(fd+1, &dfd, &wfd, &dfd, &tv); in sapi_cli_select()
H A Dphp_cli_server.c362 struct timeval tv; in php_cli_server_get_system_time() local
365 gettimeofday(&tv, NULL); in php_cli_server_get_system_time()
368 php_localtime_r(&tv.tv_sec, &tm); in php_cli_server_get_system_time()
903 static int php_cli_server_poller_poll(php_cli_server_poller *poller, struct timeval *tv) /* {{{ */ in php_cli_server_poller_poll() argument
907 return php_select(poller->max_fd + 1, &poller->active.rfds, &poller->active.wfds, NULL, tv); in php_cli_server_poller_poll()
1817 struct timeval tv = { 10, 0 }; in php_cli_server_client_send_through() local
1824 int nfds = php_pollfd_for(client->sock, POLLOUT, &tv); in php_cli_server_client_send_through()
2489 struct timeval tv = { 1, 0 }; in php_cli_server_do_event_loop() local
2490 int n = php_cli_server_poller_poll(&server->poller, &tv); in php_cli_server_do_event_loop()
/PHP-5.5/sapi/fpm/fpm/
H A Dfastcgi.c896 struct timeval tv = {5,0};
904 ret = select(req->fd + 1, &set, NULL, NULL, &tv) >= 0;
H A Dfpm_clock.c34 int fpm_clock_get(struct timeval *tv) /* {{{ */ in fpm_clock_get() argument
44 tv->tv_sec = ts.tv_sec; in fpm_clock_get()
45 tv->tv_usec = ts.tv_nsec / 1000; in fpm_clock_get()
49 return gettimeofday(tv, 0); in fpm_clock_get()
88 int fpm_clock_get(struct timeval *tv) /* {{{ */ in fpm_clock_get() argument
100 tv->tv_sec = aTime.tv_sec; in fpm_clock_get()
101 tv->tv_usec = aTime.tv_nsec / 1000; in fpm_clock_get()
115 int fpm_clock_get(struct timeval *tv) /* {{{ */ in fpm_clock_get() argument
117 return gettimeofday(tv, 0); in fpm_clock_get()
H A Dfpm_clock.h11 int fpm_clock_get(struct timeval *tv);
H A Dfpm_php_trace.c47 struct timeval tv; in fpm_php_trace_dump() local
53 gettimeofday(&tv, 0); in fpm_php_trace_dump()
55 zlog_print_time(&tv, buf, buf_size); in fpm_php_trace_dump()
H A Dfpm_request.c53 proc->tv = now; in fpm_request_accepting()
84 proc->tv = now; in fpm_request_reading_headers()
126 proc->tv = now; in fpm_request_info()
170 proc->tv = now; in fpm_request_executing()
195 proc->tv = now; in fpm_request_end()
223 proc->tv = now; in fpm_request_finished()
252 struct timeval tv; in fpm_request_check_timed_out() local
269 (int) tv.tv_sec, (int) tv.tv_usec); in fpm_request_check_timed_out()
279 (int) tv.tv_sec, (int) tv.tv_usec); in fpm_request_check_timed_out()
303 if (!tv) return -1; in fpm_request_last_activity()
[all …]

Completed in 84 milliseconds

12