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

/netbsd-current/tests/kernel/kqueue/
H A Dt_timer.c167 struct timespec sleepts; local
176 sleepts.tv_sec = TIME1_TOTAL_SEC;
177 sleepts.tv_nsec = 500000000;
178 ATF_REQUIRE(nanosleep(&sleepts, NULL) == 0);
197 struct timespec sleepts; local
209 sleepts.tv_sec = 5;
210 sleepts.tv_nsec = 0;
211 ATF_REQUIRE(nanosleep(&sleepts, NULL) == 0);
230 sleepts.tv_sec = 5;
231 sleepts
[all...]
/netbsd-current/sys/kern/
H A Dsubr_time.c199 inittimeleft(struct timespec *ts, struct timespec *sleepts) argument
206 getnanouptime(sleepts);
211 gettimeleft(struct timespec *ts, struct timespec *sleepts) argument
221 KASSERT(timespeccmp(sleepts, &now, <=));
222 timespecsub(&now, sleepts, &sleptts);
223 *sleepts = now;
235 clock_timeleft(clockid_t clockid, struct timespec *ts, struct timespec *sleepts) argument
240 timespecadd(ts, sleepts, ts);
242 *sleepts = sleptts;
H A Dsys_select.c242 struct timespec sleepts; local
246 if (ts && inittimeleft(ts, &sleepts) == -1) {
299 if (ts && (timo = gettimeleft(ts, &sleepts)) <= 0)
H A Dkern_event.c2275 struct timespec ats, sleepts; local
2293 if (inittimeleft(&ats, &sleepts) == -1) {
2322 gettimeleft(&ats, &sleepts)) > 0) {

Completed in 188 milliseconds