Home
last modified time | relevance | path

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

12

/PHP-7.3/sapi/fpm/fpm/
H A Dfpm_clock.c32 int fpm_clock_get(struct timeval *tv) /* {{{ */ in fpm_clock_get() argument
42 tv->tv_sec = ts.tv_sec; in fpm_clock_get()
43 tv->tv_usec = ts.tv_nsec / 1000; in fpm_clock_get()
47 return gettimeofday(tv, 0); in fpm_clock_get()
86 int fpm_clock_get(struct timeval *tv) /* {{{ */ in fpm_clock_get() argument
98 tv->tv_sec = aTime.tv_sec; in fpm_clock_get()
99 tv->tv_usec = aTime.tv_nsec / 1000; in fpm_clock_get()
113 int fpm_clock_get(struct timeval *tv) /* {{{ */ in fpm_clock_get() argument
115 return gettimeofday(tv, 0); in fpm_clock_get()
H A Dfpm_request.c52 proc->tv = now; in fpm_request_accepting()
83 proc->tv = now; in fpm_request_reading_headers()
123 proc->tv = now; in fpm_request_info()
167 proc->tv = now; in fpm_request_executing()
192 proc->tv = now; in fpm_request_end()
221 proc->tv = now; in fpm_request_finished()
250 struct timeval tv; in fpm_request_check_timed_out() local
268 (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 …]
H A Dfpm_request.h16 void fpm_request_check_timed_out(struct fpm_child_s *child, struct timeval *tv, int terminate_timeo…
19 int fpm_request_last_activity(struct fpm_child_s *child, struct timeval *tv);
H A Dfpm_clock.h9 int fpm_clock_get(struct timeval *tv);
H A Dfpm_php_trace.c45 struct timeval tv; in fpm_php_trace_dump() local
52 gettimeofday(&tv, 0); in fpm_php_trace_dump()
54 zlog_print_time(&tv, buf, buf_size); in fpm_php_trace_dump()
H A Dfpm_scoreboard.h31 struct timeval tv; member
H A Dfpm_unix.c483 struct timeval tv; in fpm_unix_init_main() local
515 tv.tv_sec = 10; in fpm_unix_init_main()
516 tv.tv_usec = 0; in fpm_unix_init_main()
519 ret = select(fpm_globals.send_config_pipe[0] + 1, &rfds, NULL, NULL, &tv); in fpm_unix_init_main()
H A Dzlog.c76 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 Dzlog.h27 size_t zlog_print_time(struct timeval *tv, char *timebuf, size_t timebuf_len);
/PHP-7.3/ext/standard/
H A Duniqid.c51 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()
H A Dlcg.c76 struct timeval tv; in lcg_seed() local
78 if (gettimeofday(&tv, NULL) == 0) { in lcg_seed()
79 LCG(s1) = tv.tv_sec ^ (tv.tv_usec<<11); in lcg_seed()
90 if (gettimeofday(&tv, NULL) == 0) { in lcg_seed()
91 LCG(s2) ^= (tv.tv_usec<<11); in lcg_seed()
H A Dfsock.c42 struct timeval tv; in php_fsockopen_stream() local
75 tv.tv_sec = conv / 1000000; in php_fsockopen_stream()
78 tv.tv_sec = conv / 1000000; in php_fsockopen_stream()
80 tv.tv_usec = conv % 1000000; in php_fsockopen_stream()
92 STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT, hashkey, &tv, NULL, &errstr, &err); in php_fsockopen_stream()
H A Dstreamsfuncs.c97 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()
259 struct timeval tv; in PHP_FUNCTION() local
279 tv.tv_sec = conv / 1000000; in PHP_FUNCTION()
280 tv.tv_usec = conv % 1000000; in PHP_FUNCTION()
290 &tv, &errstr in PHP_FUNCTION()
767 struct timeval tv, *tv_p = NULL; in PHP_FUNCTION() local
[all …]
/PHP-7.3/win32/
H A Dselect.c33 …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 Dgetrusage.c29 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 Dtime.c55 static zend_always_inline int getfilesystemtime(struct timeval *tv) in getfilesystemtime() argument
75 tv->tv_sec = (long)(ff / 1000000Ui64); in getfilesystemtime()
76 tv->tv_usec = (long)(ff % 1000000Ui64); in getfilesystemtime()
H A Dselect.h24 … int php_select(php_socket_t max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv);
/PHP-7.3/ext/mysqlnd/
H A Dmysqlnd_vio.c163 struct timeval tv; in MYSQLND_METHOD() local
177 tv.tv_sec = vio->data->options.timeout_connect; in MYSQLND_METHOD()
178 tv.tv_usec = 0; in MYSQLND_METHOD()
183 hashed_details, (vio->data->options.timeout_connect) ? &tv : NULL, in MYSQLND_METHOD()
252 struct timeval tv; in MYSQLND_METHOD() local
254 tv.tv_sec = vio->data->options.timeout_read; in MYSQLND_METHOD()
255 tv.tv_usec = 0; in MYSQLND_METHOD()
256 php_stream_set_option(net_stream, PHP_STREAM_OPTION_READ_TIMEOUT, 0, &tv); in MYSQLND_METHOD()
578 struct timeval tv; in MYSQLND_METHOD() local
580 tv.tv_sec = net->data->options.timeout_read; in MYSQLND_METHOD()
[all …]
H A Dmysqlnd_debug.c93 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()
H A Dmysqlnd_net.c176 struct timeval tv; in MYSQLND_METHOD() local
190 tv.tv_sec = net->data->options.timeout_connect; in MYSQLND_METHOD()
191 tv.tv_usec = 0; in MYSQLND_METHOD()
196 hashed_details, (net->data->options.timeout_connect) ? &tv : NULL, in MYSQLND_METHOD()
266 struct timeval tv; in MYSQLND_METHOD() local
268 tv.tv_sec = net->data->options.timeout_read; in MYSQLND_METHOD()
269 tv.tv_usec = 0; in MYSQLND_METHOD()
270 php_stream_set_option(net_stream, PHP_STREAM_OPTION_READ_TIMEOUT, 0, &tv); in MYSQLND_METHOD()
992 struct timeval tv; in MYSQLND_METHOD() local
994 tv.tv_sec = net->data->options.timeout_read; in MYSQLND_METHOD()
[all …]
/PHP-7.3/ext/mbstring/libmbfl/
H A DAUTHORS12 Maksym Veremeyenko <verem@m1stereo.tv>
/PHP-7.3/main/streams/
H A Dxp_socket.c314 struct timeval tv; in php_sockop_set_option() local
320 tv.tv_sec = FG(default_socket_timeout); in php_sockop_set_option()
321 tv.tv_usec = 0; in php_sockop_set_option()
323 tv = sock->timeout; in php_sockop_set_option()
326 tv.tv_sec = value; in php_sockop_set_option()
327 tv.tv_usec = 0; in php_sockop_set_option()
332 } else if (php_pollfd_for(sock->socket, PHP_POLLREADABLE|POLLPRI, &tv) > 0) { in php_sockop_set_option()
/PHP-7.3/ext/sockets/
H A Dsockets.c962 struct timeval tv; local
995 tv.tv_usec = usec % 1000000;
997 tv.tv_sec = s;
998 tv.tv_usec = usec;
1001 tv_p = &tv;
2000 struct timeval tv; local
2064 optlen = sizeof(tv);
2115 struct timeval tv; local
2205 tv.tv_sec = Z_LVAL_P(sec);
2207 optlen = sizeof(tv);
[all …]
/PHP-7.3/sapi/cli/
H A Dphp_cli_server.c254 struct timeval tv; in php_cli_server_get_system_time() local
257 gettimeofday(&tv, NULL); in php_cli_server_get_system_time()
260 php_localtime_r(&tv.tv_sec, &tm); in php_cli_server_get_system_time()
347 struct timeval tv = {0}; in append_essential_headers() local
355 if (!gettimeofday(&tv, NULL)) { in append_essential_headers()
356 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()
801 return php_select(poller->max_fd + 1, &poller->active.rfds, &poller->active.wfds, NULL, tv); in php_cli_server_poller_poll()
1773 struct timeval tv = { 10, 0 }; in php_cli_server_client_send_through() local
1790 int nfds = php_pollfd_for(client->sock, POLLOUT, &tv); in php_cli_server_client_send_through()
2499 struct timeval tv = { 1, 0 }; in php_cli_server_do_event_loop() local
[all …]
/PHP-7.3/main/
H A Dnetwork.c1219 struct timeval tv; local
1246 tv.tv_sec = timeout / 1000;
1247 tv.tv_usec = (timeout - (tv.tv_sec * 1000)) * 1000;
1255 n = select(max_fd + 1, &rset, &wset, &eset, timeout >= 0 ? &tv : NULL);

Completed in 278 milliseconds

12