/PHP-7.4/sapi/fpm/fpm/ |
H A D | zlog.c | 76 size_t zlog_print_time(struct timeval *tv, char *timebuf, size_t timebuf_len) /* {{{ */ in zlog_print_time() argument 82 localtime_r((const time_t *) &tv->tv_sec, &t)); in zlog_print_time() 84 len += snprintf(timebuf + len, timebuf_len - len, ".%06d", (int) tv->tv_usec); in zlog_print_time() 157 struct timeval tv; in zlog_buf_prefix() local 172 gettimeofday(&tv, 0); in zlog_buf_prefix() 173 len = zlog_print_time(&tv, buf, buf_size); in zlog_buf_prefix()
|
H A D | fpm_request.c | 51 proc->tv = now; in fpm_request_accepting() 82 proc->tv = now; in fpm_request_reading_headers() 122 proc->tv = now; in fpm_request_info() 166 proc->tv = now; in fpm_request_executing() 191 proc->tv = now; in fpm_request_end() 219 proc->tv = now; in fpm_request_finished() 248 struct timeval tv; in fpm_request_check_timed_out() local 266 (int) tv.tv_sec, (int) tv.tv_usec); in fpm_request_check_timed_out() 277 (int) tv.tv_sec, (int) tv.tv_usec); in fpm_request_check_timed_out() 301 if (!tv) return -1; in fpm_request_last_activity() [all …]
|
H A D | fpm_scoreboard.h | 31 struct timeval tv; member
|
H A D | fpm_unix.c | 491 struct timeval tv; in fpm_unix_init_main() local 523 tv.tv_sec = 10; in fpm_unix_init_main() 524 tv.tv_usec = 0; in fpm_unix_init_main() 527 ret = select(fpm_globals.send_config_pipe[0] + 1, &rfds, NULL, NULL, &tv); in fpm_unix_init_main()
|
/PHP-7.4/ext/openssl/ |
H A D | openssl.c | 1288 struct timeval tv; in php_openssl_rand_add_timeval() local 1290 gettimeofday(&tv, NULL); in php_openssl_rand_add_timeval() 1291 RAND_add(&tv, sizeof(tv), 0.0); in php_openssl_rand_add_timeval()
|
H A D | xp_ssl.c | 2442 struct timeval tv; in php_openssl_sockop_set_option() local 2449 tv.tv_sec = (long)FG(default_socket_timeout); in php_openssl_sockop_set_option() 2451 tv.tv_sec = (time_t)FG(default_socket_timeout); in php_openssl_sockop_set_option() 2453 tv.tv_usec = 0; in php_openssl_sockop_set_option() 2455 tv = sslsock->connect_timeout; in php_openssl_sockop_set_option() 2458 tv.tv_sec = value; in php_openssl_sockop_set_option() 2459 tv.tv_usec = 0; in php_openssl_sockop_set_option() 2464 } else if (php_pollfd_for(sslsock->s.socket, PHP_POLLREADABLE|POLLPRI, &tv) > 0) { in php_openssl_sockop_set_option()
|
/PHP-7.4/ext/mysqlnd/ |
H A D | mysqlnd_connection.c | 2591 struct timeval tv; local 2635 tv.tv_sec = sec + (usec / 1000000); 2636 tv.tv_usec = usec % 1000000; 2638 tv.tv_sec = sec; 2639 tv.tv_usec = usec; 2642 tv_p = &tv;
|
H A D | mysqlnd_debug.c | 93 struct timeval tv; in MYSQLND_METHOD() 95 if (gettimeofday(&tv, NULL) != -1) { in MYSQLND_METHOD() 96 if ((tm_p= localtime((const time_t *)&tv.tv_sec))) { in MYSQLND_METHOD() 102 (int) (tv.tv_usec)); in MYSQLND_METHOD() 190 struct timeval tv; in MYSQLND_METHOD() 192 if (gettimeofday(&tv, NULL) != -1) { in MYSQLND_METHOD() 193 if ((tm_p= localtime((const time_t *)&tv.tv_sec))) { in MYSQLND_METHOD() 199 (int) (tv.tv_usec)); in MYSQLND_METHOD()
|
/PHP-7.4/sapi/cli/ |
H A D | php_cli.c | 240 struct timeval tv; in sapi_cli_select() local 247 tv.tv_sec = (long)FG(default_socket_timeout); in sapi_cli_select() 248 tv.tv_usec = 0; in sapi_cli_select() 250 ret = php_select(fd+1, NULL, &wfd, NULL, &tv); in sapi_cli_select()
|
H A D | php_cli_server.c | 261 struct timeval tv; in php_cli_server_get_system_time() local 264 gettimeofday(&tv, NULL); in php_cli_server_get_system_time() 267 php_localtime_r(&tv.tv_sec, &tm); in php_cli_server_get_system_time() 354 struct timeval tv = {0}; in append_essential_headers() local 362 if (!gettimeofday(&tv, NULL)) { in append_essential_headers() 363 zend_string *dt = php_format_date("D, d M Y H:i:s", sizeof("D, d M Y H:i:s") - 1, tv.tv_sec, 0); in append_essential_headers() 873 return php_select(poller->max_fd + 1, &poller->active.rfds, &poller->active.wfds, NULL, tv); in php_cli_server_poller_poll() 1884 struct timeval tv = { 10, 0 }; in php_cli_server_client_send_through() local 1901 int nfds = php_pollfd_for(client->sock, POLLOUT, &tv); in php_cli_server_client_send_through() 2632 struct timeval tv = { 1, 0 }; in php_cli_server_do_event_loop() local [all …]
|
/PHP-7.4/ext/ftp/ |
H A D | ftp.c | 126 struct timeval tv; in ftp_open() local 132 tv.tv_sec = timeout_sec; in ftp_open() 133 tv.tv_usec = 0; in ftp_open() 137 0, &tv, NULL, NULL, NULL, 0, STREAM_SOCKOP_NONE); in ftp_open() 1668 struct timeval tv; in ftp_getdata() local 1697 tv.tv_sec = ftp->timeout_sec; in ftp_getdata() 1698 tv.tv_usec = 0; in ftp_getdata() 1699 if (php_connect_nonb(fd, (struct sockaddr*) &ftp->pasvaddr, size, &tv) == -1) { in ftp_getdata()
|
/PHP-7.4/ext/session/ |
H A D | session.c | 1164 struct timeval tv; in CACHE_LIMITER_FUNC() local 1167 gettimeofday(&tv, NULL); in CACHE_LIMITER_FUNC() 1168 now = tv.tv_sec + PS(cache_expire) * 60; in CACHE_LIMITER_FUNC() 1331 struct timeval tv; in php_session_send_cookie() local 1334 gettimeofday(&tv, NULL); in php_session_send_cookie() 1335 t = tv.tv_sec + PS(cookie_lifetime); in php_session_send_cookie() 3131 struct timeval tv = {0}; in php_session_rfc1867_update() local 3133 gettimeofday(&tv, NULL); in php_session_rfc1867_update() 3134 dtv = (double) tv.tv_sec + tv.tv_usec / 1000000.0; in php_session_rfc1867_update()
|
/PHP-7.4/sapi/litespeed/ |
H A D | lsapilib.c | 250 struct timeval tv; in LSAPI_Log() local 252 gettimeofday(&tv, NULL); in LSAPI_Log() 253 localtime_r(&tv.tv_sec, &tm); in LSAPI_Log() 258 tm.tm_hour, tm.tm_min, tm.tm_sec, (int)tv.tv_usec); in LSAPI_Log() 1364 struct timeval tv; in init_conn_key() local 1366 gettimeofday( &tv, NULL ); in init_conn_key() 1367 srand( (tv.tv_sec % 0x1000 + tv.tv_usec) ^ rand() ); in init_conn_key()
|
/PHP-7.4/ext/standard/ |
H A D | streamsfuncs.c | 97 struct timeval tv; in PHP_FUNCTION() local 126 tv.tv_sec = (long)(conv / 1000000); in PHP_FUNCTION() 127 tv.tv_usec =(long)(conv % 1000000); in PHP_FUNCTION() 129 tv.tv_sec = conv / 1000000; in PHP_FUNCTION() 130 tv.tv_usec = conv % 1000000; in PHP_FUNCTION() 251 struct timeval tv; in PHP_FUNCTION() local 271 tv.tv_sec = conv / 1000000; in PHP_FUNCTION() 272 tv.tv_usec = conv % 1000000; in PHP_FUNCTION() 278 &tv, &errstr in PHP_FUNCTION() 750 struct timeval tv, *tv_p = NULL; in PHP_FUNCTION() local [all …]
|
H A D | uniqid.c | 51 struct timeval tv; in PHP_FUNCTION() local 65 (void)gettimeofday((struct timeval *) &tv, (struct timezone *) NULL); in PHP_FUNCTION() 66 } while (tv.tv_sec == prev_tv.tv_sec && tv.tv_usec == prev_tv.tv_usec); in PHP_FUNCTION() 68 prev_tv.tv_sec = tv.tv_sec; in PHP_FUNCTION() 69 prev_tv.tv_usec = tv.tv_usec; in PHP_FUNCTION() 71 sec = (int) tv.tv_sec; in PHP_FUNCTION() 72 usec = (int) (tv.tv_usec % 0x100000); in PHP_FUNCTION()
|
/PHP-7.4/win32/build/ |
H A D | confutils.js | 1548 var tv; 1567 tv = configure_subst.Item(sym); 1572 tv = ""; 1632 tv += " " + obj; 1757 DEFINE(sym, tv);
|
/PHP-7.4/main/streams/ |
H A D | userspace.c | 1068 struct timeval tv = *(struct timeval*)ptrparam; in php_userstreamop_set_option() local 1069 ZVAL_LONG(&args[1], tv.tv_sec); in php_userstreamop_set_option() 1070 ZVAL_LONG(&args[2], tv.tv_usec); in php_userstreamop_set_option()
|
H A D | xp_socket.c | 320 struct timeval tv; in php_sockop_set_option() local 326 tv.tv_sec = FG(default_socket_timeout); in php_sockop_set_option() 327 tv.tv_usec = 0; in php_sockop_set_option() 329 tv = sock->timeout; in php_sockop_set_option() 332 tv.tv_sec = value; in php_sockop_set_option() 333 tv.tv_usec = 0; in php_sockop_set_option() 338 } else if (php_pollfd_for(sock->socket, PHP_POLLREADABLE|POLLPRI, &tv) > 0) { in php_sockop_set_option()
|
/PHP-7.4/ext/soap/ |
H A D | php_http.c | 171 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.4/main/ |
H A D | network.c | 1193 struct timeval tv; local 1220 tv.tv_sec = timeout / 1000; 1221 tv.tv_usec = (timeout - (tv.tv_sec * 1000)) * 1000; 1229 n = select(max_fd + 1, &rset, &wset, &eset, timeout >= 0 ? &tv : NULL);
|
H A D | fastcgi.c | 1450 struct timeval tv = {5,0}; 1458 ret = select(req->fd + 1, &set, NULL, NULL, &tv) >= 0;
|
/PHP-7.4/ext/sockets/ |
H A D | sockets.c | 976 struct timeval tv; local 1009 tv.tv_usec = usec % 1000000; 1011 tv.tv_sec = s; 1012 tv.tv_usec = usec; 1015 tv_p = &tv; 1985 struct timeval tv; local 2049 optlen = sizeof(tv); 2101 struct timeval tv; local 2191 tv.tv_sec = Z_LVAL_P(sec); 2193 optlen = sizeof(tv); [all …]
|
/PHP-7.4/win32/ |
H A D | getrusage.c | 29 static zend_always_inline void usage_to_timeval(FILETIME *ft, struct timeval *tv) in usage_to_timeval() argument 36 tv->tv_sec = (zend_long) (time.QuadPart / 10000000); in usage_to_timeval() 37 tv->tv_usec = (zend_long) ((time.QuadPart % 10000000) / 10); in usage_to_timeval()
|
H A D | select.c | 33 …I int php_select(php_socket_t max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv) in php_select() argument 53 if (tv == NULL) { in php_select() 56 ms_total = tv->tv_sec * 1000; in php_select() 57 ms_total += tv->tv_usec / 1000; in php_select() 91 return select(-1, rfds, wfds, efds, tv); in php_select()
|
H A D | select.h | 24 … int php_select(php_socket_t max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv);
|