Home
last modified time | relevance | path

Searched refs:ts2 (Results 1 – 21 of 21) sorted by relevance

/src/contrib/kyua/utils/
H A Ddatetime_test.cpp270 const datetime::timestamp ts2 = ts1; in ATF_TEST_CASE_BODY() local
274 ATF_REQUIRE_EQ("2011", ts2.strftime("%Y")); in ATF_TEST_CASE_BODY()
347 const datetime::timestamp ts2 = datetime::timestamp::from_values( in ATF_TEST_CASE_BODY() local
349 ATF_REQUIRE_EQ("2011-02-16T19:15:30", ts2.strftime("%Y-%m-%dT%H:%M:%S")); in ATF_TEST_CASE_BODY()
360 const datetime::timestamp ts2= datetime::timestamp::from_values( in ATF_TEST_CASE_BODY() local
362 ATF_REQUIRE_EQ("2016-07-11T17:51:28.123456Z", ts2.to_iso8601_in_utc()); in ATF_TEST_CASE_BODY()
417 const datetime::timestamp ts2 = datetime::timestamp::from_microseconds( in ATF_TEST_CASE_BODY() local
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()
[all …]
/src/contrib/netbsd-tests/lib/libc/sys/
H A Dt_nanosleep.c71 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()
/src/sys/netsmb/
H A Dsmb_trantcp.c515 struct timespec ts1, ts2; in smb_nbst_connect() local
539 getnanotime(&ts2); in smb_nbst_connect()
540 timespecsub(&ts2, &ts1, &ts2); in smb_nbst_connect()
541 if (ts2.tv_sec == 0) { in smb_nbst_connect()
542 ts2.tv_sec = 1; in smb_nbst_connect()
543 ts2.tv_nsec = 0; in smb_nbst_connect()
545 timespecadd(&ts2, &ts2, &nbp->nbp_timo); in smb_nbst_connect()
546 timespecadd(&nbp->nbp_timo, &ts2, &nbp->nbp_timo); in smb_nbst_connect()
547 timespecadd(&nbp->nbp_timo, &ts2, &nbp->nbp_timo); /* * 4 */ in smb_nbst_connect()
/src/lib/libthr/thread/
H A Dthr_join.c119 struct timespec ts, ts2, *tsp; in join_common() local
176 TIMESPEC_SUB(&ts2, abstime, &ts); in join_common()
177 if (ts2.tv_sec < 0) { in join_common()
181 tsp = &ts2; in join_common()
H A Dthr_mutex.c886 struct timespec ts1, ts2; in mutex_self_lock() local
898 TIMESPEC_SUB(&ts2, abstime, &ts1); in mutex_self_lock()
899 __sys_nanosleep(&ts2, NULL); in mutex_self_lock()
923 TIMESPEC_SUB(&ts2, abstime, &ts1); in mutex_self_lock()
924 __sys_nanosleep(&ts2, NULL); in mutex_self_lock()
/src/tools/tools/so_splice/
H A Dpingpong.c130 struct timespec ts1, ts2; in main() local
149 clock_gettime(CLOCK_MONOTONIC, &ts2); in main()
151 ns = (ts2.tv_sec - ts1.tv_sec) * 1000000000 + in main()
152 (ts2.tv_nsec - ts1.tv_nsec); in main()
/src/sys/dev/qat/qat_common/
H A Dadf_clock.c83 struct timespec ts2; in measure_clock() local
102 nanotime(&ts2); in measure_clock()
104 delta = timespec_sub(ts2, ts1); in measure_clock()
/src/crypto/openssl/crypto/
H A Do_time.c31 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()
/src/lib/virtual_oss/bt/
H A Dsbc_encode.h48 uint8_t ts2; member
H A Dbt.c854 phdr->ts2 = (uint8_t)(cfg->mtu_timestamp >> 16); in bt_play_sbc_transfer()
906 uint8_t ts2; in bt_play_aac_transfer() member
950 phdr->ts2 = (uint8_t)(cfg->mtu_timestamp >> 16); in bt_play_aac_transfer()
/src/sys/kern/
H A Dsched_ule.c2534 struct td_sched *ts2; in sched_ule_fork_thread() local
2543 ts2 = td_get_sched(child); in sched_ule_fork_thread()
2549 ts2->ts_cpu = ts->ts_cpu; in sched_ule_fork_thread()
2550 ts2->ts_flags = 0; in sched_ule_fork_thread()
2554 ts2->ts_ticks = ts->ts_ticks; in sched_ule_fork_thread()
2555 ts2->ts_ltick = ts->ts_ltick; in sched_ule_fork_thread()
2556 ts2->ts_ftick = ts->ts_ftick; in sched_ule_fork_thread()
2564 ts2->ts_slptime = ts->ts_slptime; in sched_ule_fork_thread()
2565 ts2->ts_runtime = ts->ts_runtime; in sched_ule_fork_thread()
2567 ts2->ts_slice = tdq_slice(tdq) - sched_slice_min; in sched_ule_fork_thread()
[all …]
H A Duipc_mqueue.c1695 struct timespec ts, ts2; in mqueue_send() local
1737 timespecsub(abs_timeout, &ts, &ts2); in mqueue_send()
1738 if (ts2.tv_sec < 0 || (ts2.tv_sec == 0 && ts2.tv_nsec <= 0)) { in mqueue_send()
1742 TIMESPEC_TO_TIMEVAL(&tv, &ts2); in mqueue_send()
1850 struct timespec ts, ts2; in mqueue_receive() local
1888 timespecsub(abs_timeout, &ts, &ts2); in mqueue_receive()
1889 if (ts2.tv_sec < 0 || (ts2.tv_sec == 0 && ts2.tv_nsec <= 0)) { in mqueue_receive()
1893 TIMESPEC_TO_TIMEVAL(&tv, &ts2); in mqueue_receive()
H A Dkern_timeout.c647 struct timespec ts2; in softclock_call_cc() local
737 ts2 = sbttots(sbt2); in softclock_call_cc()
740 c_func, c_arg, (intmax_t)ts2.tv_sec, ts2.tv_nsec); in softclock_call_cc()
H A Duipc_sem.c809 struct timespec ts1, ts2; in kern_sem_wait() local
844 getnanotime(&ts2); in kern_sem_wait()
845 timespecsub(&ts1, &ts2, &ts1); in kern_sem_wait()
/src/contrib/openpam/
H A Daclocal.m4904 : > conftest.ts2
914 test "$[]*" != "X conftest.ts1 conftest.ts2" ||
915 test "$[]*" != "X conftest.ts2 conftest.ts1";
936 echo beta > conftest.ts2
944 test "$[]3" = conftest.ts2 &&
966 echo 'conftest.ts1: conftest.ts2' >conftest.mk
967 echo ' touch conftest.ts2' >>conftest.mk
970 # touch conftest.ts1; touch conftest.ts2; make
971 # should touch ts1 because ts2 is newer. This could happen by luck,
982 echo two > conftest.ts2 # ts2 should now be newer than ts1
H A Dconfigure3176 test "$*" != "X conftest.ts1 conftest.ts2" ||
3177 test "$*" != "X conftest.ts2 conftest.ts1";
/src/sys/dev/mlx5/mlx5_core/
H A Dmlx5_cmd.c834 ds = ent->ts2 - ent->ts1; in complete_command()
1025 ds = ent->ts2 - ent->ts1; in mlx5_cmd_invoke()
1218 ent->ts2 = ktime_get_ns(); in mlx5_cmd_comp_handler()
/src/contrib/lua/src/
H A Dlvm.c385 static int l_strcmp (const TString *ts1, const TString *ts2) { in l_strcmp() argument
388 const char *s2 = getstr(ts2); in l_strcmp()
389 size_t rl2 = tsslen(ts2); in l_strcmp()
/src/usr.sbin/moused/moused/
H A Dmoused.c2699 struct timespec ts2; in r_timestamp() local
2718 ts2 = tssubms(&ts1, e3b->button2timeout); in r_timestamp()
2741 if (tscmp(&ts2, &bt->bstate[i].ts, >)) { in r_timestamp()
/src/sys/dev/mlx5/
H A Ddriver.h889 u64 ts2; member
/src/contrib/ncurses/
H A Daclocal.m42872 struct timespec ts1, ts2;
2876 ts2.tv_sec = 0;
2877 ts2.tv_nsec = 0;
2879 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */