tv 128 ext/ftp/ftp.c struct timeval tv; tv 134 ext/ftp/ftp.c tv.tv_sec = timeout_sec; tv 135 ext/ftp/ftp.c tv.tv_usec = 0; tv 139 ext/ftp/ftp.c 0, &tv, NULL, NULL, NULL, 0, STREAM_SOCKOP_NONE); tv 1520 ext/ftp/ftp.c struct timeval tv; tv 1548 ext/ftp/ftp.c tv.tv_sec = ftp->timeout_sec; tv 1549 ext/ftp/ftp.c tv.tv_usec = 0; tv 1550 ext/ftp/ftp.c if (php_connect_nonb(fd, (struct sockaddr*) &ftp->pasvaddr, size, &tv) == -1) { tv 1385 ext/mysqlnd/mysqlnd.c struct timeval tv; tv 1429 ext/mysqlnd/mysqlnd.c tv.tv_sec = sec + (usec / 1000000); tv 1430 ext/mysqlnd/mysqlnd.c tv.tv_usec = usec % 1000000; tv 1432 ext/mysqlnd/mysqlnd.c tv.tv_sec = sec; tv 1433 ext/mysqlnd/mysqlnd.c tv.tv_usec = usec; tv 1436 ext/mysqlnd/mysqlnd.c tv_p = &tv; tv 96 ext/mysqlnd/mysqlnd_debug.c struct timeval tv; tv 98 ext/mysqlnd/mysqlnd_debug.c if (gettimeofday(&tv, NULL) != -1) { tv 99 ext/mysqlnd/mysqlnd_debug.c if ((tm_p= localtime((const time_t *)&tv.tv_sec))) { tv 105 ext/mysqlnd/mysqlnd_debug.c (int) (tv.tv_usec)); tv 193 ext/mysqlnd/mysqlnd_debug.c struct timeval tv; tv 195 ext/mysqlnd/mysqlnd_debug.c if (gettimeofday(&tv, NULL) != -1) { tv 196 ext/mysqlnd/mysqlnd_debug.c if ((tm_p= localtime((const time_t *)&tv.tv_sec))) { tv 202 ext/mysqlnd/mysqlnd_debug.c (int) (tv.tv_usec)); tv 186 ext/mysqlnd/mysqlnd_net.c struct timeval tv; tv 200 ext/mysqlnd/mysqlnd_net.c tv.tv_sec = net->data->options.timeout_connect; tv 201 ext/mysqlnd/mysqlnd_net.c tv.tv_usec = 0; tv 206 ext/mysqlnd/mysqlnd_net.c hashed_details, (net->data->options.timeout_connect) ? &tv : NULL, tv 276 ext/mysqlnd/mysqlnd_net.c struct timeval tv; tv 278 ext/mysqlnd/mysqlnd_net.c tv.tv_sec = net->data->options.timeout_read; tv 279 ext/mysqlnd/mysqlnd_net.c tv.tv_usec = 0; tv 280 ext/mysqlnd/mysqlnd_net.c php_stream_set_option(net_stream, PHP_STREAM_OPTION_READ_TIMEOUT, 0, &tv); tv 1013 ext/mysqlnd/mysqlnd_net.c struct timeval tv; tv 1015 ext/mysqlnd/mysqlnd_net.c tv.tv_sec = net->data->options.timeout_read; tv 1016 ext/mysqlnd/mysqlnd_net.c tv.tv_usec = 0; tv 1017 ext/mysqlnd/mysqlnd_net.c php_stream_set_option(net_stream, PHP_STREAM_OPTION_READ_TIMEOUT, 0, &tv); tv 75 ext/opcache/Optimizer/pass1_5.c uint32_t tv = ZEND_RESULT(opline).var; /* temporary variable */ tv 97 ext/opcache/Optimizer/pass1_5.c if (zend_optimizer_replace_by_const(op_array, opline + 1, IS_TMP_VAR, tv, &result)) { tv 112 ext/opcache/Optimizer/pass1_5.c uint32_t tv = ZEND_RESULT(opline).var; /* temporary variable */ tv 134 ext/opcache/Optimizer/pass1_5.c if (zend_optimizer_replace_by_const(op_array, opline + 1, type, tv, &res)) { tv 151 ext/opcache/Optimizer/pass1_5.c uint32_t tv = ZEND_RESULT(opline).var; /* temporary variable */ tv 162 ext/opcache/Optimizer/pass1_5.c if (zend_optimizer_replace_by_const(op_array, opline + 1, IS_TMP_VAR, tv, &result)) { tv 257 ext/opcache/Optimizer/pass1_5.c uint32_t tv = ZEND_RESULT(opline).var; tv 259 ext/opcache/Optimizer/pass1_5.c if (zend_optimizer_replace_by_const(op_array, opline, IS_TMP_VAR, tv, offset)) { tv 272 ext/opcache/Optimizer/pass1_5.c uint32_t tv = ZEND_RESULT(opline).var; tv 283 ext/opcache/Optimizer/pass1_5.c if (zend_optimizer_replace_by_const(op_array, opline, IS_TMP_VAR, tv, &c)) { tv 324 ext/opcache/Optimizer/pass1_5.c uint32_t tv = ZEND_RESULT(opline).var; tv 348 ext/opcache/Optimizer/pass1_5.c if (zend_optimizer_replace_by_const(op_array, opline, IS_TMP_VAR, tv, &t)) { tv 604 ext/opcache/Optimizer/pass1_5.c uint32_t tv = ZEND_RESULT(opline).var; tv 609 ext/opcache/Optimizer/pass1_5.c if (zend_optimizer_replace_by_const(op_array, opline, IS_TMP_VAR, tv, &c)) { tv 2322 ext/openssl/xp_ssl.c struct timeval tv; tv 2329 ext/openssl/xp_ssl.c tv.tv_sec = (long)FG(default_socket_timeout); tv 2331 ext/openssl/xp_ssl.c tv.tv_sec = (time_t)FG(default_socket_timeout); tv 2333 ext/openssl/xp_ssl.c tv.tv_usec = 0; tv 2335 ext/openssl/xp_ssl.c tv = sslsock->connect_timeout; tv 2338 ext/openssl/xp_ssl.c tv.tv_sec = value; tv 2339 ext/openssl/xp_ssl.c tv.tv_usec = 0; tv 2344 ext/openssl/xp_ssl.c } else if (php_pollfd_for(sslsock->s.socket, PHP_POLLREADABLE|POLLPRI, &tv) > 0) { tv 310 ext/session/session.c struct timeval tv; tv 316 ext/session/session.c gettimeofday(&tv, NULL); tv 327 ext/session/session.c 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() * 10); tv 1233 ext/session/session.c struct timeval tv; tv 1236 ext/session/session.c gettimeofday(&tv, NULL); tv 1237 ext/session/session.c now = tv.tv_sec + PS(cache_expire) * 60; tv 1396 ext/session/session.c struct timeval tv; tv 1399 ext/session/session.c gettimeofday(&tv, NULL); tv 1400 ext/session/session.c t = tv.tv_sec + PS(cookie_lifetime); tv 2869 ext/session/session.c struct timeval tv = {0}; tv 2871 ext/session/session.c gettimeofday(&tv, NULL); tv 2872 ext/session/session.c dtv = (double) tv.tv_sec + tv.tv_usec / 1000000.0; tv 171 ext/soap/php_http.c struct timeval tv; tv 187 ext/soap/php_http.c tv.tv_sec = Z_LVAL_P(tmp); tv 188 ext/soap/php_http.c tv.tv_usec = 0; tv 189 ext/soap/php_http.c timeout = &tv; tv 847 ext/sockets/sockets.c struct timeval tv; tv 886 ext/sockets/sockets.c tv.tv_sec = Z_LVAL_P(sec) + (usec / 1000000); tv 887 ext/sockets/sockets.c tv.tv_usec = usec % 1000000; tv 889 ext/sockets/sockets.c tv.tv_sec = Z_LVAL_P(sec); tv 890 ext/sockets/sockets.c tv.tv_usec = usec; tv 893 ext/sockets/sockets.c tv_p = &tv; tv 1879 ext/sockets/sockets.c struct timeval tv; tv 1943 ext/sockets/sockets.c optlen = sizeof(tv); tv 1945 ext/sockets/sockets.c if (getsockopt(php_sock->bsd_socket, level, optname, (char*)&tv, &optlen) != 0) { tv 1957 ext/sockets/sockets.c tv.tv_sec = timeout ? timeout / 1000 : 0; tv 1958 ext/sockets/sockets.c tv.tv_usec = timeout ? (timeout * 1000) % 1000000 : 0; tv 1963 ext/sockets/sockets.c add_assoc_long(return_value, "sec", tv.tv_sec); tv 1964 ext/sockets/sockets.c add_assoc_long(return_value, "usec", tv.tv_usec); tv 1994 ext/sockets/sockets.c struct timeval tv; tv 2084 ext/sockets/sockets.c tv.tv_sec = Z_LVAL_P(sec); tv 2085 ext/sockets/sockets.c tv.tv_usec = Z_LVAL_P(usec); tv 2086 ext/sockets/sockets.c optlen = sizeof(tv); tv 2087 ext/sockets/sockets.c opt_ptr = &tv; tv 44 ext/standard/fsock.c struct timeval tv; tv 72 ext/standard/fsock.c tv.tv_sec = conv / 1000000; tv 75 ext/standard/fsock.c tv.tv_sec = conv / 1000000; tv 77 ext/standard/fsock.c tv.tv_usec = conv % 1000000; tv 89 ext/standard/fsock.c STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT, hashkey, &tv, NULL, &errstr, &err); tv 78 ext/standard/lcg.c struct timeval tv; tv 80 ext/standard/lcg.c if (gettimeofday(&tv, NULL) == 0) { tv 81 ext/standard/lcg.c LCG(s1) = tv.tv_sec ^ (tv.tv_usec<<11); tv 92 ext/standard/lcg.c if (gettimeofday(&tv, NULL) == 0) { tv 93 ext/standard/lcg.c LCG(s2) ^= (tv.tv_usec<<11); tv 94 ext/standard/streamsfuncs.c struct timeval tv; tv 117 ext/standard/streamsfuncs.c tv.tv_sec = (long)(conv / 1000000); tv 118 ext/standard/streamsfuncs.c tv.tv_usec =(long)(conv % 1000000); tv 120 ext/standard/streamsfuncs.c tv.tv_sec = conv / 1000000; tv 121 ext/standard/streamsfuncs.c tv.tv_usec = conv % 1000000; tv 135 ext/standard/streamsfuncs.c hashkey, &tv, context, &errstr, &err); tv 245 ext/standard/streamsfuncs.c struct timeval tv; tv 268 ext/standard/streamsfuncs.c tv.tv_sec = (long)(conv / 1000000); tv 269 ext/standard/streamsfuncs.c tv.tv_usec = (long)(conv % 1000000); tv 271 ext/standard/streamsfuncs.c tv.tv_sec = conv / 1000000; tv 272 ext/standard/streamsfuncs.c tv.tv_usec = conv % 1000000; tv 282 ext/standard/streamsfuncs.c &tv, &errstr tv 738 ext/standard/streamsfuncs.c struct timeval tv, *tv_p = NULL; tv 804 ext/standard/streamsfuncs.c tv.tv_sec = (long)(sec + (usec / 1000000)); tv 805 ext/standard/streamsfuncs.c tv.tv_usec = (long)(usec % 1000000); tv 806 ext/standard/streamsfuncs.c tv_p = &tv; tv 55 ext/standard/uniqid.c struct timeval tv; tv 72 ext/standard/uniqid.c gettimeofday((struct timeval *) &tv, (struct timezone *) NULL); tv 73 ext/standard/uniqid.c sec = (int) tv.tv_sec; tv 74 ext/standard/uniqid.c usec = (int) (tv.tv_usec % 0x100000); tv 1441 main/fastcgi.c struct timeval tv = {5,0}; tv 1449 main/fastcgi.c ret = select(req->fd + 1, &set, NULL, NULL, &tv) >= 0; tv 1204 main/network.c struct timeval tv; tv 1231 main/network.c tv.tv_sec = timeout / 1000; tv 1232 main/network.c tv.tv_usec = (timeout - (tv.tv_sec * 1000)) * 1000; tv 1240 main/network.c n = select(max_fd + 1, &rset, &wset, &eset, timeout >= 0 ? &tv : NULL); tv 1051 main/streams/userspace.c struct timeval tv = *(struct timeval*)ptrparam; tv 1052 main/streams/userspace.c ZVAL_LONG(&args[1], tv.tv_sec); tv 1053 main/streams/userspace.c ZVAL_LONG(&args[2], tv.tv_usec); tv 300 main/streams/xp_socket.c struct timeval tv; tv 306 main/streams/xp_socket.c tv.tv_sec = FG(default_socket_timeout); tv 307 main/streams/xp_socket.c tv.tv_usec = 0; tv 309 main/streams/xp_socket.c tv = sock->timeout; tv 312 main/streams/xp_socket.c tv.tv_sec = value; tv 313 main/streams/xp_socket.c tv.tv_usec = 0; tv 318 main/streams/xp_socket.c } else if (php_pollfd_for(sock->socket, PHP_POLLREADABLE|POLLPRI, &tv) > 0) { tv 245 sapi/cli/php_cli.c struct timeval tv; tv 253 sapi/cli/php_cli.c tv.tv_sec = (long)FG(default_socket_timeout); tv 254 sapi/cli/php_cli.c tv.tv_usec = 0; tv 256 sapi/cli/php_cli.c ret = php_select(fd+1, &dfd, &wfd, &dfd, &tv); tv 250 sapi/cli/php_cli_server.c struct timeval tv; tv 253 sapi/cli/php_cli_server.c gettimeofday(&tv, NULL); tv 256 sapi/cli/php_cli_server.c php_localtime_r(&tv.tv_sec, &tm); tv 778 sapi/cli/php_cli_server.c static int php_cli_server_poller_poll(php_cli_server_poller *poller, struct timeval *tv) /* {{{ */ tv 782 sapi/cli/php_cli_server.c return php_select(poller->max_fd + 1, &poller->active.rfds, &poller->active.wfds, NULL, tv); tv 1721 sapi/cli/php_cli_server.c struct timeval tv = { 10, 0 }; tv 1738 sapi/cli/php_cli_server.c int nfds = php_pollfd_for(client->sock, POLLOUT, &tv); tv 2438 sapi/cli/php_cli_server.c struct timeval tv = { 1, 0 }; tv 2439 sapi/cli/php_cli_server.c int n = php_cli_server_poller_poll(&server->poller, &tv); tv 34 sapi/fpm/fpm/fpm_clock.c int fpm_clock_get(struct timeval *tv) /* {{{ */ tv 44 sapi/fpm/fpm/fpm_clock.c tv->tv_sec = ts.tv_sec; tv 45 sapi/fpm/fpm/fpm_clock.c tv->tv_usec = ts.tv_nsec / 1000; tv 49 sapi/fpm/fpm/fpm_clock.c return gettimeofday(tv, 0); tv 88 sapi/fpm/fpm/fpm_clock.c int fpm_clock_get(struct timeval *tv) /* {{{ */ tv 100 sapi/fpm/fpm/fpm_clock.c tv->tv_sec = aTime.tv_sec; tv 101 sapi/fpm/fpm/fpm_clock.c tv->tv_usec = aTime.tv_nsec / 1000; tv 115 sapi/fpm/fpm/fpm_clock.c int fpm_clock_get(struct timeval *tv) /* {{{ */ tv 117 sapi/fpm/fpm/fpm_clock.c return gettimeofday(tv, 0); tv 11 sapi/fpm/fpm/fpm_clock.h int fpm_clock_get(struct timeval *tv); tv 47 sapi/fpm/fpm/fpm_php_trace.c struct timeval tv; tv 54 sapi/fpm/fpm/fpm_php_trace.c gettimeofday(&tv, 0); tv 56 sapi/fpm/fpm/fpm_php_trace.c zlog_print_time(&tv, buf, buf_size); tv 53 sapi/fpm/fpm/fpm_request.c proc->tv = now; tv 84 sapi/fpm/fpm/fpm_request.c proc->tv = now; tv 124 sapi/fpm/fpm/fpm_request.c proc->tv = now; tv 168 sapi/fpm/fpm/fpm_request.c proc->tv = now; tv 193 sapi/fpm/fpm/fpm_request.c proc->tv = now; tv 196 sapi/fpm/fpm/fpm_request.c timersub(&proc->tv, &proc->accepted, &proc->cpu_duration); tv 221 sapi/fpm/fpm/fpm_request.c proc->tv = now; tv 250 sapi/fpm/fpm/fpm_request.c struct timeval tv; tv 252 sapi/fpm/fpm/fpm_request.c timersub(now, &proc.accepted, &tv); tv 256 sapi/fpm/fpm/fpm_request.c proc.request_stage == FPM_REQUEST_EXECUTING && tv.tv_sec >= slowlog_timeout) { tv 267 sapi/fpm/fpm/fpm_request.c (int) tv.tv_sec, (int) tv.tv_usec); tv 271 sapi/fpm/fpm/fpm_request.c if (terminate_timeout && tv.tv_sec >= terminate_timeout) { tv 277 sapi/fpm/fpm/fpm_request.c (int) tv.tv_sec, (int) tv.tv_usec); tv 297 sapi/fpm/fpm/fpm_request.c int fpm_request_last_activity(struct fpm_child_s *child, struct timeval *tv) /* {{{ */ tv 301 sapi/fpm/fpm/fpm_request.c if (!tv) return -1; tv 308 sapi/fpm/fpm/fpm_request.c *tv = proc->tv; tv 18 sapi/fpm/fpm/fpm_request.h void fpm_request_check_timed_out(struct fpm_child_s *child, struct timeval *tv, int terminate_timeout, int slowlog_timeout); tv 21 sapi/fpm/fpm/fpm_request.h int fpm_request_last_activity(struct fpm_child_s *child, struct timeval *tv); tv 33 sapi/fpm/fpm/fpm_scoreboard.h struct timeval tv; tv 485 sapi/fpm/fpm/fpm_unix.c struct timeval tv; tv 517 sapi/fpm/fpm/fpm_unix.c tv.tv_sec = 10; tv 518 sapi/fpm/fpm/fpm_unix.c tv.tv_usec = 0; tv 521 sapi/fpm/fpm/fpm_unix.c ret = select(fpm_globals.send_config_pipe[0] + 1, &rfds, NULL, NULL, &tv); tv 67 sapi/fpm/fpm/zlog.c size_t zlog_print_time(struct timeval *tv, char *timebuf, size_t timebuf_len) /* {{{ */ tv 72 sapi/fpm/fpm/zlog.c len = strftime(timebuf, timebuf_len, "[%d-%b-%Y %H:%M:%S", localtime_r((const time_t *) &tv->tv_sec, &t)); tv 74 sapi/fpm/fpm/zlog.c len += snprintf(timebuf + len, timebuf_len - len, ".%06d", (int) tv->tv_usec); tv 103 sapi/fpm/fpm/zlog.c struct timeval tv; tv 141 sapi/fpm/fpm/zlog.c gettimeofday(&tv, 0); tv 142 sapi/fpm/fpm/zlog.c len = zlog_print_time(&tv, buf, buf_size); tv 20 sapi/fpm/fpm/zlog.h size_t zlog_print_time(struct timeval *tv, char *timebuf, size_t timebuf_len); tv 1153 sapi/litespeed/lsapilib.c struct timeval tv; tv 1155 sapi/litespeed/lsapilib.c gettimeofday( &tv, NULL ); tv 1156 sapi/litespeed/lsapilib.c srand( (tv.tv_sec % 0x1000 + tv.tv_usec) ^ rand() ); tv 29 win32/getrusage.c static void usage_to_timeval(FILETIME *ft, struct timeval *tv) tv 36 win32/getrusage.c tv->tv_sec = (zend_long) (time.QuadPart / 10000000); tv 37 win32/getrusage.c tv->tv_usec = (zend_long) ((time.QuadPart % 10000000) / 10); tv 37 win32/select.c PHPAPI int php_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv) tv 52 win32/select.c if (tv == NULL) { tv 55 win32/select.c ms_total = tv->tv_sec * 1000; tv 56 win32/select.c ms_total += tv->tv_usec / 1000; tv 90 win32/select.c return select(max_fd, rfds, wfds, efds, tv); tv 21 win32/select.h PHPAPI int php_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv); tv 59 win32/time.c static zend_always_inline int getfilesystemtime(struct timeval *tv) tv 79 win32/time.c tv->tv_sec = (long)(ff / 1000000Ui64); tv 80 win32/time.c tv->tv_usec = (long)(ff % 1000000Ui64);