Lines Matching refs:timespec

168                                 const struct timespec timeout);
169 static int retrying_poll(const int sock, short events, const struct timespec* finish);
175 static int elapsedTimeInMs(const timespec& from);
202 static struct timespec evConsTime(time_t sec, long nsec) { in evConsTime()
203 struct timespec x; in evConsTime()
210 static struct timespec evAddTime(struct timespec addend1, struct timespec addend2) { in evAddTime()
211 struct timespec x; in evAddTime()
222 static struct timespec evSubTime(struct timespec minuend, struct timespec subtrahend) { in evSubTime()
223 struct timespec x; in evSubTime()
235 static int evCmpTime(struct timespec a, struct timespec b) { in evCmpTime()
246 static struct timespec evNowTime(void) { in evNowTime()
247 struct timespec tsnow; in evNowTime()
687 static struct timespec get_timeout(ResState* statp, const res_params* params, const int addrIndex) { in get_timeout()
702 struct timespec result; in get_timeout()
918 const timespec timeout) { in connect_with_timeout()
930 timespec now = evNowTime(); in connect_with_timeout()
931 timespec finish = evAddTime(now, timeout); in connect_with_timeout()
944 static int retrying_poll(const int sock, const short events, const struct timespec* finish) { in retrying_poll()
945 struct timespec now, timeout; in retrying_poll()
988 static Result<std::vector<int>> udpRetryingPoll(ResState* statp, const timespec* finish) { in udpRetryingPoll()
991 timespec start_time = evNowTime(); in udpRetryingPoll()
992 timespec timeout = (evCmpTime(*finish, start_time) > 0) ? evSubTime(*finish, start_time) in udpRetryingPoll()
1015 const timespec* finish) { in udpRetryingPollWrapper()
1122 timespec timeout = get_timeout(statp, params, *ns); in send_dg()
1123 timespec start_time = evNowTime(); in send_dg()
1124 timespec finish = evAddTime(start_time, timeout); in send_dg()
1225 const struct timespec finish = evAddTime(evNowTime(), {2, 2000000}); in send_mdns()
1469 int elapsedTimeInMs(const timespec& from) { in elapsedTimeInMs()
1470 const timespec now = evNowTime(); in elapsedTimeInMs()