Home
last modified time | relevance | path

Searched refs:sleepts (Results 1 – 4 of 4) sorted by relevance

/netbsd-src/tests/kernel/kqueue/
H A Dt_timer.c167 struct timespec sleepts; in ATF_TC_BODY() local
176 sleepts.tv_sec = TIME1_TOTAL_SEC; in ATF_TC_BODY()
177 sleepts.tv_nsec = 500000000; in ATF_TC_BODY()
178 ATF_REQUIRE(nanosleep(&sleepts, NULL) == 0); in ATF_TC_BODY()
197 struct timespec sleepts; in ATF_TC_BODY() local
209 sleepts.tv_sec = 5; in ATF_TC_BODY()
210 sleepts.tv_nsec = 0; in ATF_TC_BODY()
211 ATF_REQUIRE(nanosleep(&sleepts, NULL) == 0); in ATF_TC_BODY()
230 sleepts.tv_sec = 5; in ATF_TC_BODY()
231 sleepts.tv_nsec = 0; in ATF_TC_BODY()
[all …]
/netbsd-src/sys/kern/
H A Dsubr_time.c104 inittimeleft(struct timespec *ts, struct timespec *sleepts) in tvtohz()
111 getnanouptime(sleepts); in tvtohz()
116 gettimeleft(struct timespec *ts, struct timespec *sleepts) in tvtohz()
126 KASSERT(timespeccmp(sleepts, &now, <=));
127 timespecsub(&now, sleepts, &sleptts); in tshzto()
128 *sleepts = now; in tshzto()
140 clock_timeleft(clockid_t clockid, struct timespec *ts, struct timespec *sleepts) in tshztoup()
145 timespecadd(ts, sleepts, ts); in tshztoup()
147 *sleepts = sleptts;
199 inittimeleft(struct timespec * ts,struct timespec * sleepts) inittimeleft() argument
211 gettimeleft(struct timespec * ts,struct timespec * sleepts) gettimeleft() argument
235 clock_timeleft(clockid_t clockid,struct timespec * ts,struct timespec * sleepts) clock_timeleft() argument
H A Dsys_select.c242 struct timespec sleepts; in sel_do_scan() local
246 if (ts && inittimeleft(ts, &sleepts) == -1) { in sel_do_scan()
299 if (ts && (timo = gettimeleft(ts, &sleepts)) <= 0) in sel_do_scan()
H A Dkern_event.c2275 struct timespec ats, sleepts; in kqueue_scan() local
2293 if (inittimeleft(&ats, &sleepts) == -1) { in kqueue_scan()
2322 gettimeleft(&ats, &sleepts)) > 0) { in kqueue_scan()