Searched refs:tv_sec (Results 1 - 25 of 61) sorted by relevance

123

/PHP_5_6/ext/fileinfo/libmagic/
H A Dcdf_time.c138 ts->tv_sec = mktime(&tm);
139 if (ts->tv_sec == -1) {
191 p = cdf_ctime(&ts.tv_sec, buf);
H A Dprint.c84 t = ts.tv_sec;
/PHP_5_6/sapi/fpm/fpm/
H A Dfpm_children.c252 zlog(severity, "[pool %s] child %d exited %s after %ld.%06d seconds from start", child->wp->config->name, (int) pid, buf, tv2.tv_sec, (int) tv2.tv_usec);
254 zlog(ZLOG_DEBUG, "[pool %s] child %d has been killed by the process management after %ld.%06d seconds from start", child->wp->config->name, (int) pid, tv2.tv_sec, (int) tv2.tv_usec);
262 time_t now = tv1.tv_sec;
H A Dfpm_clock.c44 tv->tv_sec = ts.tv_sec;
100 tv->tv_sec = aTime.tv_sec;
H A Dfpm_config.h19 # define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
23 # define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0)
29 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \
32 (vvp)->tv_sec--; \
41 (result)->tv_sec = (a)->tv_sec + (b)->tv_sec; \
45 ++(result)->tv_sec; \
[all...]
H A Dfpm_events.c408 timeout = (tmp.tv_sec * 1000) + (tmp.tv_usec / 1000) + 1;
510 tmp.tv_sec = frequency / 1000;
513 tmp.tv_sec = 0;
H A Dfpm_log.c196 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%.2f", tms_total / fpm_scoreboard_get_tick() / (proc.cpu_duration.tv_sec + proc.cpu_duration.tv_usec / 1000000.) * 100.);
205 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%.3f", proc.duration.tv_sec + proc.duration.tv_usec / 1000000.);
211 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%.3f", proc.duration.tv_sec * 1000. + proc.duration.tv_usec / 1000.);
217 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%lu", proc.duration.tv_sec * 1000000UL + proc.duration.tv_usec);
H A Dfpm_request.c244 if (child->slow_logged.tv_sec) {
245 if (child->slow_logged.tv_sec != proc.accepted.tv_sec || child->slow_logged.tv_usec != proc.accepted.tv_usec) {
246 child->slow_logged.tv_sec = 0;
259 if (child->slow_logged.tv_sec == 0 && slowlog_timeout &&
260 proc.request_stage == FPM_REQUEST_EXECUTING && tv.tv_sec >= slowlog_timeout) {
271 (int) tv.tv_sec, (int) tv.tv_usec);
275 if (terminate_timeout && tv.tv_sec >= terminate_timeout) {
281 (int) tv.tv_sec, (int) tv.tv_usec);
H A Dfpm_status.c427 if (proc.cpu_duration.tv_sec == 0 && proc.cpu_duration.tv_usec == 0) {
430 cpu = (proc.last_request_cpu.tms_utime + proc.last_request_cpu.tms_stime + proc.last_request_cpu.tms_cutime + proc.last_request_cpu.tms_cstime) / fpm_scoreboard_get_tick() / (proc.cpu_duration.tv_sec + proc.cpu_duration.tv_usec / 1000000.) * 100.;
446 duration.tv_sec * 1000000UL + duration.tv_usec,
H A Dzlog.c72 len = strftime(timebuf, timebuf_len, "[%d-%b-%Y %H:%M:%S", localtime_r((const time_t *) &tv->tv_sec, &t));
/PHP_5_6/win32/
H A Dtime.c74 tv->tv_sec = (long)(ff / 1000000Ui64);
117 return usleep( rqtp->tv_sec * 1000000 + rqtp->tv_nsec / 1000 );
150 int timeout = value->it_value.tv_sec * 1000 + value->it_value.tv_usec;
H A Dtime.h34 time_t tv_sec; /* seconds */ member in struct:timespec
H A Dselect.c55 ms_total = tv->tv_sec * 1000;
111 tvslice.tv_sec = 0;
/PHP_5_6/ext/phar/
H A Dfunc_interceptors.c497 RETURN_LONG((long)stat_sb->st_atime.tv_sec);
503 RETURN_LONG((long)stat_sb->st_mtime.tv_sec);
509 RETURN_LONG((long)stat_sb->st_ctime.tv_sec);
555 MAKE_LONG_ZVAL_INCREF(stat_atime, (stat_sb->st_atime).tv_sec);
556 MAKE_LONG_ZVAL_INCREF(stat_mtime, (stat_sb->st_mtime).tv_sec);
557 MAKE_LONG_ZVAL_INCREF(stat_ctime, (stat_sb->st_ctime).tv_sec);
676 sb.st_mtime.tv_sec = phar->max_timestamp;
677 sb.st_atime.tv_sec = phar->max_timestamp;
678 sb.st_ctime.tv_sec = phar->max_timestamp;
722 sb.st_mtime.tv_sec
[all...]
H A Dstream.c491 ssb->sb.st_mtime.tv_sec = data->timestamp;
492 ssb->sb.st_atime.tv_sec = data->timestamp;
493 ssb->sb.st_ctime.tv_sec = data->timestamp;
505 ssb->sb.st_mtime.tv_sec = data->timestamp;
506 ssb->sb.st_atime.tv_sec = data->timestamp;
507 ssb->sb.st_ctime.tv_sec = data->timestamp;
518 ssb->sb.st_mtime.tv_sec = phar->max_timestamp;
519 ssb->sb.st_atime.tv_sec = phar->max_timestamp;
520 ssb->sb.st_ctime.tv_sec = phar->max_timestamp;
/PHP_5_6/ext/standard/
H A Dfsock.c67 tv.tv_sec = conv / 1000000;
H A Dlcg.c81 LCG(s1) = tv.tv_sec ^ (tv.tv_usec<<11);
H A Dmicrotime.c67 RETURN_DOUBLE((double)(tp.tv_sec + tp.tv_usec / MICRO_IN_SEC));
73 offset = timelib_get_time_zone_info(tp.tv_sec, get_timezone_info(TSRMLS_C));
76 add_assoc_long(return_value, "sec", tp.tv_sec);
86 snprintf(ret, 100, "%.8F %ld", tp.tv_usec / MICRO_IN_SEC, tp.tv_sec);
150 PHP_RUSAGE_PARA(ru_utime.tv_sec);
152 PHP_RUSAGE_PARA(ru_stime.tv_sec);
H A Duniqid.c72 sec = (int) tv.tv_sec;
/PHP_5_6/sapi/fpm/fpm/events/
H A Dkqueue.c128 t.tv_sec = timeout / 1000;
H A Dport.c123 t.tv_sec = (int)(timeout / 1000);
H A Dselect.c97 t.tv_sec = timeout / 1000;
/PHP_5_6/main/streams/
H A Dxp_socket.c64 if (sock->timeout.tv_sec == -1)
125 if (sock->timeout.tv_sec == -1)
159 nr_bytes = recv(sock->socket, buf, count, (sock->is_blocked && sock->timeout.tv_sec != -1) ? MSG_DONTWAIT : 0);
282 if (sock->timeout.tv_sec == -1) {
283 tv.tv_sec = FG(default_socket_timeout);
289 tv.tv_sec = value;
810 sock->timeout.tv_sec = FG(default_socket_timeout);
/PHP_5_6/main/
H A Dnetwork.c403 a.tv_sec--;
406 result->tv_sec = a.tv_sec - b.tv_sec;
407 if (result->tv_sec < 0L) {
408 result->tv_sec++;
788 limit_time.tv_sec += working_timeout.tv_sec;
792 limit_time.tv_sec++;
1042 sock->timeout.tv_sec
[all...]
/PHP_5_6/ext/openssl/
H A Dxp_ssl.c984 sslsock->reneg->prev_handshake = now.tv_sec;
988 elapsed_time = (now.tv_sec - sslsock->reneg->prev_handshake);
989 sslsock->reneg->prev_handshake = now.tv_sec;
1664 has_timeout = !sslsock->s.is_blocked && (timeout->tv_sec || timeout->tv_usec);
1682 elapsed_time.tv_sec = cur_time.tv_sec - start_time.tv_sec;
1685 elapsed_time.tv_sec -= 1L;
1689 if (elapsed_time.tv_sec > timeout->tv_sec ||
[all...]

Completed in 67 milliseconds

123