Searched refs:tv (Results 1 - 25 of 34) sorted by relevance

12

/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_clock.c34 int fpm_clock_get(struct timeval *tv) /* {{{ */ argument
44 tv->tv_sec = ts.tv_sec;
45 tv->tv_usec = ts.tv_nsec / 1000;
49 return gettimeofday(tv, 0);
88 int fpm_clock_get(struct timeval *tv) /* {{{ */ argument
100 tv->tv_sec = aTime.tv_sec;
101 tv->tv_usec = aTime.tv_nsec / 1000;
115 int fpm_clock_get(struct timeval *tv) /* {{{ */ argument
117 return gettimeofday(tv, 0);
H A Dfpm_clock.h11 int fpm_clock_get(struct timeval *tv);
H A Dfpm_request.c53 proc->tv = now;
84 proc->tv = now;
126 proc->tv = now;
170 proc->tv = now;
195 proc->tv = now;
198 timersub(&proc->tv, &proc->accepted, &proc->cpu_duration);
223 proc->tv = now;
254 struct timeval tv; local
256 timersub(now, &proc.accepted, &tv);
260 proc.request_stage == FPM_REQUEST_EXECUTING && tv
301 fpm_request_last_activity(struct fpm_child_s *child, struct timeval *tv) argument
[all...]
H A Dfpm_request.h18 void fpm_request_check_timed_out(struct fpm_child_s *child, struct timeval *tv, int terminate_timeout, int slowlog_timeout);
21 int fpm_request_last_activity(struct fpm_child_s *child, struct timeval *tv);
H A Dfpm_scoreboard.h33 struct timeval tv; member in struct:fpm_scoreboard_proc_s
H A Dzlog.c67 size_t zlog_print_time(struct timeval *tv, char *timebuf, size_t timebuf_len) /* {{{ */ argument
72 len = strftime(timebuf, timebuf_len, "[%d-%b-%Y %H:%M:%S", localtime_r((const time_t *) &tv->tv_sec, &t));
74 len += snprintf(timebuf + len, timebuf_len - len, ".%06d", (int) tv->tv_usec);
103 struct timeval tv; local
141 gettimeofday(&tv, 0);
142 len = zlog_print_time(&tv, buf, buf_size);
H A Dzlog.h18 size_t zlog_print_time(struct timeval *tv, char *timebuf, size_t timebuf_len);
H A Dfpm_unix.c305 struct timeval tv; local
337 tv.tv_sec = 10;
338 tv.tv_usec = 0;
341 ret = select(fpm_globals.send_config_pipe[0] + 1, &rfds, NULL, NULL, &tv);
H A Dfpm_php_trace.c49 struct timeval tv;
55 gettimeofday(&tv, 0);
57 zlog_print_time(&tv, buf, buf_size);
/PHP_TRUNK/win32/
H A Dtime.c48 int getfilesystemtime(struct timeval *tv) argument
74 tv->tv_sec = (long)(ff / 1000000Ui64);
75 tv->tv_usec = (long)(ff % 1000000Ui64);
H A Dselect.c37 PHPAPI int php_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv) argument
52 if (tv == NULL) {
55 ms_total = tv->tv_sec * 1000;
56 ms_total += tv->tv_usec / 1000;
90 return select(max_fd, rfds, wfds, efds, tv);
H A Dselect.h21 PHPAPI int php_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv);
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_debug.c105 struct timeval tv;
107 if (gettimeofday(&tv, NULL) != -1) {
108 if ((tm_p= localtime((const time_t *)&tv.tv_sec))) {
114 (int) (tv.tv_usec));
203 struct timeval tv;
205 if (gettimeofday(&tv, NULL) != -1) {
206 if ((tm_p= localtime((const time_t *)&tv.tv_sec))) {
212 (int) (tv.tv_usec));
H A Dmysqlnd_net.c165 struct timeval tv; local
179 tv.tv_sec = net->data->options.timeout_connect;
180 tv.tv_usec = 0;
185 hashed_details, (net->data->options.timeout_connect) ? &tv : NULL,
253 struct timeval tv; local
255 tv.tv_sec = net->data->options.timeout_read;
256 tv.tv_usec = 0;
257 php_stream_set_option(net_stream, PHP_STREAM_OPTION_READ_TIMEOUT, 0, &tv);
943 struct timeval tv; local
945 tv
[all...]
/PHP_TRUNK/ext/ftp/
H A Dftp.c128 struct timeval tv; local
134 tv.tv_sec = timeout_sec;
135 tv.tv_usec = 0;
139 0, &tv, NULL, NULL, NULL, 0, STREAM_SOCKOP_NONE TSRMLS_CC);
1376 struct timeval tv; local
1404 tv.tv_sec = ftp->timeout_sec;
1405 tv.tv_usec = 0;
1406 if (php_connect_nonb(fd, (struct sockaddr*) &ftp->pasvaddr, size, &tv) == -1) {
/PHP_TRUNK/main/
H A Dnetwork.c1192 struct timeval tv; local
1219 tv.tv_sec = timeout / 1000;
1220 tv.tv_usec = (timeout - (tv.tv_sec * 1000)) * 1000;
1228 n = select(max_fd + 1, &rset, &wset, &eset, timeout >= 0 ? &tv : NULL);
/PHP_TRUNK/main/streams/
H A Dxp_socket.c293 struct timeval tv; local
299 tv.tv_sec = FG(default_socket_timeout);
300 tv.tv_usec = 0;
302 tv = sock->timeout;
305 tv.tv_sec = value;
306 tv.tv_usec = 0;
311 } else if (php_pollfd_for(sock->socket, PHP_POLLREADABLE|POLLPRI, &tv) > 0) {
/PHP_TRUNK/sapi/cli/
H A Dphp_cli.c239 struct timeval tv; local
247 tv.tv_sec = FG(default_socket_timeout);
248 tv.tv_usec = 0;
250 ret = php_select(fd+1, &dfd, &wfd, &dfd, &tv);
/PHP_TRUNK/ext/standard/
H A Dlcg.c78 struct timeval tv; local
80 if (gettimeofday(&tv, NULL) == 0) {
81 LCG(s1) = tv.tv_sec ^ (tv.tv_usec<<11);
92 if (gettimeofday(&tv, NULL) == 0) {
93 LCG(s2) ^= (tv.tv_usec<<11);
H A Dfsock.c40 struct timeval tv; local
67 tv.tv_sec = conv / 1000000;
68 tv.tv_usec = conv % 1000000;
80 STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT, hashkey, &tv, NULL, &errstr, &err);
H A Dstreamsfuncs.c95 struct timeval tv; local
118 tv.tv_sec = (long)(conv / 1000000);
119 tv.tv_usec =(long)(conv % 1000000);
121 tv.tv_sec = conv / 1000000;
122 tv.tv_usec = conv % 1000000;
136 hashkey, &tv, context, &errstr, &err);
246 struct timeval tv; local
260 tv.tv_sec = (long)(conv / 1000000);
261 tv.tv_usec = (long)(conv % 1000000);
263 tv
721 struct timeval tv; local
[all...]
H A Duniqid.c55 struct timeval tv; local
72 gettimeofday((struct timeval *) &tv, (struct timezone *) NULL);
73 sec = (int) tv.tv_sec;
74 usec = (int) (tv.tv_usec % 0x100000);
/PHP_TRUNK/ext/session/
H A Dsession.c291 struct timeval tv; local
297 gettimeofday(&tv, NULL);
308 spprintf(&buf, 0, "%.15s%ld" ZEND_LONG_FMT "%0.8F", remote_addr ? remote_addr : "", tv.tv_sec, (zend_long)tv.tv_usec, php_combined_lcg(TSRMLS_C) * 10);
1172 struct timeval tv; local
1175 gettimeofday(&tv, NULL);
1176 now = tv.tv_sec + PS(cache_expire) * 60;
1334 struct timeval tv; local
1337 gettimeofday(&tv, NULL);
1338 t = tv
2602 struct timeval tv = {0}; local
[all...]
/PHP_TRUNK/ext/sockets/
H A Dsockets.c834 struct timeval tv; local
873 tv.tv_sec = Z_LVAL_P(sec) + (usec / 1000000);
874 tv.tv_usec = usec % 1000000;
876 tv.tv_sec = Z_LVAL_P(sec);
877 tv.tv_usec = usec;
880 tv_p = &tv;
1836 struct timeval tv; local
1898 optlen = sizeof(tv);
1900 if (getsockopt(php_sock->bsd_socket, level, optname, (char*)&tv, &optlen) != 0) {
1912 tv
1949 struct timeval tv; local
[all...]
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dpass1_5.c72 uint32_t tv = ZEND_RESULT(opline).var; /* temporary variable */ local
94 zend_optimizer_replace_tmp_by_const(op_array, opline + 1, tv, &result TSRMLS_CC);
104 uint32_t tv = ZEND_RESULT(opline).var; /* temporary variable */ local
130 zend_optimizer_replace_tmp_by_const(op_array, opline + 1, tv, &res TSRMLS_CC);
132 zend_optimizer_replace_var_by_const(op_array, opline + 1, tv, &res TSRMLS_CC);
147 uint32_t tv = ZEND_RESULT(opline).var; /* temporary variable */ local
160 zend_optimizer_replace_tmp_by_const(op_array, opline + 1, tv, &result TSRMLS_CC);
250 uint32_t tv = ZEND_RESULT(opline).var; local
254 zend_optimizer_replace_tmp_by_const(op_array, opline, tv, offset TSRMLS_CC);
264 uint32_t tv local
312 uint32_t tv = ZEND_RESULT(opline).var; local
492 uint32_t tv = ZEND_RESULT(opline).var; local
[all...]

Completed in 50 milliseconds

12