Searched defs:tv (Results 1 - 18 of 18) sorted by relevance

/dovecot/src/lib/
H A Dtime-util.h8 /* 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 Dioloop-kqueue.c115 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 Dioloop-select.c109 struct timeval tv; local
114 io_loop_get_wait_time(ioloop, &tv);
121 &ctx->tmp_write_fds, &ctx->tmp_except_fds, &tv);
H A Dioloop-epoll.c170 struct timeval tv; local
178 msecs = io_loop_get_wait_time(ioloop, &tv);
H A Dioloop-poll.c148 struct timeval tv; local
154 msecs = io_loop_get_wait_time(ioloop, &tv);
H A Dtest-ioloop.c17 static void timeout_callback(struct timeval *tv) argument
19 if (gettimeofday(tv, NULL) < 0)
H A Dcompat.c257 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 Dioloop.c588 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 Dlib-event.c416 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 Dldap-search.c100 struct timeval tv = { local
113 &tv,
H A Dldap-connection.c669 struct timeval tv = { local
678 ret = ldap_result(conn->conn, LDAP_RES_ANY, 0, &tv, &message);
/dovecot/src/lib-storage/index/maildir/
H A Dmaildir-filename.c13 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 Dstats-parser.c171 const struct timeval *tv = ptr; local
174 tv->tv_sec, (unsigned int)tv->tv_usec);
/dovecot/src/old-stats/
H A Dclient-export.c251 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 Duser-directory.c115 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 Dclient-common.c666 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 Ddb-ldap.c1165 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 Ddriver-cassandra.c1012 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;

Completed in 58 milliseconds