Skip to contentSkip to conversation

clock_getres/clock_getres01.c: add new clockids

PATCH In review zenglg.jy 2 participants 2 messages Nov 21, 2013

lore
Share & tools
lore

zenglg.jy

author
#0 lore raw

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

---
 testcases/kernel/syscalls/clock_getres/clock_getres01.c | 4 ++++
 1 file changed, 4 insertions(+)
testcases/kernel/syscalls/clock_getres/clock_getres01.c +4 -0
index 4df6d87..a53728d 100644
@@ -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
#1 lore raw

Hi!

Quoted 4 lines

add new clockids: CLOCK_MONOTONIC_RAW CLOCK_REALTIME_COARSE CLOCK_MONOTONIC_COARSE CLOCK_BOOTTIME

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