| /dovecot/src/lib/ |
| H A D | test-time-util.c | 315 test_begin("t_strftime and variants now"); 317 time_t now = time(NULL); local 318 test_timestamp(t_strftime(TS_FMT, gmtime(&now)), 0); 319 test_timestamp(t_strfgmtime(TS_FMT, now), 1); 320 test_timestamp(t_strflocaltime(TS_FMT, now), 2);
|
| H A D | file-lock.c | 507 struct timeval now; local 508 if (gettimeofday(&now, NULL) < 0) 511 int diff = timeval_diff_msecs(&now, &lock->locked_time); 520 struct timeval now; local 524 if (gettimeofday(&now, NULL) < 0) 526 long long diff = timeval_diff_usecs(&now, &lock_wait_start);
|
| H A D | file-dotlock.c | 135 time_t *last_change_r, time_t now, bool check_ctime) 142 time_t change_time = now; 149 change_time = st->st_mtime <= now && 165 static int update_lock_info(time_t now, struct lock_info *lock_info, argument 187 &lock_info->last_change, now, 205 static int check_lock(time_t now, struct lock_info *lock_info) argument 212 if ((ret = update_lock_info(now, lock_info, &changed)) != 0) 218 if (lock_info->lock_info.mtime >= now - STALE_PID_CHECK_SECS) 228 if (lock_info->last_pid_check == now) { 252 /* doesn't exist - now chec 134 update_change_info(const struct stat *st, struct file_change_info *change, time_t *last_change_r, time_t now, bool check_ctime) argument 318 try_create_lock_hardlink(struct lock_info *lock_info, bool write_pid, string_t *tmp_path, time_t now) argument 476 time_t now, max_wait_time, last_notify; local 689 time_t now = time(NULL); local 877 time_t now = time(NULL); local [all...] |
| H A D | failures.c | 87 struct timeval now; local 91 if (gettimeofday(&now, NULL) < 0) 93 tm = localtime(&now.tv_sec); 95 now.tv_usec = ctx->timestamp_usecs; 99 get_log_stamp_format("unused", now.tv_usec), tm) > 0) 137 blocking. Internal logging fd is also now
|
| H A D | net.c | 313 struct timeval start, now; local 326 if (gettimeofday(&now, NULL) < 0) 328 } while (timeval_diff_msecs(&now, &start) < (int)msecs); 1039 /* we're now really returning the getsockopt()'s error code
|
| /dovecot/src/imap/ |
| H A D | cmd-copy.c | 17 time_t now, last_io; local 22 now = time(NULL); 24 if (now - last_io > MAIL_STORAGE_STAYALIVE_SECS) { 29 client->last_output = now;
|
| H A D | main.c | 120 time_t last_io, now = time(NULL); local 121 time_t stop_timestamp = now - IMAP_DIE_IDLE_SECS; 325 /* client may be destroyed now */ 384 /* client may be destroyed now */ 505 /* NOTE: login_set.*_socket_path are now invalid due to data stack
|
| /dovecot/src/lib-index/ |
| H A D | test-mail-index-transaction-update.c | 593 uint32_t now; member in struct:__anon105 630 /* daylight savings times were confusing these tests, so we'll now 649 mail_index_update_day_headers(t, tests[i].now + timezone);
|
| /dovecot/src/lib-dns/ |
| H A D | dns-lookup.c | 128 struct timeval now; local 131 if (gettimeofday(&now, NULL) < 0) 134 diff = timeval_diff_msecs(&now, &lookup->start_time);
|
| /dovecot/src/lib-imap-urlauth/ |
| H A D | imap-urlauth.c | 278 time_t now = time(NULL); local 280 if (now > url->uauth_expire) { 354 time_t now = time(NULL); local 356 if (now > url->uauth_expire) {
|
| /dovecot/src/lib-master/ |
| H A D | master-service-settings.c | 453 time_t now, timeout; local 510 now = time(NULL); 511 timeout = now + CONFIG_READ_TIMEOUT_SECS; 513 alarm(timeout - now); 531 now = time(NULL); 532 } while (now < timeout);
|
| /dovecot/src/log/ |
| H A D | log-connection.c | 338 struct timeval now, start_timeval; local 356 now = ioloop_timeval; 357 tm = *localtime(&now.tv_sec); 360 log_it(log, line, &now, &tm);
|
| /dovecot/src/plugins/old-stats/ |
| H A D | stats-plugin.c | 93 session_stats_need_send(struct stats_user *suser, time_t now, argument 108 diff = now - suser->last_session_update; 114 if (suser->last_session_update != now) { 116 knows that this session is idle now */ 127 time_t now = time(NULL); local 134 if (session_stats_need_send(suser, now, &changed, &to_next_secs) && 137 suser->last_session_update = now; 403 per-io callback tracking now. (we might have been doing it
|
| /dovecot/src/auth/ |
| H A D | auth-cache.c | 375 time_t now; local 390 now = time(NULL); 391 if (node->created < now - (time_t)ttl_secs) { 403 if (node->created < now - (time_t)cache->neg_ttl_secs)
|
| /dovecot/src/lib-storage/index/maildir/ |
| H A D | maildir-sync.c | 152 You have the same mail duplicated now. 155 and changes it's flag. You have the same mail duplicated now. 160 between 1's link() and unlink(). The mail is now expunged. 241 time_t now; local 249 now = time(NULL); 250 if (now - ctx->last_touch > MAILDIR_LOCK_TOUCH_SECS && ctx->locked) { 252 ctx->last_touch = now; 254 if (now - ctx->last_notify > MAIL_STORAGE_STAYALIVE_SECS) { 262 ctx->last_notify = now;
|
| /dovecot/src/lib-storage/index/mbox/ |
| H A D | mbox-lock.c | 303 /* we're now privileged - avoid doing as much as possible */ 317 /* we're now privileged - avoid doing as much as possible */ 468 time_t now; local 489 now = time(NULL); 490 if (now >= max_wait_time) 493 alarm(I_MIN(max_wait_time - now, 5)); 507 now = time(NULL); 508 if (now >= max_wait_time) { 515 next_alarm = (max_wait_time - now) % 5; 522 max_wait_time - now); 534 time_t now; local 597 time_t now; local [all...] |
| /dovecot/src/lib-sql/ |
| H A D | sql-api.c | 101 time_t now; local 113 now = time(NULL); 114 if (db->last_connect_try + (time_t)db->connect_delay > now) 116 db->last_connect_try = now;
|
| H A D | driver-cassandra.c | 772 struct timeval now; local 779 if (gettimeofday(&now, NULL) < 0) 796 timeval_diff_usecs(&now, &result->finish_time), 823 /* Multi-page query finishes now. Log a debug/warning summary
|
| /dovecot/src/lib-storage/index/ |
| H A D | index-storage.c | 77 /* all caching disabled for now */ 102 time_t now; local 105 now = time(NULL); 112 if (now < ibox->next_lock_notify || secs_left < 15) 117 ibox->next_lock_notify = now + LOCK_NOTIFY_INTERVAL; 311 directly into memory now. */ 675 /* we only wanted to create the directory and it's done now */ 866 /* mails have been now successfully deleted. some mailbox formats may
|
| H A D | index-search.c | 172 /* there probably aren't many keywords, so O(n*m) for now */ 779 without larger code changes, so for now we'll just 1147 /* mail_search_args_init() must have been called by now */ 1548 struct timeval now; local 1556 if (gettimeofday(&now, NULL) < 0) 1559 usecs = timeval_diff_usecs(&now, &ctx->last_nonblock_timeval); 1562 ctx->last_nonblock_timeval = now; 1570 ctx->last_nonblock_timeval = now; 1642 anyway we're far enough now that we probably want 1826 /* finished searching the messages. now sor [all...] |
| /dovecot/src/login-common/ |
| H A D | login-proxy.c | 650 /* from now on, just do dummy proxying */ 692 /* NOTE: We're explicitly disabling ssl_client_ca_* settings for now 743 time_t now = time(NULL); local 744 time_t stop_timestamp = now - LOGIN_PROXY_DIE_IDLE_SECS;
|
| /dovecot/src/lib-fs/ |
| H A D | fs-api.c | 429 struct timeval now; local 432 if (gettimeofday(&now, NULL) < 0) 435 diff = timeval_diff_usecs(&now, start_tv); 1101 struct timeval now = ioloop_timeval; local 1108 if (gettimeofday(&now, NULL) < 0) 1121 iter->start_time = now;
|
| /dovecot/src/plugins/fts-squat/ |
| H A D | squat-trie.c | 759 we're adding UID 4 and this node now has [2,4] UIDs, 1382 time_t now; local 1389 now = time(NULL); 1391 I_MAX((unsigned int)now, ctx->trie->hdr.indexid + 1); 2049 #if 0 /* FIXME: this code is never actually reached now. */
|