Home
last modified time | relevance | path

Searched refs:ts (Results 1 – 13 of 13) sorted by relevance

/lighttpd1.4/src/
H A Dmod_expire.c44 char *ts; in mod_expire_get_offset() local
61 ts = expire->ptr; in mod_expire_get_offset()
65 ts += 7; in mod_expire_get_offset()
68 ts += 4; in mod_expire_get_offset()
71 ts += 13; in mod_expire_get_offset()
80 ts += 5; in mod_expire_get_offset()
94 num = strtol(ts, &err, 10); in mod_expire_get_offset()
101 ts = space + 1; in mod_expire_get_offset()
110 slen = space - ts; in mod_expire_get_offset()
135 ts = space + 1; in mod_expire_get_offset()
[all …]
H A Dlog.c44 return clock_gettime(clockid, ts); in log_clock_gettime()
50 ts->tv_sec = TIME64_CAST(ts32.tv_sec); in log_clock_gettime()
51 ts->tv_nsec = ts32.tv_nsec; in log_clock_gettime()
63 ts->tv_sec = tv.tv_sec; in log_clock_gettime()
65 ts->tv_sec = TIME64_CAST(tv.tv_sec); in log_clock_gettime()
67 ts->tv_nsec = tv.tv_usec * 1000; in log_clock_gettime()
74 return log_clock_gettime(CLOCK_REALTIME, ts); in log_clock_gettime_realtime()
76 return log_clock_gettime(0, ts); in log_clock_gettime_realtime()
117 unix_timespec64_t ts = { 0, 0 }; in __attribute_nonnull__() local
118 log_clock_gettime_realtime(&ts); in __attribute_nonnull__()
[all …]
H A Dlog.h12 #define log_clock_gettime(clockid,ts) clock_gettime((clockid),(ts)) argument
13 #define log_clock_gettime_realtime(ts) clock_gettime(CLOCK_REALTIME,(ts)) argument
15 int log_clock_gettime(int clockid, unix_timespec64_t *ts);
16 int log_clock_gettime_realtime (unix_timespec64_t *ts);
H A Dfdlog_maint.c87 fdlog_pipe_restart (fdlog_pipe * const fdp, const unix_time64_t ts) in fdlog_pipe_restart() argument
89 if (fdp->start + 5 < ts) { /* limit restart to once every 5 sec */ in fdlog_pipe_restart()
91 fdp->start = ts; in fdlog_pipe_restart()
99 fdlog_pipes_restart (const unix_time64_t ts) in fdlog_pipes_restart() argument
104 fdlog_pipe_restart(fdp, ts); in fdlog_pipes_restart()
H A Dmod_accesslog.c659 unix_timespec64_t * const ts, in accesslog_append_time() argument
672 if (0 == ts->tv_sec) log_clock_gettime_realtime(ts); in accesslog_append_time()
673 t = ts->tv_sec; in accesslog_append_time()
674 ns = ts->tv_nsec; in accesslog_append_time()
694 if (0 == ts->tv_sec) log_clock_gettime_realtime(ts); in accesslog_append_time()
695 ns = ts->tv_nsec; in accesslog_append_time()
755 if (0 == ts->tv_sec) log_clock_gettime_realtime(ts); in accesslog_append_time()
756 tdiff = (off_t)(ts->tv_sec - bs->tv_sec)*1000000000 + (ts->tv_nsec - bs->tv_nsec); in accesslog_append_time()
892 unix_timespec64_t ts = { 0, 0 }; in log_access_record() local
926 flush |= accesslog_append_time(b, r, f, &ts, parsed_format); in log_access_record()
H A Dmod_status.c267 unix_time64_t ts; in mod_status_handle_server_status_html() local
401 ts = cur_ts - srv->startup_ts; in mod_status_handle_server_status_html()
403 days = ts / (60 * 60 * 24); in mod_status_handle_server_status_html()
404 ts %= (60 * 60 * 24); in mod_status_handle_server_status_html()
406 hours = ts / (60 * 60); in mod_status_handle_server_status_html()
407 ts %= (60 * 60); in mod_status_handle_server_status_html()
409 mins = ts / (60); in mod_status_handle_server_status_html()
410 seconds = ts % (60); in mod_status_handle_server_status_html()
432 ts = srv->startup_ts; in mod_status_handle_server_status_html()
435 buffer_append_strftime(b, "%F %T", localtime64_r(&ts, &tm)); in mod_status_handle_server_status_html()
H A Dfdevent_impl.c401 struct timespec ts = {0, 0}; in fdevent_freebsd_kqueue_event_del() local
415 return (0 != n) ? kevent(ev->kq_fd, kev, n, NULL, 0, &ts) : 0; in fdevent_freebsd_kqueue_event_del()
424 struct timespec ts = {0, 0}; in fdevent_freebsd_kqueue_event_set() local
449 return (0 != n) ? kevent(ev->kq_fd, kev, n, NULL, 0, &ts) : 0; in fdevent_freebsd_kqueue_event_set()
457 struct timespec ts; in fdevent_freebsd_kqueue_poll() local
458 ts.tv_sec = timeout_ms / 1000; in fdevent_freebsd_kqueue_poll()
459 ts.tv_nsec = (timeout_ms % 1000) * 1000000; in fdevent_freebsd_kqueue_poll()
462 const int n = kevent(ev->kq_fd, NULL, 0, kq_results, ev->maxfds, &ts); in fdevent_freebsd_kqueue_poll()
H A Dfdlog.h43 void fdlog_pipes_restart (unix_time64_t ts);
H A Dserver.c306 unix_timespec64_t ts; in server_monotonic_secs() local
307 return (0 == log_clock_gettime(clockid_mono_coarse, &ts)) in server_monotonic_secs()
308 ? ts.tv_sec in server_monotonic_secs()
351 unix_timespec64_t ts; in server_init() local
352 UNUSED(&ts); in server_init()
354 if (0 == log_clock_gettime(CLOCK_MONOTONIC_COARSE, &ts)) in server_init()
359 if (0 == log_clock_gettime(CLOCK_MONOTONIC_RAW_APPROX, &ts)) in server_init()
364 if (0 == log_clock_gettime(CLOCK_MONOTONIC_RAW, &ts)) in server_init()
H A Dmod_auth.c1450 unix_time64_t ts = 0; in mod_auth_digest_validate_nonce() local
1454 ts = (unix_time64_t)((uint64_t)ts << 4) | hex2int(nonce[i]); in mod_auth_digest_validate_nonce()
1457 if (nonce[i] != ':' || ts > cur_ts || cur_ts - ts > 600) { /*(10 mins)*/ in mod_auth_digest_validate_nonce()
1462 if (cur_ts - ts > 540) /*(9 mins)*/ in mod_auth_digest_validate_nonce()
H A Dmod_magnet.c743 unix_timespec64_t ts; in magnet_hrtime() local
744 if (0 != log_clock_gettime_realtime(&ts)) in magnet_hrtime()
746 lua_pushinteger(L, (lua_Integer)ts.tv_sec); in magnet_hrtime()
747 lua_pushinteger(L, (lua_Integer)ts.tv_nsec); in magnet_hrtime()
/lighttpd1.4/doc/scripts/
H A Dcert-staple.sh30 ts=$(date +%s)
31 ts=$(( $ts + $next_delta ))
32 if [ -n "$next_ts" ] && [ "$next_ts" -gt "$ts" ]; then
91 ts="${i#${OCSP_DER}.}"
92 if [ -n "$ts" ] && [ "$ts" -lt "$now" ]; then
/lighttpd1.4/
H A DNEWS615 * [multiple] use binary '|' to reconstruct ts
1346 * [core] move request start ts into (request_st *)
2427 * [mod_accesslog] flag high precision ts for %T (fixes #2807)