/php-src/sapi/fpm/fpm/ |
H A D | fpm_clock.c | 31 int fpm_clock_get(struct timeval *tv) /* {{{ */ in fpm_clock_get() argument 41 tv->tv_sec = ts.tv_sec; in fpm_clock_get() 42 tv->tv_usec = ts.tv_nsec / 1000; in fpm_clock_get() 46 return gettimeofday(tv, 0); in fpm_clock_get() 84 int fpm_clock_get(struct timeval *tv) /* {{{ */ in fpm_clock_get() argument 96 tv->tv_sec = aTime.tv_sec; in fpm_clock_get() 97 tv->tv_usec = aTime.tv_nsec / 1000; in fpm_clock_get() 110 int fpm_clock_get(struct timeval *tv) /* {{{ */ in fpm_clock_get() argument 112 return gettimeofday(tv, 0); in fpm_clock_get()
|
H A D | fpm_request.c | 53 proc->tv = now; in fpm_request_accepting() 85 proc->tv = now; in fpm_request_reading_headers() 124 proc->tv = now; in fpm_request_info() 167 proc->tv = now; in fpm_request_executing() 191 proc->tv = now; in fpm_request_end() 221 proc->tv = now; in fpm_request_finished() 249 struct timeval tv; in fpm_request_check_timed_out() local 267 (int) tv.tv_sec, (int) tv.tv_usec); in fpm_request_check_timed_out() 278 (int) tv.tv_sec, (int) tv.tv_usec); in fpm_request_check_timed_out() 302 if (!tv) return -1; in fpm_request_last_activity() [all …]
|
H A D | fpm_request.h | 22 void fpm_request_check_timed_out(struct fpm_child_s *child, struct timeval *tv, int terminate_timeo… 25 int fpm_request_last_activity(struct fpm_child_s *child, struct timeval *tv);
|
H A D | fpm_clock.h | 9 int fpm_clock_get(struct timeval *tv);
|
H A D | fpm_php_trace.c | 41 struct timeval tv; in fpm_php_trace_dump() local 47 gettimeofday(&tv, 0); in fpm_php_trace_dump() 49 zlog_print_time(&tv, buf, sizeof(buf)); in fpm_php_trace_dump()
|
H A D | fpm_scoreboard.h | 34 struct timeval tv; member
|
H A D | zlog.c | 77 size_t zlog_print_time(struct timeval *tv, char *timebuf, size_t timebuf_len) /* {{{ */ in zlog_print_time() argument 83 localtime_r((const time_t *) &tv->tv_sec, &t)); in zlog_print_time() 85 len += snprintf(timebuf + len, timebuf_len - len, ".%06d", (int) tv->tv_usec); in zlog_print_time() 161 struct timeval tv; in zlog_buf_prefix() local 176 gettimeofday(&tv, 0); in zlog_buf_prefix() 177 len = zlog_print_time(&tv, buf, buf_size); in zlog_buf_prefix()
|
H A D | fpm_unix.c | 608 struct timeval tv; in fpm_unix_init_main() local 640 tv.tv_sec = 10; in fpm_unix_init_main() 641 tv.tv_usec = 0; in fpm_unix_init_main() 644 ret = select(fpm_globals.send_config_pipe[0] + 1, &rfds, NULL, NULL, &tv); in fpm_unix_init_main()
|
H A D | zlog.h | 27 size_t zlog_print_time(struct timeval *tv, char *timebuf, size_t timebuf_len);
|
/php-src/ext/standard/ |
H A D | uniqid.c | 48 struct timeval tv; in PHP_FUNCTION() local 62 (void)gettimeofday((struct timeval *) &tv, (struct timezone *) NULL); in PHP_FUNCTION() 63 } while (tv.tv_sec == prev_tv.tv_sec && tv.tv_usec == prev_tv.tv_usec); in PHP_FUNCTION() 65 prev_tv.tv_sec = tv.tv_sec; in PHP_FUNCTION() 66 prev_tv.tv_usec = tv.tv_usec; in PHP_FUNCTION() 68 sec = (int) tv.tv_sec; in PHP_FUNCTION() 69 usec = (int) (tv.tv_usec % 0x100000); in PHP_FUNCTION()
|
H A D | fsock.c | 41 struct timeval tv; in php_fsockopen_stream() local 90 tv.tv_sec = conv / 1000000; in php_fsockopen_stream() 93 tv.tv_sec = conv / 1000000; in php_fsockopen_stream() 95 tv.tv_usec = conv % 1000000; in php_fsockopen_stream() 99 STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT, hashkey, &tv, NULL, &errstr, &err); in php_fsockopen_stream()
|
H A D | streamsfuncs.c | 103 struct timeval tv; in PHP_FUNCTION() local 143 tv.tv_sec = (long)(conv / 1000000); in PHP_FUNCTION() 146 tv.tv_sec = conv / 1000000; in PHP_FUNCTION() 147 tv.tv_usec = conv % 1000000; in PHP_FUNCTION() 149 tv_pointer = &tv; in PHP_FUNCTION() 266 struct timeval tv; in PHP_FUNCTION() local 297 tv.tv_sec = conv / 1000000; in PHP_FUNCTION() 298 tv.tv_usec = conv % 1000000; in PHP_FUNCTION() 300 tv_pointer = &tv; in PHP_FUNCTION() 766 struct timeval tv, *tv_p = NULL; in PHP_FUNCTION() local [all …]
|
/php-src/win32/ |
H A D | select.c | 31 …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 51 if (tv == NULL) { in php_select() 54 ms_total = tv->tv_sec * 1000; in php_select() 55 ms_total += tv->tv_usec / 1000; in php_select() 89 return select(-1, rfds, wfds, efds, tv); in php_select()
|
H A D | getrusage.c | 27 static zend_always_inline void usage_to_timeval(FILETIME *ft, struct timeval *tv) in usage_to_timeval() argument 34 tv->tv_sec = (zend_long) (time.QuadPart / 10000000); in usage_to_timeval() 35 tv->tv_usec = (zend_long) ((time.QuadPart % 10000000) / 10); in usage_to_timeval()
|
H A D | time.c | 26 static zend_always_inline void getfilesystemtime(struct timeval *tv) in getfilesystemtime() argument 46 tv->tv_sec = (long)(ff / 1000000Ui64); in getfilesystemtime() 47 tv->tv_usec = (long)(ff % 1000000Ui64); in getfilesystemtime()
|
H A D | select.h | 22 … int php_select(php_socket_t max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv);
|
/php-src/ext/random/ |
H A D | random.c | 653 struct timeval tv; local 664 gettimeofday(&tv, NULL); 665 fallback_seed_add(&c, &tv, sizeof(tv)); 683 gettimeofday(&tv, NULL); 684 fallback_seed_add(&c, &tv, sizeof(tv)); 695 gettimeofday(&tv, NULL); 696 fallback_seed_add(&c, &tv, sizeof(tv)); 699 gettimeofday(&tv, NULL); 700 fallback_seed_add(&c, &tv, sizeof(tv));
|
/php-src/ext/mysqlnd/ |
H A D | mysqlnd_vio.c | 193 struct timeval tv; in MYSQLND_METHOD() local 207 tv.tv_sec = vio->data->options.timeout_connect; in MYSQLND_METHOD() 208 tv.tv_usec = 0; in MYSQLND_METHOD() 213 hashed_details, (vio->data->options.timeout_connect) ? &tv : NULL, in MYSQLND_METHOD() 273 struct timeval tv; in MYSQLND_METHOD() local 275 tv.tv_sec = vio->data->options.timeout_read; in MYSQLND_METHOD() 276 tv.tv_usec = 0; in MYSQLND_METHOD() 277 php_stream_set_option(net_stream, PHP_STREAM_OPTION_READ_TIMEOUT, 0, &tv); in MYSQLND_METHOD() 607 struct timeval tv; in MYSQLND_METHOD() local 609 tv.tv_sec = net->data->options.timeout_read; in MYSQLND_METHOD() [all …]
|
H A D | mysqlnd_debug.c | 79 struct timeval tv; in MYSQLND_METHOD() local 81 if (gettimeofday(&tv, NULL) != -1) { in MYSQLND_METHOD() 82 const time_t sec = tv.tv_sec; in MYSQLND_METHOD() 89 (int) (tv.tv_usec)); in MYSQLND_METHOD() 166 struct timeval tv; in MYSQLND_METHOD() local 168 if (gettimeofday(&tv, NULL) != -1) { in MYSQLND_METHOD() 169 const time_t sec = tv.tv_sec; in MYSQLND_METHOD() 176 (int) (tv.tv_usec)); in MYSQLND_METHOD()
|
/php-src/main/streams/ |
H A D | xp_socket.c | 344 struct timeval tv; in php_sockop_set_option() local 350 tv.tv_sec = FG(default_socket_timeout); in php_sockop_set_option() 351 tv.tv_usec = 0; in php_sockop_set_option() 353 tv = sock->timeout; in php_sockop_set_option() 356 tv.tv_sec = value; in php_sockop_set_option() 357 tv.tv_usec = 0; in php_sockop_set_option() 368 php_pollfd_for(sock->socket, PHP_POLLREADABLE|POLLPRI, &tv) > 0 in php_sockop_set_option()
|
/php-src/ext/sockets/ |
H A D | sockets.c | 588 struct timeval tv; local 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); 1856 struct timeval tv; local 1972 tv.tv_sec = Z_LVAL_P(sec); 1974 optlen = sizeof(tv); [all …]
|
/php-src/main/ |
H A D | network.c | 1178 struct timeval tv; local 1214 tv.tv_sec = timeout / 1000; 1215 tv.tv_usec = (timeout - (tv.tv_sec * 1000)) * 1000; 1223 n = select(max_fd + 1, &rset, &wset, &eset, timeout >= 0 ? &tv : NULL);
|
/php-src/sapi/cli/ |
H A D | php_cli.c | 227 struct timeval tv; in sapi_cli_select() local 234 tv.tv_sec = (long)FG(default_socket_timeout); in sapi_cli_select() 235 tv.tv_usec = 0; in sapi_cli_select() 237 ret = php_select(fd+1, NULL, &wfd, NULL, &tv); in sapi_cli_select()
|
H A D | php_cli_server.c | 268 struct timeval tv; in php_cli_server_get_system_time() local 271 gettimeofday(&tv, NULL); in php_cli_server_get_system_time() 273 if (!php_localtime_r(&tv.tv_sec, &tm)) { in php_cli_server_get_system_time() 362 struct timeval tv = {0}; in append_essential_headers() local 385 if (append_date_header && !gettimeofday(&tv, NULL)) { in append_essential_headers() 386 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() 880 return php_select(poller->max_fd + 1, &poller->active.rfds, &poller->active.wfds, NULL, tv); in php_cli_server_poller_poll() 1900 struct timeval tv = { 10, 0 }; in php_cli_server_client_send_through() local 1917 int nfds = php_pollfd_for(client->sock, POLLOUT, &tv); in php_cli_server_client_send_through() 2767 struct timeval tv = { 1, 0 }; in php_cli_server_do_event_loop() local [all …]
|
/php-src/ext/ftp/ |
H A D | ftp.c | 121 struct timeval tv; in ftp_open() local 127 tv.tv_sec = timeout_sec; in ftp_open() 128 tv.tv_usec = 0; in ftp_open() 132 0, &tv, NULL, NULL, NULL, 0, STREAM_SOCKOP_NONE); in ftp_open() 1666 struct timeval tv; in ftp_getdata() local 1695 tv.tv_sec = ftp->timeout_sec; in ftp_getdata() 1696 tv.tv_usec = 0; in ftp_getdata() 1697 if (php_connect_nonb(fd, (struct sockaddr*) &ftp->pasvaddr, size, &tv) == -1) { in ftp_getdata()
|