| /src/tests/lib/libc/gen/ |
| t_timespec_get.c | 43 struct timespec ts, ts2; local 46 ATF_REQUIRE_EQ(clock_getres(CLOCK_MONOTONIC, &ts2), 0); 48 ATF_REQUIRE_EQ(ts.tv_sec, ts2.tv_sec); 49 ATF_REQUIRE_EQ(ts.tv_nsec, ts2.tv_nsec); 52 ATF_REQUIRE_EQ(clock_getres(CLOCK_REALTIME, &ts2), 0); 54 ATF_REQUIRE_EQ(ts.tv_sec, ts2.tv_sec); 55 ATF_REQUIRE_EQ(ts.tv_nsec, ts2.tv_nsec); 69 struct timespec ts, ts2; local 72 ATF_REQUIRE_EQ(clock_gettime(CLOCK_REALTIME, &ts2), 0); 79 if (ts2.tv_sec >= ts.tv_sec) 97 struct timespec ts, ts2; local [all...] |
| /src/tests/lib/libc/sys/ |
| t_nanosleep.c | 62 struct timespec ts1, ts2, tsn; local 71 (void)memset(&ts2, 0, sizeof(struct timespec)); 75 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts2) == 0); 80 if (timespeccmp(&ts2, &ts1, <=) != 0) { 85 "ts2: sec %llu, nsec %lu\n", 88 (unsigned long long)ts2.tv_sec, ts2.tv_nsec);
|
| /src/crypto/external/apache2/openssl/dist/crypto/ |
| o_time.c | 31 struct tm data, *ts2 = &data; local 35 if (gmtime_r(timer, ts2) == NULL) 37 memcpy(result, ts2, sizeof(struct tm));
|
| /src/crypto/external/bsd/openssl/dist/crypto/ |
| o_time.c | 31 struct tm data, *ts2 = &data; local 35 if (gmtime_r(timer, ts2) == NULL) 37 memcpy(result, ts2, sizeof(struct tm));
|
| /src/crypto/external/bsd/openssl.old/dist/crypto/ |
| o_time.c | 31 struct tm data, *ts2 = &data; local 35 if (gmtime_r(timer, ts2) == NULL) 37 memcpy(result, ts2, sizeof(struct tm));
|
| /src/external/mpl/bind/dist/tests/isc/ |
| mutex_test.c | 122 isc_time_t ts1, ts2; local 158 ts2 = isc_time_now_hires(); 160 t = isc_time_microdiff(&ts2, &ts1); 195 ts2 = isc_time_now_hires(); 197 t = isc_time_microdiff(&ts2, &ts1);
|
| spinlock_test.c | 131 isc_time_t ts1, ts2; local 167 ts2 = isc_time_now_hires(); 169 t = isc_time_microdiff(&ts2, &ts1); 205 ts2 = isc_time_now_hires(); 207 t = isc_time_microdiff(&ts2, &ts1);
|
| rwlock_test.c | 257 isc_time_t ts1, ts2; local 288 ts2 = isc_time_now_hires(); 290 t = isc_time_microdiff(&ts2, &ts1); 320 ts2 = isc_time_now_hires(); 322 t = isc_time_microdiff(&ts2, &ts1);
|
| mem_test.c | 526 isc_time_t ts1, ts2; local 540 ts2 = isc_time_now(); 542 t = isc_time_microdiff(&ts2, &ts1);
|
| /src/external/bsd/kyua-cli/dist/utils/ |
| datetime_test.cpp | 191 const datetime::timestamp ts2 = ts1; local 195 ATF_REQUIRE_EQ("2011", ts2.strftime("%Y")); 267 const datetime::timestamp ts2 = datetime::timestamp::from_values( local 269 ATF_REQUIRE_EQ("2011-02-16T19:15:30", ts2.strftime("%Y-%m-%dT%H:%M:%S")); 323 const datetime::timestamp ts2 = datetime::timestamp::from_microseconds( local 329 ATF_REQUIRE(datetime::delta(0, 12) == ts2 - ts1); 331 ATF_REQUIRE(datetime::delta(99, 999988) == ts3 - ts2);
|
| /src/external/gpl3/gcc/dist/libbacktrace/ |
| xztest.c | 259 struct timespec ts2; local 416 if (clock_gettime (cid, &ts2) < 0) 422 ctime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; 423 ctime += ts2.tv_nsec - ts1.tv_nsec; 457 if (clock_gettime (cid, &ts2) < 0) 463 ztime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; 464 ztime += ts2.tv_nsec - ts1.tv_nsec;
|
| zstdtest.c | 306 struct timespec ts2; local 445 if (clock_gettime (cid, &ts2) < 0) 451 ctime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; 452 ctime += ts2.tv_nsec - ts1.tv_nsec; 464 if (clock_gettime (cid, &ts2) < 0) 478 ztime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; 479 ztime += ts2.tv_nsec - ts1.tv_nsec;
|
| ztest.c | 311 struct timespec ts2; local 461 if (clock_gettime (cid, &ts2) < 0) 467 ctime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; 468 ctime += ts2.tv_nsec - ts1.tv_nsec; 482 if (clock_gettime (cid, &ts2) < 0) 496 ztime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; 497 ztime += ts2.tv_nsec - ts1.tv_nsec;
|
| /src/external/gpl3/gcc.old/dist/libbacktrace/ |
| xztest.c | 259 struct timespec ts2; local 416 if (clock_gettime (cid, &ts2) < 0) 422 ctime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; 423 ctime += ts2.tv_nsec - ts1.tv_nsec; 457 if (clock_gettime (cid, &ts2) < 0) 463 ztime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; 464 ztime += ts2.tv_nsec - ts1.tv_nsec;
|
| ztest.c | 311 struct timespec ts2; local 461 if (clock_gettime (cid, &ts2) < 0) 467 ctime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; 468 ctime += ts2.tv_nsec - ts1.tv_nsec; 482 if (clock_gettime (cid, &ts2) < 0) 496 ztime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; 497 ztime += ts2.tv_nsec - ts1.tv_nsec;
|
| /src/external/gpl3/gdb/dist/libbacktrace/ |
| xztest.c | 259 struct timespec ts2; local 416 if (clock_gettime (cid, &ts2) < 0) 422 ctime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; 423 ctime += ts2.tv_nsec - ts1.tv_nsec; 457 if (clock_gettime (cid, &ts2) < 0) 463 ztime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; 464 ztime += ts2.tv_nsec - ts1.tv_nsec;
|
| zstdtest.c | 306 struct timespec ts2; local 445 if (clock_gettime (cid, &ts2) < 0) 451 ctime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; 452 ctime += ts2.tv_nsec - ts1.tv_nsec; 464 if (clock_gettime (cid, &ts2) < 0) 478 ztime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; 479 ztime += ts2.tv_nsec - ts1.tv_nsec;
|
| ztest.c | 311 struct timespec ts2; local 461 if (clock_gettime (cid, &ts2) < 0) 467 ctime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; 468 ctime += ts2.tv_nsec - ts1.tv_nsec; 482 if (clock_gettime (cid, &ts2) < 0) 496 ztime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; 497 ztime += ts2.tv_nsec - ts1.tv_nsec;
|
| /src/external/gpl3/gdb.old/dist/libbacktrace/ |
| xztest.c | 259 struct timespec ts2; local 416 if (clock_gettime (cid, &ts2) < 0) 422 ctime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; 423 ctime += ts2.tv_nsec - ts1.tv_nsec; 457 if (clock_gettime (cid, &ts2) < 0) 463 ztime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; 464 ztime += ts2.tv_nsec - ts1.tv_nsec;
|
| zstdtest.c | 306 struct timespec ts2; local 445 if (clock_gettime (cid, &ts2) < 0) 451 ctime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; 452 ctime += ts2.tv_nsec - ts1.tv_nsec; 464 if (clock_gettime (cid, &ts2) < 0) 478 ztime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; 479 ztime += ts2.tv_nsec - ts1.tv_nsec;
|
| ztest.c | 311 struct timespec ts2; local 461 if (clock_gettime (cid, &ts2) < 0) 467 ctime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; 468 ctime += ts2.tv_nsec - ts1.tv_nsec; 482 if (clock_gettime (cid, &ts2) < 0) 496 ztime = (ts2.tv_sec - ts1.tv_sec) * 1000000000; 497 ztime += ts2.tv_nsec - ts1.tv_nsec;
|
| /src/external/mpl/bind/dist/tests/dns/ |
| rbt_test.c | 1144 isc_time_t ts1, ts2; local 1191 ts2 = isc_time_now(); 1193 t = isc_time_microdiff(&ts2, &ts1);
|
| name_test.c | 975 isc_time_t ts1, ts2; local 997 result = isc_time_now(&ts2); 1000 t = isc_time_microdiff(&ts2, &ts1);
|
| /src/external/gpl3/gcc/dist/gcc/fortran/ |
| dependency.cc | 1348 gfc_typespec *ts2 = &expr2->symtree->n.sym->ts; local 1355 if (ts1->type != BT_UNKNOWN && ts2->type != BT_UNKNOWN 1356 && ts1->type != BT_DERIVED && ts2->type != BT_DERIVED) 1358 if (ts1->type != ts2->type || ts1->kind != ts2->kind)
|
| /src/external/gpl3/gcc.old/dist/gcc/fortran/ |
| dependency.cc | 1316 gfc_typespec *ts2 = &expr2->symtree->n.sym->ts; local 1323 if (ts1->type != BT_UNKNOWN && ts2->type != BT_UNKNOWN 1324 && ts1->type != BT_DERIVED && ts2->type != BT_DERIVED) 1326 if (ts1->type != ts2->type || ts1->kind != ts2->kind)
|