/dovecot/src/lib/ |
H A D | time-util.h | 8 /* Same as timeval_cmp, but tv->usecs must differ by at least usec_margin */ 18 timeval_add_msecs(struct timeval *tv, unsigned int msecs) argument 20 tv->tv_sec += msecs / 1000; 21 tv->tv_usec += (msecs % 1000) * 1000; 22 if (tv->tv_usec >= 1000000) { 23 tv->tv_sec++; 24 tv->tv_usec -= 1000000; 29 timeval_sub_msecs(struct timeval *tv, unsigned int msecs) argument 31 tv->tv_sec -= msecs / 1000; 32 tv [all...] |
H A D | ioloop-kqueue.c | 115 struct timeval tv; local 122 msecs = io_loop_get_wait_time(ioloop, &tv); 123 ts.tv_sec = tv.tv_sec; 124 ts.tv_nsec = tv.tv_usec * 1000;
|
H A D | ioloop-select.c | 109 struct timeval tv; local 114 io_loop_get_wait_time(ioloop, &tv); 121 &ctx->tmp_write_fds, &ctx->tmp_except_fds, &tv);
|
H A D | ioloop-epoll.c | 170 struct timeval tv; local 178 msecs = io_loop_get_wait_time(ioloop, &tv);
|
H A D | ioloop-poll.c | 148 struct timeval tv; local 154 msecs = io_loop_get_wait_time(ioloop, &tv);
|
H A D | test-ioloop.c | 17 static void timeout_callback(struct timeval *tv) argument 19 if (gettimeofday(tv, NULL) < 0)
|
H A D | compat.c | 257 struct timeval tv; local 262 if (gettimeofday(&tv, NULL) < 0) 264 tp->tv_sec = tv.tv_sec; 265 tp->tv_nsec = tv.tv_usec * 1000;
|
H A D | ioloop.c | 588 struct timeval tv, tv_call; local 626 if (timeout_get_wait_time(timeout, &tv, &tv_call) > 0) 1128 struct timeval tv; local 1130 return io_loop_get_wait_time(ioloop, &tv) == 0;
|
H A D | lib-event.c | 416 const struct timeval *tv) 423 field->value.timeval = *tv; 860 event_passthrough_add_timeval(const char *key, const struct timeval *tv) argument 862 event_add_timeval(last_passthrough_event(), key, tv); local 415 event_add_timeval(struct event *event, const char *key, const struct timeval *tv) argument
|
/dovecot/src/lib-ldap/ |
H A D | ldap-search.c | 100 struct timeval tv = { local 113 &tv,
|
H A D | ldap-connection.c | 669 struct timeval tv = { local 678 ret = ldap_result(conn->conn, LDAP_RES_ANY, 0, &tv, &message);
|
/dovecot/src/lib-storage/index/maildir/ |
H A D | maildir-filename.c | 13 struct timeval tv; local 17 tv = ioloop_timeval; 19 tv = last_tv; 20 if (++tv.tv_usec == 1000000) { 21 tv.tv_sec++; 22 tv.tv_usec = 0; 25 last_tv = tv; 28 dec2str(tv.tv_sec), dec2str(tv.tv_usec),
|
/dovecot/src/lib-old-stats/ |
H A D | stats-parser.c | 171 const struct timeval *tv = ptr; local 174 tv->tv_sec, (unsigned int)tv->tv_usec);
|
/dovecot/src/old-stats/ |
H A D | client-export.c | 251 static void client_export_timeval(string_t *str, const struct timeval *tv) argument 253 str_printfa(str, "\t%ld.%06u", (long)tv->tv_sec, 254 (unsigned int)tv->tv_usec);
|
/dovecot/src/director/ |
H A D | user-directory.c | 115 struct timeval tv = { .tv_sec = expire_timestamp }; local 116 dir->to_expire_timestamp = tv.tv_sec; 117 dir->to_expire = timeout_add_absolute(&tv, 161 struct timeval tv = { .tv_sec = ioloop_time + dir->timeout_secs }; local 162 dir->to_expire_timestamp = tv.tv_sec; 163 dir->to_expire = timeout_add_absolute(&tv, user_directory_drop_expired, dir);
|
/dovecot/src/login-common/ |
H A D | client-common.c | 666 struct timeval tv; local 676 if (gettimeofday(&tv, NULL) < 0) 678 timestamp = tv.tv_usec + (long long)tv.tv_sec * 1000ULL*1000ULL;
|
/dovecot/src/auth/ |
H A D | db-ldap.c | 1165 struct timeval tv; local 1168 tv.tv_sec = DB_LDAP_CONNECT_TIMEOUT_SECS; tv.tv_usec = 0; 1169 ret = ldap_set_option(conn->ld, LDAP_OPT_NETWORK_TIMEOUT, &tv);
|
/dovecot/src/lib-sql/ |
H A D | driver-cassandra.c | 1012 struct timeval tv; local 1036 tv = db->primary_query_last_sent[result->query_type]; 1037 timeval_add_msecs(&tv, msecs); 1038 return timeval_cmp(&ioloop_timeval, &tv) < 0;
|