| /freebsd-13.1/contrib/kyua/utils/ |
| H A D | datetime_test.cpp | 420 ATF_REQUIRE(!(ts1 < ts2)); in ATF_TEST_CASE_BODY() 421 ATF_REQUIRE( ts1 <= ts2); in ATF_TEST_CASE_BODY() 422 ATF_REQUIRE(!(ts1 > ts2)); in ATF_TEST_CASE_BODY() 423 ATF_REQUIRE( ts1 >= ts2); in ATF_TEST_CASE_BODY() 431 ATF_REQUIRE( ts1 < ts2); in ATF_TEST_CASE_BODY() 432 ATF_REQUIRE( ts1 <= ts2); in ATF_TEST_CASE_BODY() 433 ATF_REQUIRE(!(ts1 > ts2)); in ATF_TEST_CASE_BODY() 442 ATF_REQUIRE(!(ts1 < ts2)); in ATF_TEST_CASE_BODY() 444 ATF_REQUIRE( ts1 > ts2); in ATF_TEST_CASE_BODY() 445 ATF_REQUIRE( ts1 >= ts2); in ATF_TEST_CASE_BODY() [all …]
|
| /freebsd-13.1/contrib/netbsd-tests/lib/libc/sys/ |
| H A D | t_nanosleep.c | 71 struct timespec ts1, ts2, tsn; in ATF_TC_BODY() local 80 (void)memset(&ts2, 0, sizeof(struct timespec)); in ATF_TC_BODY() 84 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts2) == 0); in ATF_TC_BODY() 89 if (timespeccmp(&ts2, &ts1, <=) != 0) { in ATF_TC_BODY() 97 (unsigned long long)ts2.tv_sec, ts2.tv_nsec); in ATF_TC_BODY()
|
| /freebsd-13.1/lib/libthr/thread/ |
| H A D | thr_join.c | 91 struct timespec ts, ts2, *tsp; in join_common() local 139 TIMESPEC_SUB(&ts2, abstime, &ts); in join_common() 140 if (ts2.tv_sec < 0) { in join_common() 144 tsp = &ts2; in join_common()
|
| H A D | thr_mutex.c | 888 struct timespec ts1, ts2; in mutex_self_lock() local 900 TIMESPEC_SUB(&ts2, abstime, &ts1); in mutex_self_lock() 901 __sys_nanosleep(&ts2, NULL); in mutex_self_lock() 925 TIMESPEC_SUB(&ts2, abstime, &ts1); in mutex_self_lock() 926 __sys_nanosleep(&ts2, NULL); in mutex_self_lock()
|
| /freebsd-13.1/sys/netsmb/ |
| H A D | smb_trantcp.c | 524 struct timespec ts1, ts2; in smb_nbst_connect() local 548 getnanotime(&ts2); in smb_nbst_connect() 549 timespecsub(&ts2, &ts1, &ts2); in smb_nbst_connect() 550 if (ts2.tv_sec == 0) { in smb_nbst_connect() 551 ts2.tv_sec = 1; in smb_nbst_connect() 552 ts2.tv_nsec = 0; in smb_nbst_connect() 554 timespecadd(&ts2, &ts2, &nbp->nbp_timo); in smb_nbst_connect() 555 timespecadd(&nbp->nbp_timo, &ts2, &nbp->nbp_timo); in smb_nbst_connect() 556 timespecadd(&nbp->nbp_timo, &ts2, &nbp->nbp_timo); /* * 4 */ in smb_nbst_connect()
|
| /freebsd-13.1/crypto/openssl/crypto/ |
| H A D | o_time.c | 31 struct tm data, *ts2 = &data; in OPENSSL_gmtime() local 35 if (gmtime_r(timer, ts2) == NULL) in OPENSSL_gmtime() 37 memcpy(result, ts2, sizeof(struct tm)); in OPENSSL_gmtime()
|
| /freebsd-13.1/sys/kern/ |
| H A D | sched_ule.c | 2363 struct td_sched *ts2; in sched_fork_thread() local 2372 ts2 = td_get_sched(child); in sched_fork_thread() 2378 ts2->ts_cpu = ts->ts_cpu; in sched_fork_thread() 2379 ts2->ts_flags = 0; in sched_fork_thread() 2383 ts2->ts_ticks = ts->ts_ticks; in sched_fork_thread() 2384 ts2->ts_ltick = ts->ts_ltick; in sched_fork_thread() 2385 ts2->ts_ftick = ts->ts_ftick; in sched_fork_thread() 2393 ts2->ts_slptime = ts->ts_slptime; in sched_fork_thread() 2394 ts2->ts_runtime = ts->ts_runtime; in sched_fork_thread() 2396 ts2->ts_slice = tdq_slice(tdq) - sched_slice_min; in sched_fork_thread() [all …]
|
| H A D | uipc_mqueue.c | 1697 struct timespec ts, ts2; in mqueue_send() local 1739 timespecsub(abs_timeout, &ts, &ts2); in mqueue_send() 1740 if (ts2.tv_sec < 0 || (ts2.tv_sec == 0 && ts2.tv_nsec <= 0)) { in mqueue_send() 1744 TIMESPEC_TO_TIMEVAL(&tv, &ts2); in mqueue_send() 1852 struct timespec ts, ts2; in mqueue_receive() local 1890 timespecsub(abs_timeout, &ts, &ts2); in mqueue_receive() 1891 if (ts2.tv_sec < 0 || (ts2.tv_sec == 0 && ts2.tv_nsec <= 0)) { in mqueue_receive() 1895 TIMESPEC_TO_TIMEVAL(&tv, &ts2); in mqueue_receive()
|
| H A D | kern_timeout.c | 627 struct timespec ts2; in softclock_call_cc() local 703 ts2 = sbttots(sbt2); in softclock_call_cc() 706 c_func, c_arg, (intmax_t)ts2.tv_sec, ts2.tv_nsec); in softclock_call_cc()
|
| H A D | uipc_sem.c | 811 struct timespec ts1, ts2; in kern_sem_wait() local 846 getnanotime(&ts2); in kern_sem_wait() 847 timespecsub(&ts1, &ts2, &ts1); in kern_sem_wait()
|
| /freebsd-13.1/usr.sbin/moused/ |
| H A D | moused.c | 2514 struct timespec ts2; in r_timestamp() local 2530 ts2.tv_sec = rodent.clickthreshold / 1000; in r_timestamp() 2531 ts2.tv_nsec = (rodent.clickthreshold % 1000) * 1000000; in r_timestamp() 2532 tssub(&ts1, &ts2, &ts); in r_timestamp() 2536 ts2.tv_sec = rodent.button2timeout / 1000; in r_timestamp() 2537 ts2.tv_nsec = (rodent.button2timeout % 1000) * 1000000; in r_timestamp() 2538 tssub(&ts1, &ts2, &ts3); in r_timestamp() 2580 struct timespec ts2; in r_timeout() local 2585 ts2.tv_sec = rodent.button2timeout / 1000; in r_timeout() 2586 ts2.tv_nsec = (rodent.button2timeout % 1000) * 1000000; in r_timeout() [all …]
|
| /freebsd-13.1/sys/dev/mlx5/mlx5_core/ |
| H A D | mlx5_cmd.c | 832 ds = ent->ts2 - ent->ts1; in complete_command() 1023 ds = ent->ts2 - ent->ts1; in mlx5_cmd_invoke() 1211 ent->ts2 = ktime_get_ns(); in mlx5_cmd_comp_handler()
|
| /freebsd-13.1/sys/dev/mlx5/ |
| H A D | driver.h | 850 u64 ts2; member
|
| /freebsd-13.1/contrib/ncurses/ |
| H A D | aclocal.m4 | 2298 struct timespec ts1, ts2; 2302 ts2.tv_sec = 0; 2303 ts2.tv_nsec = 0; 2305 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
|