Home
last modified time | relevance | path

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

12

/netbsd-src/tests/lib/libc/sys/
H A Dt_nanosleep.c62 struct timespec ts1, ts2, tsn; in ATF_TC_BODY() local
71 (void)memset(&ts2, 0, sizeof(struct timespec)); in ATF_TC_BODY()
75 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts2) == 0); in ATF_TC_BODY()
80 if (timespeccmp(&ts2, &ts1, <=) != 0) { in ATF_TC_BODY()
88 (unsigned long long)ts2.tv_sec, ts2.tv_nsec); in ATF_TC_BODY()
H A Dt_poll.c420 struct timespec ts1, ts2; in ATF_TC_BODY() local
445 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts2) == 0); in ATF_TC_BODY()
448 ATF_REQUIRE(ts2.tv_sec - ts1.tv_sec >= 2); in ATF_TC_BODY()
/netbsd-src/external/gpl3/gcc/dist/libbacktrace/
H A Dztest.c311 struct timespec ts2; in test_large() local
461 if (clock_gettime (cid, &ts2) < 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()
482 if (clock_gettime (cid, &ts2) < 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()
H A Dxztest.c259 struct timespec ts2; in test_large() local
416 if (clock_gettime (cid, &ts2) < 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()
457 if (clock_gettime (cid, &ts2) < 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()
/netbsd-src/external/gpl3/gcc.old/dist/libbacktrace/
H A Dztest.c311 struct timespec ts2; in test_large() local
461 if (clock_gettime (cid, &ts2) < 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()
482 if (clock_gettime (cid, &ts2) < 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-src/external/bsd/kyua-cli/dist/utils/
H A Ddatetime_test.cpp191 const datetime::timestamp ts2 = ts1; in ATF_TEST_CASE_BODY() local
195 ATF_REQUIRE_EQ("2011", ts2.strftime("%Y")); in ATF_TEST_CASE_BODY()
267 const datetime::timestamp ts2 = datetime::timestamp::from_values( in ATF_TEST_CASE_BODY() local
269 ATF_REQUIRE_EQ("2011-02-16T19:15:30", ts2.strftime("%Y-%m-%dT%H:%M:%S")); in ATF_TEST_CASE_BODY()
323 const datetime::timestamp ts2 = datetime::timestamp::from_microseconds( in ATF_TEST_CASE_BODY() local
329 ATF_REQUIRE(datetime::delta(0, 12) == ts2 - ts1); in ATF_TEST_CASE_BODY()
331 ATF_REQUIRE(datetime::delta(99, 999988) == ts3 - ts2); in ATF_TEST_CASE_BODY()
/netbsd-src/sys/kern/
H A Dkern_tc.c881 struct timespec ts2; in tc_setclock() local
899 bintime2timespec(&bt2, &ts2); in tc_setclock()
902 (long long)ts2.tv_sec, ts2.tv_nsec, in tc_setclock()
1383 struct timespec ts2; in pps_ref_event() local
1386 bintime2timespec(&bt_ref, &ts2); in pps_ref_event()
1398 ts2.tv_sec, (int32_t)ts2.tv_nsec, in pps_ref_event()
1464 struct timespec ts2; in pps_ref_event() local
1467 bintime2timespec(&bt_ref, &ts2); in pps_ref_event()
1474 ts2.tv_sec, (int32_t)ts2.tv_nsec, in pps_ref_event()
/netbsd-src/crypto/external/bsd/openssl/dist/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()
/netbsd-src/crypto/external/bsd/openssl.old/dist/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()
/netbsd-src/external/mpl/bind/dist/tests/isc/
H A Dmem_test.c489 isc_time_t ts1, ts2; in ISC_RUN_TEST_IMPL()
503 ts2 = isc_time_now();
505 t = isc_time_microdiff(&ts2, &ts1);
464 isc_time_t ts1, ts2; ISC_RUN_TEST_IMPL() local
/netbsd-src/external/bsd/cron/dist/
H A Dcrontab.c168 compare_time(const struct stat *st, const struct timespec *ts2) in compare_time() argument
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-src/external/mpl/bind/dist/tests/dns/
H A Dname_test.c973 isc_time_t ts1, ts2;
995 result = isc_time_now(&ts2);
998 t = isc_time_microdiff(&ts2, &ts1);
H A Drbt_test.c1144 isc_time_t ts1, ts2; in ISC_RUN_TEST_IMPL()
1191 ts2 = isc_time_now(); in find_thread()
1193 t = isc_time_microdiff(&ts2, &ts1); in find_thread()
1217 isc_time_t ts1, ts2; ISC_RUN_TEST_IMPL() local
/netbsd-src/external/gpl3/gcc.old/dist/gcc/fortran/
H A Dinterface.c686 gfc_compare_types (gfc_typespec *ts1, gfc_typespec *ts2) in gfc_compare_types() argument
692 if (ts1->type == BT_VOID || ts2->type == BT_VOID) in gfc_compare_types()
699 if (((ts1->type == BT_INTEGER && ts2->type == BT_DERIVED) in gfc_compare_types()
700 || (ts1->type == BT_DERIVED && ts2->type == BT_INTEGER)) in gfc_compare_types()
701 && ts1->u.derived && ts2->u.derived in gfc_compare_types()
702 && ts1->u.derived == ts2->u.derived) in gfc_compare_types()
717 if (ts2->type == BT_CLASS && ts1->type == BT_DERIVED in gfc_compare_types()
718 && ts2->u.derived->components in gfc_compare_types()
719 && ((ts2->u.derived->attr.is_class in gfc_compare_types()
720 && ts2->u.derived->components->ts.u.derived->attr in gfc_compare_types()
[all …]
H A Dsymbol.c5117 gfc_type_compatible (gfc_typespec *ts1, gfc_typespec *ts2) in gfc_type_compatible() argument
5120 bool is_class2 = (ts2->type == BT_CLASS); in gfc_type_compatible()
5122 bool is_derived2 = (ts2->type == BT_DERIVED); in gfc_type_compatible()
5124 bool is_union2 = (ts2->type == BT_UNION); in gfc_type_compatible()
5127 if (ts1->type == BT_BOZ || ts2->type == BT_BOZ) in gfc_type_compatible()
5140 return (ts1->type == ts2->type); in gfc_type_compatible()
5143 return gfc_compare_derived_types (ts1->u.derived, ts2->u.derived); in gfc_type_compatible()
5147 ts2->u.derived->attr.is_class ? in gfc_type_compatible()
5148 ts2->u.derived->components->ts.u.derived in gfc_type_compatible()
5149 : ts2->u.derived); in gfc_type_compatible()
[all …]
H A Ddependency.c1315 gfc_typespec *ts2 = &expr2->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-src/external/gpl3/gcc/dist/gcc/fortran/
H A Dsymbol.cc5144 gfc_type_compatible (gfc_typespec *ts1, gfc_typespec *ts2) in gfc_type_compatible() argument
5147 bool is_class2 = (ts2->type == BT_CLASS); in gfc_type_compatible()
5149 bool is_derived2 = (ts2->type == BT_DERIVED); in gfc_type_compatible()
5151 bool is_union2 = (ts2->type == BT_UNION); in gfc_type_compatible()
5154 if (ts1->type == BT_BOZ || ts2->type == BT_BOZ) in gfc_type_compatible()
5167 return (ts1->type == ts2->type); in gfc_type_compatible()
5170 return gfc_compare_derived_types (ts1->u.derived, ts2->u.derived); in gfc_type_compatible()
5174 ts2->u.derived->attr.is_class ? in gfc_type_compatible()
5175 ts2->u.derived->components->ts.u.derived in gfc_type_compatible()
5176 : ts2->u.derived); in gfc_type_compatible()
[all …]
H A Dinterface.cc697 gfc_compare_types (gfc_typespec *ts1, gfc_typespec *ts2) in gfc_compare_types() argument
703 if (ts1->type == BT_VOID || ts2->type == BT_VOID) in gfc_compare_types()
710 if (((ts1->type == BT_INTEGER && ts2->type == BT_DERIVED) in gfc_compare_types()
711 || (ts1->type == BT_DERIVED && ts2->type == BT_INTEGER)) in gfc_compare_types()
712 && ts1->u.derived && ts2->u.derived in gfc_compare_types()
713 && ts1->u.derived == ts2->u.derived) in gfc_compare_types()
728 if (ts2->type == BT_CLASS && ts1->type == BT_DERIVED in gfc_compare_types()
729 && ts2->u.derived->components in gfc_compare_types()
730 && ((ts2->u.derived->attr.is_class in gfc_compare_types()
731 && ts2->u.derived->components->ts.u.derived->attr in gfc_compare_types()
[all …]
H A Ddependency.cc1316 gfc_typespec *ts2 = &expr2->symtree->n.sym->ts; in gfc_check_dependency() local
1323 if (ts1->type != BT_UNKNOWN && ts2->type != BT_UNKNOWN in gfc_check_dependency()
1324 && ts1->type != BT_DERIVED && ts2->type != BT_DERIVED) in gfc_check_dependency()
1326 if (ts1->type != ts2->type || ts1->kind != ts2->kind) in gfc_check_dependency()
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/container/
H A Drbtree.d993 auto ts2 = ts.dup; variable
994 assert(ts2.length == 5);
995 assert(equal(ts[], ts2[]));
996 ts2.insert(cast(Elem) 6);
997 assert(!equal(ts[], ts2[]));
998 assert(ts.length == 5 && ts2.length == 6);
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dfinal.cc1461 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()
1469 else if (BLOCK_NUMBER (ts1) < BLOCK_NUMBER (ts2)) in change_scope()
1470 ts2 = BLOCK_SUPERCONTEXT (ts2); in change_scope()
1474 ts2 = BLOCK_SUPERCONTEXT (ts2); in change_scope()
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/container/
H A Drbtree.d1004 auto ts2 = ts.dup;
1005 assert(ts2.length == 5);
1006 assert(equal(ts[], ts2[]));
1007 ts2.insert(cast(Elem) 6);
1008 assert(!equal(ts[], ts2[]));
1009 assert(ts.length == 5 && ts2.length == 6);
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dfinal.c1473 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()
1481 else if (BLOCK_NUMBER (ts1) < BLOCK_NUMBER (ts2)) in change_scope()
1482 ts2 = BLOCK_SUPERCONTEXT (ts2); in change_scope()
1486 ts2 = BLOCK_SUPERCONTEXT (ts2); in change_scope()
/netbsd-src/usr.sbin/bta2dpd/bta2dpd/
H A Dsbc_encode.c118 uint8_t ts2; member
901 myHeader.ts2 = (uint8_t)(ts >> 16); in stream()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/d/dmd/
H A Ddcast.c3005 TypeStruct *ts2 = (TypeStruct *)t2; in typeMerge() local
3006 if (ts1->sym != ts2->sym) in typeMerge()
3008 if (!ts1->sym->aliasthis && !ts2->sym->aliasthis) in typeMerge()
3016 if (ts2->sym->aliasthis) in typeMerge()

12