| /PHP_5_3/sapi/fpm/fpm/ |
| H A D | fpm_clock.c | 34 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 D | fpm_php_trace.c | 46 struct timeval tv; local 52 gettimeofday(&tv, 0); 54 zlog_print_time(&tv, buf, buf_size);
|
| H A D | fpm_request.c | 53 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 D | fpm_scoreboard.h | 33 struct timeval tv; member in struct:fpm_scoreboard_proc_s
|
| H A D | fpm_unix.c | 270 struct timeval tv; local 302 tv.tv_sec = 10; 303 tv.tv_usec = 0; 306 ret = select(fpm_globals.send_config_pipe[0] + 1, &rfds, NULL, NULL, &tv);
|
| H A D | zlog.c | 67 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);
|
| /PHP_5_3/ext/curl/ |
| H A D | streams.c | 157 struct timeval tv; local 173 tv.tv_usec = 0; 174 tv.tv_sec = 15; /* TODO: allow this to be configured from the script */ 178 select(curlstream->maxfd + 1, &curlstream->readfds, &curlstream->writefds, &curlstream->excfds, &tv)) {
|
| /PHP_5_3/ext/ftp/ |
| H A D | ftp.c | 128 struct timeval tv; local 134 tv.tv_sec = timeout_sec; 135 tv.tv_usec = 0; 139 0, &tv, NULL, NULL, NULL, 0 TSRMLS_CC); 1378 struct timeval tv; local 1406 tv.tv_sec = ftp->timeout_sec; 1407 tv.tv_usec = 0; 1408 if (php_connect_nonb(fd, (struct sockaddr*) &ftp->pasvaddr, size, &tv) == -1) {
|
| /PHP_5_3/ext/openssl/ |
| H A D | xp_ssl.c | 683 struct timeval tv; local 689 tv.tv_sec = FG(default_socket_timeout); 690 tv.tv_usec = 0; 692 tv = sslsock->connect_timeout; 695 tv.tv_sec = value; 696 tv.tv_usec = 0; 701 } else if (php_pollfd_for(sslsock->s.socket, PHP_POLLREADABLE|POLLPRI, &tv) > 0) {
|
| /PHP_5_3/ext/session/ |
| H A D | session.c | 356 struct timeval tv; local 361 gettimeofday(&tv, NULL); 371 spprintf(&buf, 0, "%.15s%ld%ld%0.8F", remote_addr ? remote_addr : "", tv.tv_sec, (long int)tv.tv_usec, php_combined_lcg(TSRMLS_C) * 10); 1130 struct timeval tv; local 1133 gettimeofday(&tv, NULL); 1134 now = tv.tv_sec + PS(cache_expire) * 60; 1255 struct timeval tv; local 1258 gettimeofday(&tv, NULL); 1259 t = tv [all...] |
| /PHP_5_3/ext/soap/ |
| H A D | php_http.c | 168 struct timeval tv; local 184 tv.tv_sec = Z_LVAL_PP(tmp); 185 tv.tv_usec = 0; 186 timeout = &tv;
|
| /PHP_5_3/ext/sockets/ |
| H A D | sockets.c | 789 struct timeval tv; local 828 tv.tv_sec = Z_LVAL_P(sec) + (usec / 1000000); 829 tv.tv_usec = usec % 1000000; 831 tv.tv_sec = Z_LVAL_P(sec); 832 tv.tv_usec = usec; 835 tv_p = &tv; 1734 struct timeval tv; local 1766 optlen = sizeof(tv); 1768 if (getsockopt(php_sock->bsd_socket, level, optname, (char*)&tv, &optlen) != 0) { 1780 tv 1815 struct timeval tv; local [all...] |
| /PHP_5_3/ext/standard/ |
| H A D | fsock.c | 40 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 D | lcg.c | 78 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 D | uniqid.c | 54 struct timeval tv; local 71 gettimeofday((struct timeval *) &tv, (struct timezone *) NULL); 72 sec = (int) tv.tv_sec; 73 usec = (int) (tv.tv_usec % 0x100000);
|
| H A D | streamsfuncs.c | 93 struct timeval tv; local 116 tv.tv_sec = (long)(conv / 1000000); 117 tv.tv_usec =(long)(conv % 1000000); 119 tv.tv_sec = conv / 1000000; 120 tv.tv_usec = conv % 1000000; 134 hashkey, &tv, context, &errstr, &err); 247 struct timeval tv; local 262 tv.tv_sec = (long)(conv / 1000000); 263 tv.tv_usec = (long)(conv % 1000000); 265 tv 766 struct timeval tv; local [all...] |
| /PHP_5_3/main/ |
| H A D | network.c | 1140 struct timeval tv; local 1167 tv.tv_sec = timeout / 1000; 1168 tv.tv_usec = (timeout - (tv.tv_sec * 1000)) * 1000; 1176 n = select(max_fd + 1, &rset, &wset, &eset, timeout >= 0 ? &tv : NULL);
|
| /PHP_5_3/main/streams/ |
| H A D | userspace.c | 1028 struct timeval tv = *(struct timeval*)ptrparam; local 1029 ZVAL_LONG(zvalue, tv.tv_sec); 1030 ZVAL_LONG(zptrparam, tv.tv_usec);
|
| H A D | xp_socket.c | 277 struct timeval tv; local 283 tv.tv_sec = FG(default_socket_timeout); 284 tv.tv_usec = 0; 286 tv = sock->timeout; 289 tv.tv_sec = value; 290 tv.tv_usec = 0; 295 } else if (php_pollfd_for(sock->socket, PHP_POLLREADABLE|POLLPRI, &tv) > 0) {
|
| /PHP_5_3/sapi/cli/ |
| H A D | php_cli.c | 235 struct timeval tv; local 243 tv.tv_sec = FG(default_socket_timeout); 244 tv.tv_usec = 0; 246 ret = php_select(fd+1, &dfd, &wfd, &dfd, &tv);
|
| /PHP_5_3/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) 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 D | time.c | 48 int getfilesystemtime(struct timeval *tv) argument 74 tv->tv_sec = (long)(ff / 1000000Ui64); 75 tv->tv_usec = (long)(ff % 1000000Ui64);
|
| /PHP_5_3/ext/mysqlnd/ |
| H A D | mysqlnd_net.c | 113 struct timeval tv; local 135 tv.tv_sec = net->options.timeout_connect; 136 tv.tv_usec = 0; 141 hashed_details, (net->options.timeout_connect) ? &tv : NULL, 191 tv.tv_sec = net->options.timeout_read; 192 tv.tv_usec = 0; 193 php_stream_set_option(net->stream, PHP_STREAM_OPTION_READ_TIMEOUT, 0, &tv); 815 struct timeval tv; local 817 tv.tv_sec = net->options.timeout_read; 818 tv [all...] |
| H A D | mysqlnd.c | 1206 struct timeval tv; local 1251 tv.tv_sec = sec + (usec / 1000000); 1252 tv.tv_usec = usec % 1000000; 1254 tv.tv_sec = sec; 1255 tv.tv_usec = usec; 1258 tv_p = &tv;
|