HomeSort by: relevance | last modified time | path
    Searched defs:ts (Results 1 - 25 of 223) sorted by relevancy

1 2 3 4 5 6 7 8 9

  /src/lib/libc/gen/
usleep.c 49 struct timespec ts; local
54 ts.tv_sec = (useconds / 1000000);
55 ts.tv_nsec = (useconds % 1000000) * 1000;
57 nanosleep(&ts, NULL);
  /src/lib/libc/sys/
sigtimedwait.c 51 struct timespec ts; local
54 ts = *timeout;
55 return __sigtimedwait(set, info, &ts);
epoll.c 59 struct timespec ts, *tsp; local
62 ts.tv_sec = timeout / 1000;
63 ts.tv_nsec = (timeout % 1000) * 1000000;
64 tsp = &ts;
  /src/lib/libc/compat/sys/
compat__lwp_park.c 59 struct timespec ts, *tsp; local
62 timespec50_to_timespec(ts50, tsp = &ts);
compat_aio_suspend.c 63 struct timespec ts, *tsp; local
66 timespec50_to_timespec(ts50, tsp = &ts);
compat_lfs_segwait.c 57 struct timeval ts, *tsp; local
60 timeval50_to_timeval(ts50, tsp = &ts);
compat_mqueue.c 66 struct timespec ts, *tsp; local
69 timespec50_to_timespec(ts50, tsp = &ts);
79 struct timespec ts, *tsp; local
82 timespec50_to_timespec(ts50, tsp = &ts);
compat_sigtimedwait.c 61 struct timespec ts; local
64 timespec50_to_timespec(timeout, &ts);
65 return ____sigtimedwait50(set, info, &ts);
compat_adjtime.c 62 struct timeval ts, *tsp; local
68 timeval50_to_timeval(ts50, tsp = &ts);
compat_nanosleep.c 62 struct timespec ts, *tsp; local
68 timespec50_to_timespec(ts50, tsp = &ts);
compat_kevent.c 60 struct timespec ts, *tsp; local
63 timespec50_to_timespec(ts50, tsp = &ts);
  /src/lib/libcurses/
pause.c 51 struct timespec ts; local
54 ts.tv_sec = ms / 1000;
55 ts.tv_nsec = (ms % 1000) * 1000000;
56 (void)nanosleep(&ts, NULL);
  /src/sys/external/bsd/drm2/include/linux/sched/
clock.h 44 struct timespec ts; local
46 nanouptime(&ts);
48 return ts.tv_sec*1000000000ull + ts.tv_nsec;
  /src/sys/compat/common/
kern_time_60.c 59 syscallarg(const struct timespec *) ts;
66 struct timespec ts, *tsp; local
68 if (SCARG(uap, ts) == NULL)
71 error = copyin(SCARG(uap, ts), &ts, sizeof(ts));
74 tsp = &ts;
  /src/sys/compat/netbsd32/
netbsd32_compat_60.c 53 syscallarg(const netbsd32_timespecp) ts;
58 struct timespec ts, *tsp; local
62 if (SCARG_P32(uap, ts) == NULL)
65 error = copyin(SCARG_P32(uap, ts), &ts32, sizeof ts32);
68 netbsd32_to_timespec(&ts32, &ts);
69 tsp = &ts;
netbsd32_futex.c 63 struct timespec ts, *tsp; local
73 netbsd32_to_timespec(&ts32, &ts);
74 tsp = &ts;
netbsd32_select.c 65 struct timespec ats, *ts = NULL; local
77 ts = &ats;
81 SCARG_P32(uap, ou), SCARG_P32(uap, ex), ts, NULL);
93 syscallarg(const netbsd32_timespecp_t) ts;
98 struct timespec ats, *ts = NULL; local
101 if (SCARG_P32(uap, ts)) {
102 error = copyin(SCARG_P32(uap, ts), &ts32, sizeof(ts32));
106 ts = &ats;
116 SCARG_P32(uap, ou), SCARG_P32(uap, ex), ts, mask);
126 syscallarg(const netbsd32_timespecp_t) ts;
131 struct timespec ats, *ts = NULL; local
    [all...]
netbsd32_epoll.c 99 struct timespec ts, *tsp; local
114 netbsd32_to_timespec(&ts32, &ts);
115 tsp = &ts;
  /src/tests/lib/libc/gen/
t_timespec_get.c 43 struct timespec ts, ts2; local
45 ATF_REQUIRE_EQ(timespec_getres(&ts, TIME_MONOTONIC), TIME_MONOTONIC);
48 ATF_REQUIRE_EQ(ts.tv_sec, ts2.tv_sec);
49 ATF_REQUIRE_EQ(ts.tv_nsec, ts2.tv_nsec);
51 ATF_REQUIRE_EQ(timespec_getres(&ts, TIME_UTC), TIME_UTC);
54 ATF_REQUIRE_EQ(ts.tv_sec, ts2.tv_sec);
55 ATF_REQUIRE_EQ(ts.tv_nsec, ts2.tv_nsec);
58 ATF_REQUIRE_EQ(timespec_getres(&ts, INT_MAX), 0);
69 struct timespec ts, ts2; local
71 ATF_REQUIRE_EQ(timespec_get(&ts, TIME_UTC), TIME_UTC)
97 struct timespec ts, ts2; local
    [all...]
  /src/tests/lib/libc/sys/
t_lwp_ctl.c 50 struct timespec ts; local
58 ts.tv_nsec = 10*1000000;
59 ts.tv_sec = 0;
61 ATF_REQUIRE(nanosleep(&ts, 0) != -1);
t_nanosleep.c 105 struct timespec ts; local
107 ts.tv_sec = 1;
108 ts.tv_nsec = -1;
110 ATF_REQUIRE_ERRNO(EINVAL, nanosleep(&ts, NULL) == -1);
112 ts.tv_sec = 1;
113 ts.tv_nsec = 1000000000;
115 ATF_REQUIRE_ERRNO(EINVAL, nanosleep(&ts, NULL) == -1);
117 ts.tv_sec = -1;
118 ts.tv_nsec = 0;
120 ATF_REQUIRE_ERRNO(0, nanosleep(&ts, NULL) == 0)
    [all...]
  /src/sys/rump/librump/rumpkern/
cons.c 140 struct timespec ts; local
142 getnanoboottime(&ts);
146 sb->st_atimespec = sb->st_mtimespec = sb->st_ctimespec = ts;
147 sb->st_birthtimespec = ts;
  /src/tests/kernel/
t_timeleft.c 57 struct timespec ts; member in struct:info
61 timeleft__lwp_park(struct timespec *ts)
64 ts, 0, ts, NULL) == -1);
69 timeleft_pselect(struct timespec *ts)
71 ATF_REQUIRE_ERRNO(EINTR, pselect(1, NULL, NULL, NULL, ts, NULL));
79 (*i->fun)(&i->ts);
86 const struct timespec ts = { 5, 0 }; local
88 struct info i = { fun, ts };
97 printf("Orig time %ju.%lu\n", (intmax_t)ts.tv_sec, ts.tv_nsec)
    [all...]
  /src/tests/lib/libc/string/
t_bm.c 74 size_t ts; local
79 for (ts = 0; ts < sizeof(testcases)/sizeof(t_testcase); ts++) {
80 ATF_CHECK((pattern = bm_comp((const u_char *)testcases[ts].pattern,
81 strlen(testcases[ts].pattern), (const u_char *)testcases[ts].freq)));
83 ATF_REQUIRE((text = strdup(testcases[ts].text)));
86 if (testcases[ts].match == -1)
89 ATF_CHECK_EQ(testcases[ts].match
    [all...]
  /src/tests/lib/libpthread/
t_mtx.c 119 struct timespec ts; local
121 ts.tv_sec = 0;
122 ts.tv_nsec = 1;
125 ATF_REQUIRE_EQ(mtx_timedlock(&m, &ts), thrd_success);
131 ATF_REQUIRE_EQ(mtx_timedlock(&m, &ts), thrd_timedout);
137 ATF_REQUIRE_EQ(mtx_timedlock(&m, &ts), thrd_success);
143 ATF_REQUIRE_EQ(mtx_timedlock(&m, &ts), thrd_success);
144 ATF_REQUIRE_EQ(mtx_timedlock(&m, &ts), thrd_success);
150 ATF_REQUIRE_EQ(mtx_timedlock(&m, &ts), thrd_success);

Completed in 22 milliseconds

1 2 3 4 5 6 7 8 9