/PHP-5.4/sapi/fpm/fpm/ |
H A D | fpm_clock.c | 34 int fpm_clock_get(struct timeval *tv) /* {{{ */ in fpm_clock_get() argument 44 tv->tv_sec = ts.tv_sec; in fpm_clock_get() 45 tv->tv_usec = ts.tv_nsec / 1000; in fpm_clock_get() 49 return gettimeofday(tv, 0); in fpm_clock_get() 88 int fpm_clock_get(struct timeval *tv) /* {{{ */ in fpm_clock_get() argument 100 tv->tv_sec = aTime.tv_sec; in fpm_clock_get() 101 tv->tv_usec = aTime.tv_nsec / 1000; in fpm_clock_get() 115 int fpm_clock_get(struct timeval *tv) /* {{{ */ in fpm_clock_get() argument 117 return gettimeofday(tv, 0); in fpm_clock_get()
|
H A D | fpm_request.c | 53 proc->tv = now; in fpm_request_accepting() 84 proc->tv = now; in fpm_request_reading_headers() 126 proc->tv = now; in fpm_request_info() 170 proc->tv = now; in fpm_request_executing() 195 proc->tv = now; in fpm_request_end() 223 proc->tv = now; in fpm_request_finished() 254 struct timeval tv; in fpm_request_check_timed_out() local 271 (int) tv.tv_sec, (int) tv.tv_usec); in fpm_request_check_timed_out() 281 (int) tv.tv_sec, (int) tv.tv_usec); in fpm_request_check_timed_out() 305 if (!tv) return -1; in fpm_request_last_activity() [all …]
|
H A D | zlog.c | 67 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 zlog_ex() local 141 gettimeofday(&tv, 0); in zlog_ex() 142 len = zlog_print_time(&tv, buf, buf_size); in zlog_ex()
|
H A D | fpm_request.h | 18 void fpm_request_check_timed_out(struct fpm_child_s *child, struct timeval *tv, int terminate_timeo… 21 int fpm_request_last_activity(struct fpm_child_s *child, struct timeval *tv);
|
H A D | fpm_php_trace.c | 47 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 D | fpm_clock.h | 11 int fpm_clock_get(struct timeval *tv);
|
H A D | zlog.h | 18 size_t zlog_print_time(struct timeval *tv, char *timebuf, size_t timebuf_len);
|
H A D | fpm_unix.c | 270 struct timeval tv; in fpm_unix_init_main() local 302 tv.tv_sec = 10; in fpm_unix_init_main() 303 tv.tv_usec = 0; in fpm_unix_init_main() 306 ret = select(fpm_globals.send_config_pipe[0] + 1, &rfds, NULL, NULL, &tv); in fpm_unix_init_main()
|
H A D | fpm_scoreboard.h | 33 struct timeval tv; member
|
/PHP-5.4/ext/standard/ |
H A D | lcg.c | 78 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 D | uniqid.c | 54 struct timeval tv; in PHP_FUNCTION() local 71 gettimeofday((struct timeval *) &tv, (struct timezone *) NULL); in PHP_FUNCTION() 72 sec = (int) tv.tv_sec; in PHP_FUNCTION() 73 usec = (int) (tv.tv_usec % 0x100000); in PHP_FUNCTION()
|
H A D | fsock.c | 40 struct timeval tv; in php_fsockopen_stream() local 67 tv.tv_sec = conv / 1000000; in php_fsockopen_stream() 68 tv.tv_usec = conv % 1000000; in php_fsockopen_stream() 80 STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT, hashkey, &tv, NULL, &errstr, &err); in php_fsockopen_stream()
|
H A D | streamsfuncs.c | 93 struct timeval tv; in PHP_FUNCTION() local 119 tv.tv_sec = conv / 1000000; in PHP_FUNCTION() 120 tv.tv_usec = conv % 1000000; in PHP_FUNCTION() 247 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() 277 &tv, &errstr in PHP_FUNCTION() 777 struct timeval tv; in PHP_FUNCTION() local 837 tv.tv_sec = Z_LVAL_PP(sec); in PHP_FUNCTION() 838 tv.tv_usec = usec; in PHP_FUNCTION() [all …]
|
/PHP-5.4/win32/ |
H A D | select.c | 37 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 D | time.c | 48 int getfilesystemtime(struct timeval *tv) in getfilesystemtime() argument 74 tv->tv_sec = (long)(ff / 1000000Ui64); in getfilesystemtime() 75 tv->tv_usec = (long)(ff % 1000000Ui64); in getfilesystemtime()
|
H A D | select.h | 21 PHPAPI int php_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv);
|
/PHP-5.4/ext/mysqlnd/ |
H A D | mysqlnd_net.c | 157 struct timeval tv; in MYSQLND_METHOD() local 167 tv.tv_sec = net->options.timeout_connect; in MYSQLND_METHOD() 168 tv.tv_usec = 0; in MYSQLND_METHOD() 173 hashed_details, (net->options.timeout_connect) ? &tv : NULL, in MYSQLND_METHOD() 235 struct timeval tv; in MYSQLND_METHOD() local 237 tv.tv_sec = net->options.timeout_read; in MYSQLND_METHOD() 238 tv.tv_usec = 0; in MYSQLND_METHOD() 239 php_stream_set_option(net->stream, PHP_STREAM_OPTION_READ_TIMEOUT, 0, &tv); in MYSQLND_METHOD() 871 struct timeval tv; in MYSQLND_METHOD() local 873 tv.tv_sec = net->options.timeout_read; in MYSQLND_METHOD() [all …]
|
H A D | mysqlnd_debug.c | 104 struct timeval tv; in MYSQLND_METHOD() 106 if (gettimeofday(&tv, NULL) != -1) { in MYSQLND_METHOD() 107 if ((tm_p= localtime((const time_t *)&tv.tv_sec))) { in MYSQLND_METHOD() 113 (int) (tv.tv_usec)); in MYSQLND_METHOD() 202 struct timeval tv; in MYSQLND_METHOD() 204 if (gettimeofday(&tv, NULL) != -1) { in MYSQLND_METHOD() 205 if ((tm_p= localtime((const time_t *)&tv.tv_sec))) { in MYSQLND_METHOD() 211 (int) (tv.tv_usec)); in MYSQLND_METHOD()
|
/PHP-5.4/ext/mbstring/libmbfl/ |
H A D | AUTHORS | 12 Maksym Veremeyenko <verem@m1stereo.tv>
|
/PHP-5.4/main/streams/ |
H A D | xp_socket.c | 277 struct timeval tv; in php_sockop_set_option() local 283 tv.tv_sec = FG(default_socket_timeout); in php_sockop_set_option() 284 tv.tv_usec = 0; in php_sockop_set_option() 286 tv = sock->timeout; in php_sockop_set_option() 289 tv.tv_sec = value; in php_sockop_set_option() 290 tv.tv_usec = 0; in php_sockop_set_option() 295 } else if (php_pollfd_for(sock->socket, PHP_POLLREADABLE|POLLPRI, &tv) > 0) { in php_sockop_set_option()
|
/PHP-5.4/ext/openssl/ |
H A D | xp_ssl.c | 699 struct timeval tv; in php_openssl_sockop_set_option() local 705 tv.tv_sec = FG(default_socket_timeout); in php_openssl_sockop_set_option() 706 tv.tv_usec = 0; in php_openssl_sockop_set_option() 708 tv = sslsock->connect_timeout; in php_openssl_sockop_set_option() 711 tv.tv_sec = value; in php_openssl_sockop_set_option() 712 tv.tv_usec = 0; in php_openssl_sockop_set_option() 717 } else if (php_pollfd_for(sslsock->s.socket, PHP_POLLREADABLE|POLLPRI, &tv) > 0) { in php_openssl_sockop_set_option()
|
/PHP-5.4/ext/sockets/ |
H A D | sockets.c | 1030 struct timeval tv; local 1070 tv.tv_usec = usec % 1000000; 1072 tv.tv_sec = Z_LVAL_P(sec); 1073 tv.tv_usec = usec; 1076 tv_p = &tv; 2016 struct timeval tv; local 2068 optlen = sizeof(tv); 2215 struct timeval tv; local 2375 tv.tv_sec = Z_LVAL_PP(sec); 2377 optlen = sizeof(tv); [all …]
|
/PHP-5.4/ext/curl/ |
H A D | streams.c | 157 struct timeval tv; in php_curl_stream_read() local 173 tv.tv_usec = 0; in php_curl_stream_read() 174 tv.tv_sec = 15; /* TODO: allow this to be configured from the script */ in php_curl_stream_read() 178 …ct(curlstream->maxfd + 1, &curlstream->readfds, &curlstream->writefds, &curlstream->excfds, &tv)) { in php_curl_stream_read()
|
/PHP-5.4/ext/session/ |
H A D | session.c | 292 struct timeval tv; in php_session_create_id() local 297 gettimeofday(&tv, NULL); in php_session_create_id() 1103 struct timeval tv; 1106 gettimeofday(&tv, NULL); 1107 now = tv.tv_sec + PS(cache_expire) * 60; 1271 struct timeval tv; 1274 gettimeofday(&tv, NULL); 1275 t = tv.tv_sec + PS(cookie_lifetime); 2435 struct timeval tv = {0}; 2437 gettimeofday(&tv, NULL); [all …]
|
/PHP-5.4/ext/ftp/ |
H A D | ftp.c | 128 struct timeval tv; in ftp_open() local 134 tv.tv_sec = timeout_sec; in ftp_open() 135 tv.tv_usec = 0; in ftp_open() 139 0, &tv, NULL, NULL, NULL, 0 TSRMLS_CC); in ftp_open() 1381 struct timeval tv; in ftp_getdata() local 1409 tv.tv_sec = ftp->timeout_sec; in ftp_getdata() 1410 tv.tv_usec = 0; in ftp_getdata() 1411 if (php_connect_nonb(fd, (struct sockaddr*) &ftp->pasvaddr, size, &tv) == -1) { in ftp_getdata()
|