| /src/external/gpl2/xcvs/dist/lib/ |
| gettime.c | 29 /* Get the system time into *TS. */ 32 gettime (struct timespec *ts) 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;
|
| /src/external/bsd/tmux/dist/compat/ |
| clock_gettime.c | 23 #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(__unused int clock, struct timespec *ts) 35 TIMEVAL_TO_TIMESPEC(&tv, ts);
|
| /src/sys/compat/sys/ |
| time_types.h | 76 timeval50_to_timeval(const struct timeval50 *ts50, struct timeval *ts) 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) 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) 94 memset(ts, 0, sizeof(*ts)) [all...] |
| /src/external/gpl3/gcc/dist/gcc/fortran/ |
| iresolve.cc | 84 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.kind = 4 334 gfc_typespec ts; local 382 gfc_typespec ts; local 479 gfc_typespec ts; local 496 gfc_typespec ts; local 767 gfc_typespec ts; local 810 gfc_typespec ts; local 936 gfc_typespec ts; local 1313 gfc_typespec ts; local 1395 gfc_typespec ts; local 1739 gfc_typespec ts; local 1749 gfc_typespec ts; local 1838 gfc_typespec ts; local 1858 gfc_typespec ts; local 2066 gfc_typespec ts; local 2076 gfc_typespec ts; local 2369 gfc_typespec ts = tmp->ts; local 2451 gfc_typespec ts = shape->ts; local 2743 gfc_typespec ts; local 2773 gfc_typespec ts; local 2803 gfc_typespec ts; local 3183 gfc_typespec ts; local 3270 gfc_typespec ts; local 3567 gfc_typespec ts; local 3643 gfc_typespec ts; local 3722 gfc_typespec ts; local 3745 gfc_typespec ts; local 3763 gfc_typespec ts; local 3848 gfc_typespec *ts; local 3863 gfc_typespec ts; local 3908 gfc_typespec ts; local 3955 gfc_typespec ts; local 3998 gfc_typespec ts; local 4021 gfc_typespec ts; local [all...] |
| misc.cc | 32 gfc_clear_ts (gfc_typespec *ts) 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->deferred = false [all...] |
| /src/external/gpl3/gcc.old/dist/gcc/fortran/ |
| iresolve.cc | 84 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.kind = 4 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...] |
| misc.cc | 32 gfc_clear_ts (gfc_typespec *ts) 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->deferred = false [all...] |
| /src/sys/external/bsd/drm2/include/linux/ |
| time.h | 62 getrawmonotonic(struct timespec *ts) 64 getnanouptime(ts); 74 timespec_valid(const struct timespec *ts) 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.tv_sec -= 1 107 struct timespec ts; local [all...] |
| /src/lib/libc/gen/ |
| timespec_get.c | 43 timespec_get(struct timespec *ts, int base) 46 _DIAGASSERT(ts != NULL); 50 if (clock_gettime(CLOCK_REALTIME, ts) == -1) 54 if (clock_gettime(CLOCK_MONOTONIC, ts) == -1)
|
| timespec_getres.c | 41 timespec_getres(struct timespec *ts, int base) 44 _DIAGASSERT(ts != NULL); 48 if (clock_getres(CLOCK_REALTIME, ts) == -1) 52 if (clock_getres(CLOCK_MONOTONIC, ts) == -1)
|
| 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/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/external/gpl3/gdb/dist/sim/testsuite/bfin/ |
| testset.s | 45 .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 0x000000b [all...] |
| /src/external/gpl3/gdb.old/dist/sim/testsuite/bfin/ |
| testset.s | 45 .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 0x000000b [all...] |
| /src/sys/kern/ |
| subr_time.c | 69 struct timespec now, ts; local 71 ts = *tsp; /* Don't modify original tsp. */ 73 timespecsub(&ts, &now, &ts); 74 return tstohz(&ts); 80 struct timespec now, ts; local 82 ts = *tsp; /* Don't modify original tsp. */ 84 timespecsub(&ts, &now, &ts); 85 return tstohz(&ts); [all...] |
| kern_turnstile.c | 116 turnstile_ctor(turnstile_t *ts) 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) 134 KASSERT(l->l_ts == ts); 140 if ((nts = ts->ts_free) != NULL) { 141 KASSERT(TS_ALL_WAITERS(ts) > 1); 143 ts->ts_free = nts->ts_free 167 turnstile_t *ts; local 225 turnstile_t *ts; local 528 turnstile_t *ts; local [all...] |
| /src/external/gpl3/gcc/dist/libgomp/config/posix/ |
| time.c | 50 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.tv_nsec / 1e9 [all...] |
| /src/external/gpl3/gcc.old/dist/libgomp/config/posix/ |
| time.c | 50 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.tv_nsec / 1e9 [all...] |
| /src/external/cddl/osnet/sys/sys/ |
| time.h | 55 #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.tv_nsec 85 struct timespec ts; local 106 struct timespec ts; local [all...] |
| /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/external/bsd/ntp/dist/libntp/ |
| buftvtots.c | 20 l_fp *ts 36 *ts = tval_stamp_to_lfp(tv);
|
| /src/external/bsd/blocklist/port/ |
| clock_gettime.c | 9 clock_gettime(int clock __unused, struct timespec *ts) 14 ts->tv_sec = tv.tv_sec; 15 ts->tv_nsec = tv.tv_usec * 1000;
|
| /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/external/bsd/libfido2/dist/src/ |
| time.c | 12 timespec_to_ms(const struct timespec *ts) 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;
|
| /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...] |