clock_getres/clock_getres01.c: add new clockids
PATCH 1/1 clock_getres/clock_getres01.c: add new clockids
add new clockids: CLOCK_MONOTONIC_RAW CLOCK_REALTIME_COARSE CLOCK_MONOTONIC_COARSE CLOCK_BOOTTIME
Signed-off-by Zeng Linggang <[email protected]>
--- testcases/kernel/syscalls/clock_getres/clock_getres01.c | 4 ++++ 1 file changed, 4 insertions(+)
testcases/kernel/syscalls/clock_getres/clock_getres01.c +4 -0
@@ -75,6 +75,10 @@ static struct test_case { {"THREAD_CPUTIME_ID", CLOCK_THREAD_CPUTIME_ID, NORMAL, 0, 0}, {"-1", -1, NORMAL, -1, EINVAL}, {"REALTIME", CLOCK_REALTIME, NULL_POINTER, 0, 0}, + {"CLOCK_MONOTONIC_RAW", CLOCK_MONOTONIC_RAW, NORMAL, 0, 0,}, + {"CLOCK_REALTIME_COARSE", CLOCK_REALTIME_COARSE, NORMAL, 0, 0,}, + {"CLOCK_MONOTONIC_COARSE", CLOCK_MONOTONIC_COARSE, NORMAL, 0, 0,}, + {"CLOCK_BOOTTIME", CLOCK_BOOTTIME, NORMAL, 0, 0,}, };static void setup (void );
Signature · 15 lines
1.8.2.1 ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
Hi!
Quoted 4 lines
add new clockids:
CLOCK_MONOTONIC_RAWCLOCK_REALTIME_COARSECLOCK_MONOTONIC_COARSECLOCK_BOOTTIMESigned-off-by Zeng Linggang <[email protected]>
I've just commited a slightly different version along with compatibility header for older systems that does not these in system headers.
Thanks.
Signature · 13 lines
Cyril Hrubis [email protected] ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list