/netbsd/external/bsd/kyua-cli/dist/utils/ |
H A D | datetime_test.cpp | 191 const datetime::timestamp ts2 = ts1; in ATF_TEST_CASE_BODY() 194 ATF_REQUIRE_EQ("2011", ts1.strftime("%Y")); in ATF_TEST_CASE_BODY() 198 ATF_REQUIRE_EQ("2011", ts1.strftime("%Y")); in ATF_TEST_CASE_BODY() 264 ATF_REQUIRE_EQ("2010-12-10", ts1.strftime("%Y-%m-%d")); in ATF_TEST_CASE_BODY() 265 ATF_REQUIRE_EQ("08:45:50", ts1.strftime("%H:%M:%S")); in ATF_TEST_CASE_BODY() 278 ATF_REQUIRE_EQ(1291970750123456LL, ts1.to_microseconds()); in ATF_TEST_CASE_BODY() 287 ATF_REQUIRE_EQ(1291970750, ts1.to_seconds()); in ATF_TEST_CASE_BODY() 298 ATF_REQUIRE_EQ(1341100800, ts1.to_seconds()); in ATF_TEST_CASE_BODY() 328 ATF_REQUIRE(datetime::delta(0, 0) == ts1 - ts1); in ATF_TEST_CASE_BODY() 329 ATF_REQUIRE(datetime::delta(0, 12) == ts2 - ts1); in ATF_TEST_CASE_BODY() [all …]
|
/netbsd/tests/lib/libc/sys/ |
H A D | t_nanosleep.c | 62 struct timespec ts1, ts2, tsn; in ATF_TC_BODY() local 70 (void)memset(&ts1, 0, sizeof(struct timespec)); in ATF_TC_BODY() 73 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts1) == 0); in ATF_TC_BODY() 80 if (timespeccmp(&ts2, &ts1, <=) != 0) { in ATF_TC_BODY() 87 (unsigned long long)ts1.tv_sec, ts1.tv_nsec, in ATF_TC_BODY()
|
H A D | t_poll.c | 420 struct timespec ts1, ts2; in ATF_TC_BODY() local 443 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts1) == 0); in ATF_TC_BODY() 448 ATF_REQUIRE(ts2.tv_sec - ts1.tv_sec >= 2); in ATF_TC_BODY()
|
/netbsd/lib/libc/compat/sys/ |
H A D | compat___lwp_park50.c | 56 struct timespec ts1, *tsp = &ts1; in ___lwp_park50() local 58 ts1 = *ts; in ___lwp_park50()
|
/netbsd/external/gpl3/gcc.old/dist/libbacktrace/ |
H A D | ztest.c | 310 struct timespec ts1; in test_large() local 440 if (clock_gettime (cid, &ts1) < 0) in test_large() 467 ctime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; in test_large() 468 ctime += ts2.tv_nsec - ts1.tv_nsec; in test_large() 471 if (clock_gettime (cid, &ts1) < 0) in test_large() 496 ztime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; in test_large() 497 ztime += ts2.tv_nsec - ts1.tv_nsec; in test_large()
|
/netbsd/external/gpl3/gcc/dist/libbacktrace/ |
H A D | xztest.c | 258 struct timespec ts1; in test_large() local 395 if (clock_gettime (cid, &ts1) < 0) in test_large() 422 ctime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; in test_large() 423 ctime += ts2.tv_nsec - ts1.tv_nsec; in test_large() 440 if (clock_gettime (cid, &ts1) < 0) in test_large() 463 ztime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; in test_large() 464 ztime += ts2.tv_nsec - ts1.tv_nsec; in test_large()
|
H A D | ztest.c | 310 struct timespec ts1; in test_large() local 440 if (clock_gettime (cid, &ts1) < 0) in test_large() 467 ctime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; in test_large() 468 ctime += ts2.tv_nsec - ts1.tv_nsec; in test_large() 471 if (clock_gettime (cid, &ts1) < 0) in test_large() 496 ztime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; in test_large() 497 ztime += ts2.tv_nsec - ts1.tv_nsec; in test_large()
|
/netbsd/sys/compat/linux32/common/ |
H A D | linux32_unistd.c | 155 struct timespec ts0, ts1, uts, *ts = NULL; in linux32_select1() local 210 nanotime(&ts1); in linux32_select1() 211 timespecsub(&ts1, &ts0, &ts1); in linux32_select1() 212 timespecsub(&uts, &ts1, &uts); in linux32_select1() 241 struct timespec uts, ts0, ts1, *tsp; in linux32_sys_pselect6() local 290 nanotime(&ts1); in linux32_sys_pselect6() 291 timespecsub(&ts1, &ts0, &ts1); in linux32_sys_pselect6() 292 timespecsub(&uts, &ts1, &uts); in linux32_sys_pselect6()
|
/netbsd/external/gpl3/gcc/dist/gcc/fortran/ |
H A D | misc.c | 131 gfc_typespec *ts1; in gfc_typename() local 186 ts1 = ts->u.derived->components ? &ts->u.derived->components->ts : NULL; in gfc_typename() 187 if (ts1 && ts1->u.derived && ts1->u.derived->attr.unlimited_polymorphic) in gfc_typename()
|
H A D | interface.c | 701 && ts1->u.derived && ts2->u.derived in gfc_compare_types() 702 && ts1->u.derived == ts2->u.derived) in gfc_compare_types() 709 if (ts1->type == BT_CLASS && ts1->u.derived->components in gfc_compare_types() 710 && ((ts1->u.derived->attr.is_class in gfc_compare_types() 723 && (ts1->u.derived->attr.sequence || ts1->u.derived->attr.is_bind_c)) in gfc_compare_types() 726 if (ts1->type != ts2->type in gfc_compare_types() 727 && ((ts1->type != BT_DERIVED && ts1->type != BT_CLASS) in gfc_compare_types() 731 if (ts1->type == BT_UNION) in gfc_compare_types() 734 if (ts1->type != BT_DERIVED && ts1->type != BT_CLASS) in gfc_compare_types() 735 return (ts1->kind == ts2->kind); in gfc_compare_types() [all …]
|
H A D | interface.cc | 712 && ts1->u.derived && ts2->u.derived in gfc_compare_types() 713 && ts1->u.derived == ts2->u.derived) in gfc_compare_types() 720 if (ts1->type == BT_CLASS && ts1->u.derived->components in gfc_compare_types() 721 && ((ts1->u.derived->attr.is_class in gfc_compare_types() 734 && (ts1->u.derived->attr.sequence || ts1->u.derived->attr.is_bind_c)) in gfc_compare_types() 737 if (ts1->type != ts2->type in gfc_compare_types() 738 && ((ts1->type != BT_DERIVED && ts1->type != BT_CLASS) in gfc_compare_types() 742 if (ts1->type == BT_UNION) in gfc_compare_types() 745 if (ts1->type != BT_DERIVED && ts1->type != BT_CLASS) in gfc_compare_types() 746 return (ts1->kind == ts2->kind); in gfc_compare_types() [all …]
|
H A D | symbol.c | 5119 bool is_class1 = (ts1->type == BT_CLASS); in gfc_type_compatible() 5121 bool is_derived1 = (ts1->type == BT_DERIVED); in gfc_type_compatible() 5123 bool is_union1 = (ts1->type == BT_UNION); in gfc_type_compatible() 5127 if (ts1->type == BT_BOZ || ts2->type == BT_BOZ) in gfc_type_compatible() 5131 && ts1->u.derived->components in gfc_type_compatible() 5132 && ((ts1->u.derived->attr.is_class in gfc_type_compatible() 5135 || ts1->u.derived->attr.unlimited_polymorphic)) in gfc_type_compatible() 5140 return (ts1->type == ts2->type); in gfc_type_compatible() 5152 ts1->u.derived->components->ts.u.derived in gfc_type_compatible() 5153 : ts1->u.derived, in gfc_type_compatible() [all …]
|
H A D | symbol.cc | 5139 bool is_class1 = (ts1->type == BT_CLASS); in gfc_type_compatible() 5141 bool is_derived1 = (ts1->type == BT_DERIVED); in gfc_type_compatible() 5143 bool is_union1 = (ts1->type == BT_UNION); in gfc_type_compatible() 5147 if (ts1->type == BT_BOZ || ts2->type == BT_BOZ) in gfc_type_compatible() 5151 && ts1->u.derived->components in gfc_type_compatible() 5152 && ((ts1->u.derived->attr.is_class in gfc_type_compatible() 5155 || ts1->u.derived->attr.unlimited_polymorphic)) in gfc_type_compatible() 5160 return (ts1->type == ts2->type); in gfc_type_compatible() 5172 ts1->u.derived->components->ts.u.derived in gfc_type_compatible() 5173 : ts1->u.derived, in gfc_type_compatible() [all …]
|
H A D | dependency.c | 1314 gfc_typespec *ts1 = &expr1->symtree->n.sym->ts; in gfc_check_dependency() local 1322 if (ts1->type != BT_UNKNOWN && ts2->type != BT_UNKNOWN in gfc_check_dependency() 1323 && ts1->type != BT_DERIVED && ts2->type != BT_DERIVED) in gfc_check_dependency() 1325 if (ts1->type != ts2->type || ts1->kind != ts2->kind) in gfc_check_dependency()
|
/netbsd/external/gpl3/gcc.old/dist/gcc/fortran/ |
H A D | misc.c | 131 gfc_typespec *ts1; in gfc_typename() local 186 ts1 = ts->u.derived->components ? &ts->u.derived->components->ts : NULL; in gfc_typename() 187 if (ts1 && ts1->u.derived && ts1->u.derived->attr.unlimited_polymorphic) in gfc_typename()
|
H A D | interface.c | 701 && ts1->u.derived && ts2->u.derived in gfc_compare_types() 702 && ts1->u.derived == ts2->u.derived) in gfc_compare_types() 709 if (ts1->type == BT_CLASS && ts1->u.derived->components in gfc_compare_types() 710 && ((ts1->u.derived->attr.is_class in gfc_compare_types() 723 && (ts1->u.derived->attr.sequence || ts1->u.derived->attr.is_bind_c)) in gfc_compare_types() 726 if (ts1->type != ts2->type in gfc_compare_types() 727 && ((ts1->type != BT_DERIVED && ts1->type != BT_CLASS) in gfc_compare_types() 731 if (ts1->type == BT_UNION) in gfc_compare_types() 734 if (ts1->type != BT_DERIVED && ts1->type != BT_CLASS) in gfc_compare_types() 735 return (ts1->kind == ts2->kind); in gfc_compare_types() [all …]
|
H A D | symbol.c | 5119 bool is_class1 = (ts1->type == BT_CLASS); in gfc_type_compatible() 5121 bool is_derived1 = (ts1->type == BT_DERIVED); in gfc_type_compatible() 5123 bool is_union1 = (ts1->type == BT_UNION); in gfc_type_compatible() 5127 if (ts1->type == BT_BOZ || ts2->type == BT_BOZ) in gfc_type_compatible() 5131 && ts1->u.derived->components in gfc_type_compatible() 5132 && ((ts1->u.derived->attr.is_class in gfc_type_compatible() 5135 || ts1->u.derived->attr.unlimited_polymorphic)) in gfc_type_compatible() 5140 return (ts1->type == ts2->type); in gfc_type_compatible() 5152 ts1->u.derived->components->ts.u.derived in gfc_type_compatible() 5153 : ts1->u.derived, in gfc_type_compatible() [all …]
|
/netbsd/external/bsd/cron/dist/ |
H A D | crontab.c | 170 struct timespec ts1[2]; in compare_time() local 171 get_time(st, ts1); in compare_time() 173 return ts1[1].tv_sec == ts2[1].tv_sec in compare_time() 175 && ts1[1].tv_nsec == ts2[1].tv_nsec in compare_time() 177 && ts1[1].tv_nsec / 1000 == ts2[1].tv_nsec / 1000 in compare_time()
|
/netbsd/external/mpl/bind/dist/lib/isc/tests/ |
H A D | mem_test.c | 402 isc_time_t ts1, ts2; in isc_mem_benchmark() local 409 result = isc_time_now(&ts1); in isc_mem_benchmark() 423 t = isc_time_microdiff(&ts2, &ts1); in isc_mem_benchmark()
|
/netbsd/sys/compat/linux/common/ |
H A D | linux_misc.c | 874 struct timespec ts0, ts1, uts, *ts = NULL; in linux_select1() local 925 nanotime(&ts1); in linux_select1() 926 timespecsub(&ts1, &ts0, &ts1); in linux_select1() 927 timespecsub(&uts, &ts1, &uts); in linux_select1() 959 struct timespec uts, ts0, ts1, *tsp; in linux_sys_pselect6() local 1007 nanotime(&ts1); in linux_sys_pselect6() 1008 timespecsub(&ts1, &ts0, &ts1); in linux_sys_pselect6() 1009 timespecsub(&uts, &ts1, &uts); in linux_sys_pselect6()
|
/netbsd/external/mpl/bind/dist/lib/dns/tests/ |
H A D | name_test.c | 718 isc_time_t ts1, ts2; in benchmark_test() local 727 result = isc_time_now(&ts1); in benchmark_test() 743 t = isc_time_microdiff(&ts2, &ts1); in benchmark_test()
|
H A D | rbt_test.c | 1282 isc_time_t ts1, ts2; in benchmark() local 1319 result = isc_time_now(&ts1); in benchmark() 1335 t = isc_time_microdiff(&ts2, &ts1); in benchmark()
|
/netbsd/external/gpl3/gcc/dist/gcc/ |
H A D | final.cc | 1461 tree ts1 = s1, ts2 = s2; in change_scope() local 1464 while (ts1 != ts2) in change_scope() 1466 gcc_assert (ts1 && ts2); in change_scope() 1467 if (BLOCK_NUMBER (ts1) > BLOCK_NUMBER (ts2)) in change_scope() 1468 ts1 = BLOCK_SUPERCONTEXT (ts1); in change_scope() 1469 else if (BLOCK_NUMBER (ts1) < BLOCK_NUMBER (ts2)) in change_scope() 1473 ts1 = BLOCK_SUPERCONTEXT (ts1); in change_scope() 1477 com = ts1; in change_scope()
|
H A D | final.c | 1473 tree ts1 = s1, ts2 = s2; in change_scope() local 1476 while (ts1 != ts2) in change_scope() 1478 gcc_assert (ts1 && ts2); in change_scope() 1479 if (BLOCK_NUMBER (ts1) > BLOCK_NUMBER (ts2)) in change_scope() 1480 ts1 = BLOCK_SUPERCONTEXT (ts1); in change_scope() 1481 else if (BLOCK_NUMBER (ts1) < BLOCK_NUMBER (ts2)) in change_scope() 1485 ts1 = BLOCK_SUPERCONTEXT (ts1); in change_scope() 1489 com = ts1; in change_scope()
|
/netbsd/external/gpl3/gcc.old/dist/gcc/ |
H A D | final.c | 1473 tree ts1 = s1, ts2 = s2; in change_scope() local 1476 while (ts1 != ts2) in change_scope() 1478 gcc_assert (ts1 && ts2); in change_scope() 1479 if (BLOCK_NUMBER (ts1) > BLOCK_NUMBER (ts2)) in change_scope() 1480 ts1 = BLOCK_SUPERCONTEXT (ts1); in change_scope() 1481 else if (BLOCK_NUMBER (ts1) < BLOCK_NUMBER (ts2)) in change_scope() 1485 ts1 = BLOCK_SUPERCONTEXT (ts1); in change_scope() 1489 com = ts1; in change_scope()
|