Searched refs:ts (Results 1 - 25 of 961) sorted by relevance

1234567891011>>

/netbsd-current/external/gpl2/xcvs/dist/lib/
H A Dgettime.c32 gettime (struct timespec *ts) argument
35 nanotime (ts);
39 if (clock_gettime (CLOCK_REALTIME, ts) == 0)
47 ts->tv_sec = tv.tv_sec;
48 ts->tv_nsec = tv.tv_usec * 1000;
51 ts->tv_sec = time (NULL);
52 ts->tv_nsec = 0;
/netbsd-current/external/bsd/tmux/dist/compat/
H A Dclock_gettime.c23 #define TIMEVAL_TO_TIMESPEC(tv, ts) do { \
24 (ts)->tv_sec = (tv)->tv_sec; \
25 (ts)->tv_nsec = (tv)->tv_usec * 1000; \
30 clock_gettime(int clock, struct timespec *ts) argument
35 TIMEVAL_TO_TIMESPEC(&tv, ts);
/netbsd-current/sys/compat/sys/
H A Dtime_types.h76 timeval50_to_timeval(const struct timeval50 *ts50, struct timeval *ts) argument
78 memset(ts, 0, sizeof(*ts));
79 ts->tv_sec = ts50->tv_sec;
80 ts->tv_usec = (suseconds_t)ts50->tv_usec;
84 timeval_to_timeval50(const struct timeval *ts, struct timeval50 *ts50) argument
87 ts50->tv_sec = (long)ts->tv_sec;
88 ts50->tv_usec = ts->tv_usec;
92 timespec50_to_timespec(const struct timespec50 *ts50, struct timespec *ts) argument
94 memset(ts,
100 timespec_to_timespec50(const struct timespec *ts, struct timespec50 *ts50) argument
108 itimerval50_to_itimerval(const struct itimerval50 *ts50, struct itimerval *ts) argument
116 itimerval_to_itimerval50(const struct itimerval *ts, struct itimerval50 *ts50) argument
124 itimerspec50_to_itimerspec(const struct itimerspec50 *ts50, struct itimerspec *ts) argument
133 itimerspec_to_itimerspec50(const struct itimerspec *ts, struct itimerspec50 *ts50) argument
[all...]
/netbsd-current/external/gpl3/gcc/dist/gcc/fortran/
H A Diresolve.cc84 if (source->ts.u.cl == NULL)
85 source->ts.u.cl = gfc_new_charlen (gfc_current_ns, NULL);
89 source->ts.u.cl->length
98 source->ts.u.cl->length
101 if (source->ts.u.cl->length == NULL)
112 gfc_typespec ts; local
113 gfc_clear_ts (&ts);
121 if (mask->ts.kind != 4)
123 ts.type = BT_LOGICAL;
124 ts
330 gfc_typespec ts; local
378 gfc_typespec ts; local
475 gfc_typespec ts; local
492 gfc_typespec ts; local
763 gfc_typespec ts; local
806 gfc_typespec ts; local
932 gfc_typespec ts; local
1309 gfc_typespec ts; local
1391 gfc_typespec ts; local
1735 gfc_typespec ts; local
1745 gfc_typespec ts; local
1834 gfc_typespec ts; local
1854 gfc_typespec ts; local
2062 gfc_typespec ts; local
2072 gfc_typespec ts; local
2439 gfc_typespec ts = shape->ts; local
2731 gfc_typespec ts; local
2761 gfc_typespec ts; local
2791 gfc_typespec ts; local
3167 gfc_typespec ts; local
3254 gfc_typespec ts; local
3551 gfc_typespec ts; local
3627 gfc_typespec ts; local
3706 gfc_typespec ts; local
3729 gfc_typespec ts; local
3747 gfc_typespec ts; local
3832 gfc_typespec *ts; local
3847 gfc_typespec ts; local
3892 gfc_typespec ts; local
3939 gfc_typespec ts; local
3982 gfc_typespec ts; local
4005 gfc_typespec ts; local
[all...]
H A Dmisc.cc32 gfc_clear_ts (gfc_typespec *ts) argument
34 ts->type = BT_UNKNOWN;
35 ts->u.derived = NULL;
36 ts->kind = 0;
37 ts->u.cl = NULL;
38 ts->interface = NULL;
40 ts->is_c_interop = 0;
42 ts->f90_type = BT_UNKNOWN;
44 ts->is_iso_c = 0;
45 ts
125 gfc_typename(gfc_typespec *ts, bool for_hash) argument
268 gfc_dummy_typename(gfc_typespec *ts) argument
[all...]
/netbsd-current/sys/external/bsd/drm2/include/linux/
H A Dtime.h62 getrawmonotonic(struct timespec *ts) argument
64 getnanouptime(ts);
74 timespec_valid(const struct timespec *ts) argument
76 if (ts->tv_sec < 0)
78 if (1000000000L <= ts->tv_nsec)
86 struct timespec ts; local
88 ts.tv_sec = (nsec / 1000000000L);
89 ts.tv_nsec = (nsec % 1000000000L);
90 if (ts.tv_nsec < 0) {
91 ts
99 timespec_to_ns(const struct timespec *ts) argument
107 struct timespec ts; local
133 set_normalized_timespec(struct timespec *ts, time_t sec, int64_t nsec) argument
[all...]
/netbsd-current/external/gpl3/gdb.old/dist/sim/testsuite/sim/bfin/
H A Dtestset.s45 .macro ts val:req
52 ts 0x00000000
53 ts 0x00000011
54 ts 0x11111111
55 ts 0x11111101
56 ts 0x11111110
57 ts 0x111111bb
58 ts 0xaaaaaa00
59 ts 0xabcd2222
60 ts
[all...]
/netbsd-current/external/mit/libuv/dist/src/unix/
H A Dposix-hrtime.c32 struct timespec ts; local
33 clock_gettime(CLOCK_MONOTONIC, &ts);
34 return (((uint64_t) ts.tv_sec) * NANOSEC + ts.tv_nsec);
/netbsd-current/sys/external/bsd/drm2/include/linux/sched/
H A Dclock.h44 struct timespec ts; local
46 nanouptime(&ts);
48 return ts.tv_sec*1000000000ull + ts.tv_nsec;
/netbsd-current/external/gpl3/gdb/dist/sim/testsuite/bfin/
H A Dtestset.s45 .macro ts val:req
52 ts 0x00000000
53 ts 0x00000011
54 ts 0x11111111
55 ts 0x11111101
56 ts 0x11111110
57 ts 0x111111bb
58 ts 0xaaaaaa00
59 ts 0xabcd2222
60 ts
[all...]
/netbsd-current/lib/libc/gen/
H A Dusleep.c49 struct timespec ts; local
54 ts.tv_sec = (useconds / 1000000);
55 ts.tv_nsec = (useconds % 1000000) * 1000;
57 nanosleep(&ts, NULL);
H A Dtimespec_get.c43 timespec_get(struct timespec *ts, int base) argument
46 _DIAGASSERT(ts != NULL);
50 if (clock_gettime(CLOCK_REALTIME, ts) == -1)
/netbsd-current/external/gpl3/gcc.old/dist/libgomp/config/posix/
H A Dtime.c50 struct timespec ts; local
52 if (clock_gettime (CLOCK_MONOTONIC, &ts) < 0)
54 clock_gettime (CLOCK_REALTIME, &ts);
55 return ts.tv_sec + ts.tv_nsec / 1e9;
67 struct timespec ts; local
69 if (clock_getres (CLOCK_MONOTONIC, &ts) < 0)
71 clock_getres (CLOCK_REALTIME, &ts);
72 return ts.tv_sec + ts
[all...]
/netbsd-current/external/gpl3/gcc/dist/libgomp/config/posix/
H A Dtime.c50 struct timespec ts; local
52 if (clock_gettime (CLOCK_MONOTONIC, &ts) < 0)
54 clock_gettime (CLOCK_REALTIME, &ts);
55 return ts.tv_sec + ts.tv_nsec / 1e9;
67 struct timespec ts; local
69 if (clock_getres (CLOCK_MONOTONIC, &ts) < 0)
71 clock_getres (CLOCK_REALTIME, &ts);
72 return ts.tv_sec + ts
[all...]
/netbsd-current/external/cddl/osnet/sys/sys/
H A Dtime.h55 #define TIMESPEC_OVERFLOW(ts) \
56 ((ts)->tv_sec < INT32_MIN || (ts)->tv_sec > INT32_MAX)
58 #define TIMESPEC_OVERFLOW(ts) \
59 ((ts)->tv_sec < INT64_MIN || (ts)->tv_sec > INT64_MAX)
70 struct timespec ts; local
73 getnanouptime(&ts);
74 nsec = (hrtime_t)ts.tv_sec * NANOSEC + ts
85 struct timespec ts; local
105 struct timespec ts; local
[all...]
/netbsd-current/external/gpl3/gcc.old/dist/gcc/fortran/
H A Dmisc.c32 gfc_clear_ts (gfc_typespec *ts) argument
34 ts->type = BT_UNKNOWN;
35 ts->u.derived = NULL;
36 ts->kind = 0;
37 ts->u.cl = NULL;
38 ts->interface = NULL;
40 ts->is_c_interop = 0;
42 ts->f90_type = BT_UNKNOWN;
44 ts->is_iso_c = 0;
45 ts
125 gfc_typename(gfc_typespec *ts, bool for_hash) argument
266 gfc_dummy_typename(gfc_typespec *ts) argument
[all...]
H A Diresolve.c84 if (source->ts.u.cl == NULL)
85 source->ts.u.cl = gfc_new_charlen (gfc_current_ns, NULL);
89 source->ts.u.cl->length
98 source->ts.u.cl->length
101 if (source->ts.u.cl->length == NULL)
112 gfc_typespec ts; local
113 gfc_clear_ts (&ts);
121 if (mask->ts.kind != 4)
123 ts.type = BT_LOGICAL;
124 ts
325 gfc_typespec ts; local
372 gfc_typespec ts; local
467 gfc_typespec ts; local
484 gfc_typespec ts; local
747 gfc_typespec ts; local
790 gfc_typespec ts; local
912 gfc_typespec ts; local
1284 gfc_typespec ts; local
1377 gfc_typespec ts; local
1717 gfc_typespec ts; local
1727 gfc_typespec ts; local
1816 gfc_typespec ts; local
1835 gfc_typespec ts; local
2040 gfc_typespec ts; local
2050 gfc_typespec ts; local
2411 gfc_typespec ts = shape->ts; local
2699 gfc_typespec ts; local
2729 gfc_typespec ts; local
2759 gfc_typespec ts; local
3132 gfc_typespec ts; local
3218 gfc_typespec ts; local
3315 gfc_typespec ts; local
3529 gfc_typespec ts; local
3605 gfc_typespec ts; local
3684 gfc_typespec ts; local
3707 gfc_typespec ts; local
3725 gfc_typespec ts; local
3810 gfc_typespec *ts; local
3825 gfc_typespec ts; local
3870 gfc_typespec ts; local
3917 gfc_typespec ts; local
3960 gfc_typespec ts; local
3983 gfc_typespec ts; local
[all...]
/netbsd-current/sys/kern/
H A Dkern_turnstile.c116 turnstile_ctor(turnstile_t *ts) argument
119 memset(ts, 0, sizeof(*ts));
120 sleepq_init(&ts->ts_sleepq[TS_READER_Q]);
121 sleepq_init(&ts->ts_sleepq[TS_WRITER_Q]);
130 turnstile_remove(turnstile_t *ts, lwp_t *l, int q) argument
134 KASSERT(l->l_ts == ts);
140 if ((nts = ts->ts_free) != NULL) {
141 KASSERT(TS_ALL_WAITERS(ts) > 1);
143 ts
167 turnstile_t *ts; local
225 turnstile_t *ts; local
312 turnstile_unlendpri(turnstile_t *ts) argument
370 turnstile_block(turnstile_t *ts, int q, wchan_t obj, syncobj_t *sobj) argument
444 turnstile_wakeup(turnstile_t *ts, int q, int count, lwp_t *nl) argument
528 turnstile_t *ts; local
[all...]
H A Dsubr_time.c129 struct timespec now, ts; local
131 ts = *tsp; /* Don't modify original tsp. */
133 timespecsub(&ts, &now, &ts);
134 return tstohz(&ts);
140 struct timespec now, ts; local
142 ts = *tsp; /* Don't modify original tsp. */
144 timespecsub(&ts, &now, &ts);
145 return tstohz(&ts);
152 tstohz(const struct timespec *ts) argument
186 itimespecfix(struct timespec *ts) argument
199 inittimeleft(struct timespec *ts, struct timespec *sleepts) argument
211 gettimeleft(struct timespec *ts, struct timespec *sleepts) argument
235 clock_timeleft(clockid_t clockid, struct timespec *ts, struct timespec *sleepts) argument
246 clock_gettime1(clockid_t clock_id, struct timespec *ts) argument
314 ts2timo(clockid_t clock_id, int flags, struct timespec *ts, int *timo, struct timespec *start) argument
[all...]
/netbsd-current/external/bsd/ntp/dist/libntp/
H A Dbuftvtots.c20 l_fp *ts
36 *ts = tval_stamp_to_lfp(tv);
/netbsd-current/external/bsd/blocklist/port/
H A Dclock_gettime.c9 clock_gettime(int clock __unused, struct timespec *ts) argument
14 ts->tv_sec = tv.tv_sec;
15 ts->tv_nsec = tv.tv_usec * 1000;
/netbsd-current/tests/kernel/
H A Dt_timeleft.c57 struct timespec ts; member in struct:info
61 timeleft__lwp_park(struct timespec *ts) argument
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
[all...]
/netbsd-current/external/bsd/libfido2/dist/src/
H A Dtime.c12 timespec_to_ms(const struct timespec *ts) argument
16 if (ts->tv_sec < 0 || ts->tv_nsec < 0 ||
17 ts->tv_nsec >= 1000000000LL)
20 if ((uint64_t)ts->tv_sec >= INT64_MAX / 1000LL)
23 x = ts->tv_sec * 1000LL;
24 y = ts->tv_nsec / 1000000LL;
/netbsd-current/external/gpl2/lvm2/dist/lib/misc/
H A Dtimestamp.c43 struct timestamp *ts = NULL; local
45 if (!(ts = dm_malloc(sizeof(*ts))))
48 if (clock_gettime(CLOCK_MONOTONIC, &ts->t)) {
53 return ts;
92 struct timestamp *ts = NULL; local
94 if (!(ts = dm_malloc(sizeof(*ts))))
97 if (gettimeofday(&ts->t, NULL)) {
102 return ts;
[all...]
/netbsd-current/tests/lib/libc/string/
H A Dt_bm.c74 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]
[all...]

Completed in 355 milliseconds

1234567891011>>