Home
last modified time | relevance | path

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

12

/PHP-7.1/sapi/fpm/fpm/
H A Dfpm_clock.c33 int fpm_clock_get(struct timeval *tv) /* {{{ */ in fpm_clock_get() argument
43 tv->tv_sec = ts.tv_sec; in fpm_clock_get()
44 tv->tv_usec = ts.tv_nsec / 1000; in fpm_clock_get()
48 return gettimeofday(tv, 0); in fpm_clock_get()
87 int fpm_clock_get(struct timeval *tv) /* {{{ */ in fpm_clock_get() argument
99 tv->tv_sec = aTime.tv_sec; in fpm_clock_get()
100 tv->tv_usec = aTime.tv_nsec / 1000; in fpm_clock_get()
114 int fpm_clock_get(struct timeval *tv) /* {{{ */ in fpm_clock_get() argument
116 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()
220 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 Dzlog.c67 size_t zlog_print_time(struct timeval *tv, char *timebuf, size_t timebuf_len) /* {{{ */ in zlog_print_time() argument
72 …len = strftime(timebuf, timebuf_len, "[%d-%b-%Y %H:%M:%S", localtime_r((const time_t *) &tv->tv_se… in zlog_print_time()
74 len += snprintf(timebuf + len, timebuf_len - len, ".%06d", (int) tv->tv_usec); in zlog_print_time()
103 struct timeval tv; in vzlog() local
141 gettimeofday(&tv, 0); in vzlog()
142 len = zlog_print_time(&tv, buf, buf_size); in vzlog()
H A Dfpm_request.h17 void fpm_request_check_timed_out(struct fpm_child_s *child, struct timeval *tv, int terminate_timeo…
20 int fpm_request_last_activity(struct fpm_child_s *child, struct timeval *tv);
H A Dfpm_clock.h10 int fpm_clock_get(struct timeval *tv);
H A Dfpm_php_trace.c46 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 Dzlog.h19 size_t zlog_print_time(struct timeval *tv, char *timebuf, size_t timebuf_len);
H A Dfpm_scoreboard.h32 struct timeval tv; member
H A Dfpm_unix.c484 struct timeval tv; in fpm_unix_init_main() local
516 tv.tv_sec = 10; in fpm_unix_init_main()
517 tv.tv_usec = 0; in fpm_unix_init_main()
520 ret = select(fpm_globals.send_config_pipe[0] + 1, &rfds, NULL, NULL, &tv); in fpm_unix_init_main()
/PHP-7.1/ext/standard/
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 Duniqid.c55 struct timeval tv; in PHP_FUNCTION() local
72 gettimeofday((struct timeval *) &tv, (struct timezone *) NULL); in PHP_FUNCTION()
73 sec = (int) tv.tv_sec; in PHP_FUNCTION()
74 usec = (int) (tv.tv_usec % 0x100000); in PHP_FUNCTION()
H A Dfsock.c44 struct timeval tv; in php_fsockopen_stream() local
72 tv.tv_sec = conv / 1000000; in php_fsockopen_stream()
75 tv.tv_sec = conv / 1000000; in php_fsockopen_stream()
77 tv.tv_usec = conv % 1000000; in php_fsockopen_stream()
89 STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT, hashkey, &tv, NULL, &errstr, &err); in php_fsockopen_stream()
H A Dstreamsfuncs.c94 struct timeval tv; in PHP_FUNCTION() local
117 tv.tv_sec = (long)(conv / 1000000); in PHP_FUNCTION()
118 tv.tv_usec =(long)(conv % 1000000); in PHP_FUNCTION()
120 tv.tv_sec = conv / 1000000; in PHP_FUNCTION()
121 tv.tv_usec = conv % 1000000; in PHP_FUNCTION()
245 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()
276 &tv, &errstr in PHP_FUNCTION()
728 struct timeval tv, *tv_p = NULL; in PHP_FUNCTION() local
[all …]
/PHP-7.1/win32/
H A Dselect.c37 PHPAPI int php_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv) in php_select() argument
52 if (tv == NULL) { in php_select()
55 ms_total = tv->tv_sec * 1000; in php_select()
56 ms_total += tv->tv_usec / 1000; in php_select()
90 return select(max_fd, rfds, wfds, efds, tv); in php_select()
H A Dgetrusage.c29 static 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.c59 static zend_always_inline int getfilesystemtime(struct timeval *tv) in getfilesystemtime() argument
79 tv->tv_sec = (long)(ff / 1000000Ui64); in getfilesystemtime()
80 tv->tv_usec = (long)(ff % 1000000Ui64); in getfilesystemtime()
H A Dselect.h21 PHPAPI int php_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv);
/PHP-7.1/ext/opcache/Optimizer/
H A Dpass1_5.c75 uint32_t tv = ZEND_RESULT(opline).var; /* temporary variable */ in zend_optimizer_pass1() local
117 uint32_t tv = ZEND_RESULT(opline).var; /* temporary variable */ in zend_optimizer_pass1() local
139 if (zend_optimizer_replace_by_const(op_array, opline + 1, type, tv, &res)) { in zend_optimizer_pass1()
156 uint32_t tv = ZEND_RESULT(opline).var; /* temporary variable */ in zend_optimizer_pass1() local
261 uint32_t tv = ZEND_RESULT(opline).var; in zend_optimizer_pass1() local
275 uint32_t tv = ZEND_RESULT(opline).var; in zend_optimizer_pass1() local
286 if (zend_optimizer_replace_by_const(op_array, opline, IS_TMP_VAR, tv, &c)) { in zend_optimizer_pass1()
332 uint32_t tv = ZEND_RESULT(opline).var; in zend_optimizer_pass1() local
353 if (zend_optimizer_replace_by_const(op_array, opline, IS_TMP_VAR, tv, &t)) { in zend_optimizer_pass1()
614 uint32_t tv = ZEND_RESULT(opline).var; in zend_optimizer_pass1() local
[all …]
/PHP-7.1/ext/mysqlnd/
H A Dmysqlnd_vio.c166 struct timeval tv; in MYSQLND_METHOD() local
180 tv.tv_sec = vio->data->options.timeout_connect; in MYSQLND_METHOD()
181 tv.tv_usec = 0; in MYSQLND_METHOD()
186 hashed_details, (vio->data->options.timeout_connect) ? &tv : NULL, in MYSQLND_METHOD()
255 struct timeval tv; in MYSQLND_METHOD() local
257 tv.tv_sec = vio->data->options.timeout_read; in MYSQLND_METHOD()
258 tv.tv_usec = 0; in MYSQLND_METHOD()
259 php_stream_set_option(net_stream, PHP_STREAM_OPTION_READ_TIMEOUT, 0, &tv); in MYSQLND_METHOD()
582 struct timeval tv; in MYSQLND_METHOD() local
584 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()
995 struct timeval tv; in MYSQLND_METHOD() local
997 tv.tv_sec = net->data->options.timeout_read; in MYSQLND_METHOD()
[all …]
/PHP-7.1/ext/mbstring/libmbfl/
H A DAUTHORS12 Maksym Veremeyenko <verem@m1stereo.tv>
/PHP-7.1/ext/sockets/
H A Dsockets.c853 struct timeval tv; local
893 tv.tv_usec = usec % 1000000;
895 tv.tv_sec = Z_LVAL_P(sec);
896 tv.tv_usec = usec;
899 tv_p = &tv;
1900 struct timeval tv; local
1964 optlen = sizeof(tv);
2015 struct timeval tv; local
2105 tv.tv_sec = Z_LVAL_P(sec);
2107 optlen = sizeof(tv);
[all …]
/PHP-7.1/main/streams/
H A Dxp_socket.c310 struct timeval tv; in php_sockop_set_option() local
316 tv.tv_sec = FG(default_socket_timeout); in php_sockop_set_option()
317 tv.tv_usec = 0; in php_sockop_set_option()
319 tv = sock->timeout; in php_sockop_set_option()
322 tv.tv_sec = value; in php_sockop_set_option()
323 tv.tv_usec = 0; in php_sockop_set_option()
328 } else if (php_pollfd_for(sock->socket, PHP_POLLREADABLE|POLLPRI, &tv) > 0) { in php_sockop_set_option()
/PHP-7.1/ext/ftp/
H A Dftp.c134 struct timeval tv; in ftp_open() local
140 tv.tv_sec = timeout_sec; in ftp_open()
141 tv.tv_usec = 0; in ftp_open()
145 0, &tv, NULL, NULL, NULL, 0, STREAM_SOCKOP_NONE); in ftp_open()
1528 struct timeval tv; in ftp_getdata() local
1556 tv.tv_sec = ftp->timeout_sec; in ftp_getdata()
1557 tv.tv_usec = 0; in ftp_getdata()
1558 if (php_connect_nonb(fd, (struct sockaddr*) &ftp->pasvaddr, size, &tv) == -1) { in ftp_getdata()

Completed in 76 milliseconds

12