Searched refs:tpset (Results 1 - 7 of 7) sorted by relevance
/third_party/ltp/testcases/open_posix_testsuite/functional/timers/clocks/ |
H A D | invaliddates.c | 33 struct timespec tpset, tpget, tsreset; in main() local 44 tpset.tv_sec = testtimes[i][0]; in main() 45 tpset.tv_nsec = testtimes[i][1]; in main() 46 if (clock_settime(CLOCK_REALTIME, &tpset) == 0) { in main() 51 secdelta = tpget.tv_sec - tpset.tv_sec; in main() 52 nsecdelta = tpget.tv_nsec - tpset.tv_nsec; in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/ |
H A D | 1-1.c | 31 struct timespec tpset, tpget, tpreset, tpres; in main() local 47 tpset.tv_sec = TESTTIME; in main() 48 tpset.tv_nsec = 0; in main() 49 if (clock_settime(CLOCK_REALTIME, &tpset) == 0) { in main() 55 delta = tpget.tv_sec - tpset.tv_sec; in main()
|
H A D | 6-1.c | 22 struct timespec tpset; in main() local 24 tpset.tv_sec = TESTTIME; in main() 25 tpset.tv_nsec = 0; in main() 26 if (clock_settime(CLOCK_MONOTONIC, &tpset) == -1) { in main()
|
H A D | 17-1.c | 26 struct timespec tpset; in main() local 28 tpset.tv_sec = TESTTIME; in main() 29 tpset.tv_nsec = 0; in main() 34 if (clock_settime(BOGUSCLOCKID, &tpset) == -1) { in main()
|
H A D | 20-1.c | 24 struct timespec tpset; in main() local 26 tpset.tv_sec = TESTTIME; in main() 27 tpset.tv_nsec = 0; in main() 32 if (clock_settime(CLOCK_MONOTONIC, &tpset) == -1) { in main()
|
H A D | 17-2.c | 42 struct timespec tpset; in main() local 46 tpset.tv_sec = TESTTIME; in main() 47 tpset.tv_nsec = 0; in main() 55 if (clock_settime(invalid_tests[i], &tpset) == -1) { in main()
|
H A D | helpers.h | 25 static int setBackTime(struct timespec tpset) in setBackTime() argument 27 if (clock_settime(CLOCK_REALTIME, &tpset) != 0) { in setBackTime()
|
Completed in 3 milliseconds