<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2011-06-11)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-06-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* fileio/init.c: Avoid use of deprecated rtems_clock_get() except in
spclockget().
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/samples/ChangeLog.diff?r1=text&tr1=1.189&r2=text&tr2=1.190&diff_format=h">M</a></td><td width='1%'>1.190</td><td width='100%'>testsuites/samples/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/samples/fileio/init.c.diff?r1=text&tr1=1.32&r2=text&tr2=1.33&diff_format=h">M</a></td><td width='1%'>1.33</td><td width='100%'>testsuites/samples/fileio/init.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/samples/ChangeLog:1.189 rtems/testsuites/samples/ChangeLog:1.190
--- rtems/testsuites/samples/ChangeLog:1.189 Thu May 5 17:29:23 2011
+++ rtems/testsuites/samples/ChangeLog Sat Jun 11 11:41:56 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-06-11 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * fileio/init.c: Avoid use of deprecated rtems_clock_get() except in
+ spclockget().
+
</font> 2011-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* fileio/Makefile.am, ticker/Makefile.am: Missed part of previous
<font color='#006600'>diff -u rtems/testsuites/samples/fileio/init.c:1.32 rtems/testsuites/samples/fileio/init.c:1.33
--- rtems/testsuites/samples/fileio/init.c:1.32 Thu May 5 11:45:40 2011
+++ rtems/testsuites/samples/fileio/init.c Sat Jun 11 11:41:56 2011
</font><font color='#997700'>@@ -286,7 +286,7 @@
</font> }
if (fd >= 0) {
<font color='#880000'>- rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &start_tick);
</font><font color='#000088'>+ start_tick = rtems_clock_get_ticks_since_boot();
</font> do {
n = read(fd,buf_ptr,buf_size);
if (n > 0) {
<font color='#997700'>@@ -295,7 +295,7 @@
</font> }
} while (n > 0);
<font color='#880000'>- rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &curr_tick);
</font><font color='#000088'>+ curr_tick = rtems_clock_get_ticks_since_boot();
</font>
printf("\n ******** End of file reached, flen = %zd\n",flen);
close(fd);
<font color='#997700'>@@ -462,7 +462,7 @@
</font> */
if (!failed) {
printf("... writing to file\n");
<font color='#880000'>- rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &start_tick);
</font><font color='#000088'>+ start_tick = rtems_clock_get_ticks_since_boot();
</font> curr_pos = 0;
do {
bytes_to_copy = buf_size;
<font color='#997700'>@@ -476,7 +476,7 @@
</font> }
} while ((bytes_to_copy > 0) && (n > 0));
} while ((file_size > curr_pos) && (n > 0));
<font color='#880000'>- rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &curr_tick);
</font><font color='#000088'>+ curr_tick = rtems_clock_get_ticks_since_boot();
</font> if (n < 0) {
failed = true;
printf("*** file write failed, "
<font color='#997700'>@@ -583,7 +583,7 @@
</font> */
if (!failed) {
printf("... reading from file\n");
<font color='#880000'>- rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &start_tick);
</font><font color='#000088'>+ start_tick = rtems_clock_get_ticks_since_boot();
</font> curr_pos = 0;
do {
n = read(fd,
<font color='#997700'>@@ -593,7 +593,7 @@
</font> curr_pos += (size_t) n;
}
} while (n > 0);
<font color='#880000'>- rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &curr_tick);
</font><font color='#000088'>+ curr_tick = rtems_clock_get_ticks_since_boot();
</font> if (n < 0) {
failed = true;
printf("*** file read failed, "
</pre>
<p> </p>
<a name='cs2'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-06-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp09/screen02.c, sp09/screen13.c, sp09/sp09.scn, sp29/init.c,
sp30/sp30.scn, sp32/init.c, spclockget/init.c: Avoid use of
deprecated rtems_clock_get() except in spclockget().
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/ChangeLog.diff?r1=text&tr1=1.452&r2=text&tr2=1.453&diff_format=h">M</a></td><td width='1%'>1.453</td><td width='100%'>testsuites/sptests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/sp09/screen02.c.diff?r1=text&tr1=1.17&r2=text&tr2=1.18&diff_format=h">M</a></td><td width='1%'>1.18</td><td width='100%'>testsuites/sptests/sp09/screen02.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/sp09/screen13.c.diff?r1=text&tr1=1.15&r2=text&tr2=1.16&diff_format=h">M</a></td><td width='1%'>1.16</td><td width='100%'>testsuites/sptests/sp09/screen13.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/sp09/sp09.scn.diff?r1=text&tr1=1.28&r2=text&tr2=1.29&diff_format=h">M</a></td><td width='1%'>1.29</td><td width='100%'>testsuites/sptests/sp09/sp09.scn</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/sp29/init.c.diff?r1=text&tr1=1.17&r2=text&tr2=1.18&diff_format=h">M</a></td><td width='1%'>1.18</td><td width='100%'>testsuites/sptests/sp29/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/sp30/sp30.scn.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>testsuites/sptests/sp30/sp30.scn</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/sp32/init.c.diff?r1=text&tr1=1.10&r2=text&tr2=1.11&diff_format=h">M</a></td><td width='1%'>1.11</td><td width='100%'>testsuites/sptests/sp32/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spclockget/init.c.diff?r1=text&tr1=1.5&r2=text&tr2=1.6&diff_format=h">M</a></td><td width='1%'>1.6</td><td width='100%'>testsuites/sptests/spclockget/init.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/sptests/ChangeLog:1.452 rtems/testsuites/sptests/ChangeLog:1.453
--- rtems/testsuites/sptests/ChangeLog:1.452 Fri May 20 09:07:52 2011
+++ rtems/testsuites/sptests/ChangeLog Sat Jun 11 11:42:05 2011
</font><font color='#997700'>@@ -1,3 +1,9 @@
</font><font color='#000088'>+2011-06-11 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * sp09/screen02.c, sp09/screen13.c, sp09/sp09.scn, sp29/init.c,
+ sp30/sp30.scn, sp32/init.c, spclockget/init.c: Avoid use of
+ deprecated rtems_clock_get() except in spclockget().
+
</font> 2011-05-20 Sebastian Huber <sebastian.huber@embedded-brains.de>
* spintrcritical01/init.c: Fixed warning fix.
<font color='#006600'>diff -u rtems/testsuites/sptests/sp09/screen02.c:1.17 rtems/testsuites/sptests/sp09/screen02.c:1.18
--- rtems/testsuites/sptests/sp09/screen02.c:1.17 Fri Apr 15 08:21:09 2011
+++ rtems/testsuites/sptests/sp09/screen02.c Sat Jun 11 11:42:05 2011
</font><font color='#997700'>@@ -6,7 +6,7 @@
</font> *
* Output parameters: NONE
*
<font color='#880000'>- * COPYRIGHT (c) 1989-2009.
</font><font color='#000088'>+ * COPYRIGHT (c) 1989-2011.
</font> * On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
<font color='#997700'>@@ -121,28 +121,10 @@
</font> fatal_directive_status(
status,
RTEMS_INVALID_ADDRESS,
<font color='#880000'>- "rtems_clock_get sull pointer"
</font><font color='#000088'>+ "rtems_clock_set sull pointer"
</font> );
puts( "TA1 - rtems_clock_set - RTEMS_INVALID_ADDRESS" );
<font color='#880000'>- /* NULL parameter */
- status = rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, NULL );
- fatal_directive_status(
- status,
- RTEMS_INVALID_ADDRESS,
- "rtems_clock_get null pointer"
- );
- puts( "TA1 - rtems_clock_get - RTEMS_INVALID_ADDRESS" );
-
- /* arbitrary bad value for switch */
- status = rtems_clock_get( 0xff, &tv );
- fatal_directive_status(
- status,
- RTEMS_INVALID_NUMBER,
- "rtems_clock_get bad case"
- );
- puts( "TA1 - rtems_clock_get - RTEMS_INVALID_NUMBER" );
-
</font> /* wake when NULL param */
status = rtems_task_wake_when( NULL );
fatal_directive_status(
<font color='#997700'>@@ -156,7 +138,7 @@
</font> status = rtems_task_wake_when( &time );
if ( status == RTEMS_SUCCESSFUL ) {
puts(
<font color='#880000'>- "TA1 - rtems_clock_get - RTEMS_NOT_DEFINED -- "
</font><font color='#000088'>+ "TA1 - rtems_task_wake_when - RTEMS_NOT_DEFINED -- "
</font> "DID BSP SET THE TIME OF DAY?"
);
} else {
<font color='#006600'>diff -u rtems/testsuites/sptests/sp09/screen13.c:1.15 rtems/testsuites/sptests/sp09/screen13.c:1.16
--- rtems/testsuites/sptests/sp09/screen13.c:1.15 Tue Feb 22 01:36:58 2011
+++ rtems/testsuites/sptests/sp09/screen13.c Sat Jun 11 11:42:05 2011
</font><font color='#997700'>@@ -6,7 +6,7 @@
</font> *
* Output parameters: NONE
*
<font color='#880000'>- * COPYRIGHT (c) 1989-2009.
</font><font color='#000088'>+ * COPYRIGHT (c) 1989-2011.
</font> * On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
<font color='#997700'>@@ -85,8 +85,8 @@
</font> print_time( "TA1 - rtems_clock_set - ", &time, " - RTEMS_SUCCESSFUL\n" );
status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
status = rtems_clock_get_tod( &time );
<font color='#880000'>- directive_failed( status, "rtems_clock_set" );
- print_time( "TA1 - rtems_clock_get - ", &time, " - RTEMS_SUCCESSFUL\n" );
</font><font color='#000088'>+ directive_failed( status, "rtems_clock_get_tod" );
+ print_time( "TA1 - rtems_clock_get_tod - ", &time, " - RTEMS_SUCCESSFUL\n" );
</font>
build_time( &time, 12, 31, 2100, 23, 59, 59, 0 );
status = rtems_clock_set( &time );
<font color='#006600'>diff -u rtems/testsuites/sptests/sp09/sp09.scn:1.28 rtems/testsuites/sptests/sp09/sp09.scn:1.29
--- rtems/testsuites/sptests/sp09/sp09.scn:1.28 Thu May 5 11:45:57 2011
+++ rtems/testsuites/sptests/sp09/sp09.scn Sat Jun 11 11:42:05 2011
</font><font color='#997700'>@@ -35,8 +35,6 @@
</font> TA1 - rtems_clock_get_tod_timeval - RTEMS_NOT_DEFINED
TA1 - rtems_clock_set_nanoseconds_extension - RTEMS_INVALID_ADDRESS
TA1 - rtems_clock_set - RTEMS_INVALID_ADDRESS
<font color='#880000'>-TA1 - rtems_clock_get - RTEMS_INVALID_ADDRESS
-TA1 - rtems_clock_get - RTEMS_INVALID_NUMBER
</font> TA1 - rtems_task_wake_when - RTEMS_INVALID_ADDRESS
TA1 - rtems_task_wake_when - RTEMS_NOT_DEFINED
TA1 - rtems_timer_fire_when - RTEMS_NOT_DEFINED
<font color='#997700'>@@ -175,8 +173,9 @@
</font> TA3 - rtems_message_queue_receive - woke up with RTEMS_OBJECT_WAS_DELETED
TA3 - rtems_task_delete - delete self - RTEMS_SUCCESSFUL
<pause - screen 9>
<font color='#880000'>-TA1 - rtems_interrupt_catch - bad handler RTEMS_INVALID_ADDRESS -- SKIPPED
-TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS - SKIPPED
</font><font color='#000088'>+TA1 - rtems_interrupt_catch - RTEMS_INVALID_NUMBER
+TA1 - rtems_interrupt_catch - bad handler RTEMS_INVALID_ADDRESS
+TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS
</font> TA1 - rtems_signal_send - RTEMS_INVALID_ID
TA1 - rtems_signal_send - RTEMS_INVALID_NUMBER
TA1 - rtems_signal_send - RTEMS_NOT_DEFINED
<font color='#997700'>@@ -286,7 +285,7 @@
</font> TA1 - rtems_clock_set - 23:59:59 12/31/2000 - RTEMS_SUCCESSFUL
TA1 - rtems_clock_get_tod - 00:00:00 01/01/2001 - RTEMS_SUCCESSFUL
TA1 - rtems_clock_set - 23:59:59 12/31/1999 - RTEMS_SUCCESSFUL
<font color='#880000'>-TA1 - rtems_clock_get - 00:00:00 01/01/2000 - RTEMS_SUCCESSFUL
</font><font color='#000088'>+TA1 - rtems_clock_get_tod - 00:00:00 01/01/2000 - RTEMS_SUCCESSFUL
</font> TA1 - rtems_clock_set - 23:59:59 12/31/2100 - RTEMS_SUCCESSFUL
TA1 - rtems_clock_get_tod - 17:31:44 11/25/1964 - RTEMS_SUCCESSFUL
TA1 - rtems_clock_set - 23:59:59 12/31/2099 - RTEMS_SUCCESSFUL
<font color='#006600'>diff -u rtems/testsuites/sptests/sp29/init.c:1.17 rtems/testsuites/sptests/sp29/init.c:1.18
--- rtems/testsuites/sptests/sp29/init.c:1.17 Tue Feb 22 01:37:00 2011
+++ rtems/testsuites/sptests/sp29/init.c Sat Jun 11 11:42:05 2011
</font><font color='#997700'>@@ -165,9 +165,9 @@
</font> * Since this task is holding this, this task will block and timeout.
* Then the timeout error will be returned.
*/
<font color='#880000'>- rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then);
</font><font color='#000088'>+ then = rtems_clock_get_ticks_since_boot();
</font> sc = rtems_semaphore_obtain (semnorec, RTEMS_WAIT, 5);
<font color='#880000'>- rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now);
</font><font color='#000088'>+ now = rtems_clock_get_ticks_since_boot();
</font> if (sc == RTEMS_SUCCESSFUL) {
printf ("%d: Reobtain non-recursive-lock semaphore -- and should not have.\n", __LINE__);
}
<font color='#997700'>@@ -178,12 +178,12 @@
</font> printf ("%d: Reobtain non-recursive-lock semaphore failed without timeout.\n", __LINE__);
startTask (semnorec);
<font color='#880000'>- rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then);
</font><font color='#000088'>+ then = rtems_clock_get_ticks_since_boot();
</font> for (i = 0 ; i < 5 ; i++) {
rtems_interval diff;
sc = rtems_semaphore_obtain (semnorec, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
<font color='#880000'>- rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now);
</font><font color='#000088'>+ now = rtems_clock_get_ticks_since_boot();
</font> diff = (now - then);
then = now;
if (sc != RTEMS_SUCCESSFUL)
<font color='#006600'>diff -u rtems/testsuites/sptests/sp30/sp30.scn:1.3 rtems/testsuites/sptests/sp30/sp30.scn:1.4
--- rtems/testsuites/sptests/sp30/sp30.scn:1.3 Fri Dec 14 11:44:15 2007
+++ rtems/testsuites/sptests/sp30/sp30.scn Sat Jun 11 11:42:05 2011
</font><font color='#997700'>@@ -2,18 +2,18 @@
</font> timer_initiate_server -- INVALID_PRIORITY
timer_initiate_server -- OK
timer_initiate_server -- already started
<font color='#880000'>-TA1 - rtems_clock_get - 09:00:00 12/31/1988
-TA2 - rtems_clock_get - 09:00:00 12/31/1988
-TA3 - rtems_clock_get - 09:00:00 12/31/1988
-TA1 - rtems_clock_get - 09:00:05 12/31/1988
-TA2 - rtems_clock_get - 09:00:10 12/31/1988
-TA1 - rtems_clock_get - 09:00:10 12/31/1988
-TA1 - rtems_clock_get - 09:00:15 12/31/1988
-TA3 - rtems_clock_get - 09:00:15 12/31/1988
-TA2 - rtems_clock_get - 09:00:20 12/31/1988
-TA1 - rtems_clock_get - 09:00:20 12/31/1988
-TA1 - rtems_clock_get - 09:00:25 12/31/1988
-TA2 - rtems_clock_get - 09:00:30 12/31/1988
-TA1 - rtems_clock_get - 09:00:30 12/31/1988
-TA3 - rtems_clock_get - 09:00:30 12/31/1988
</font><font color='#000088'>+TA1 - rtems_clock_get_tod - 09:00:00 12/31/1988
+TA2 - rtems_clock_get_tod - 09:00:00 12/31/1988
+TA3 - rtems_clock_get_tod - 09:00:00 12/31/1988
+TA1 - rtems_clock_get_tod - 09:00:05 12/31/1988
+TA2 - rtems_clock_get_tod - 09:00:10 12/31/1988
+TA1 - rtems_clock_get_tod - 09:00:10 12/31/1988
+TA1 - rtems_clock_get_tod - 09:00:15 12/31/1988
+TA3 - rtems_clock_get_tod - 09:00:15 12/31/1988
+TA2 - rtems_clock_get_tod - 09:00:20 12/31/1988
+TA1 - rtems_clock_get_tod - 09:00:20 12/31/1988
+TA1 - rtems_clock_get_tod - 09:00:25 12/31/1988
+TA2 - rtems_clock_get_tod - 09:00:30 12/31/1988
+TA1 - rtems_clock_get_tod - 09:00:30 12/31/1988
+TA3 - rtems_clock_get_tod - 09:00:30 12/31/1988
</font> *** END OF TEST 30 ***
<font color='#006600'>diff -u rtems/testsuites/sptests/sp32/init.c:1.10 rtems/testsuites/sptests/sp32/init.c:1.11
--- rtems/testsuites/sptests/sp32/init.c:1.10 Tue Feb 22 01:37:00 2011
+++ rtems/testsuites/sptests/sp32/init.c Sat Jun 11 11:42:05 2011
</font><font color='#997700'>@@ -1,5 +1,5 @@
</font> /*
<font color='#880000'>- * COPYRIGHT (c) 1989-2009.
</font><font color='#000088'>+ * COPYRIGHT (c) 1989-2011.
</font> * On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
<font color='#997700'>@@ -39,8 +39,7 @@
</font> directive_failed(status, "rate_monotonic_period #1");
/* get our first timestamp */
<font color='#880000'>- status = rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, ×tamps[0] );
- directive_failed(status, "clock_get");
</font><font color='#000088'>+ timestamps[0] = rtems_clock_get_ticks_since_boot();
</font>
/* loop through and gather more timestamps */
for (loopy = 1; loopy < 5; loopy++) {
<font color='#997700'>@@ -48,11 +47,7 @@
</font> status = rtems_rate_monotonic_period( period_id, wantintervals[loopy] );
directive_failed(status, "rate_monotonic_period #2");
<font color='#880000'>- status = rtems_clock_get(
- RTEMS_CLOCK_GET_TICKS_SINCE_BOOT,
- ×tamps[loopy]
- );
- directive_failed(status, "clock_get");
</font><font color='#000088'>+ timestamps[loopy] = rtems_clock_get_ticks_since_boot();
</font> }
/* block one last time */
<font color='#997700'>@@ -60,11 +55,7 @@
</font> directive_failed(status, "rate_monotonic_period #3");
/* get one last timestamp */
<font color='#880000'>- status = rtems_clock_get(
- RTEMS_CLOCK_GET_TICKS_SINCE_BOOT,
- ×tamps[loopy]
- );
- directive_failed(status, "clock_get");
</font><font color='#000088'>+ timestamps[loopy] = rtems_clock_get_ticks_since_boot();
</font>
/* cancel the period */
status = rtems_rate_monotonic_cancel(period_id);
<font color='#006600'>diff -u rtems/testsuites/sptests/spclockget/init.c:1.5 rtems/testsuites/sptests/spclockget/init.c:1.6
--- rtems/testsuites/sptests/spclockget/init.c:1.5 Tue Feb 22 01:37:02 2011
+++ rtems/testsuites/sptests/spclockget/init.c Sat Jun 11 11:42:05 2011
</font><font color='#997700'>@@ -1,5 +1,5 @@
</font> /*
<font color='#880000'>- * COPYRIGHT (c) 1989-2009.
</font><font color='#000088'>+ * COPYRIGHT (c) 1989-2011.
</font> * On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
<font color='#997700'>@@ -31,6 +31,16 @@
</font> sc = rtems_clock_set( &time );
directive_failed( sc, "rtems_clock_set" );
<font color='#000088'>+ /* NULL parameter */
+ sc = rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, NULL );
+ fatal_directive_status( sc, RTEMS_INVALID_ADDRESS, "null pointer" );
+ puts( "TA1 - rtems_clock_get - RTEMS_INVALID_ADDRESS" );
+
+ /* arbitrary bad value for switch */
+ sc = rtems_clock_get( 0xff, &timev );
+ fatal_directive_status( sc, RTEMS_INVALID_NUMBER, "bad case" );
+ puts( "TA1 - rtems_clock_get - RTEMS_INVALID_NUMBER" );
+
</font> sc = rtems_clock_get( RTEMS_CLOCK_GET_TOD, &time );
directive_failed( sc, "rtems_clock_get -- TOD" );
print_time( "Init - rtems_clock_get - ", &time, "\n" );
</pre>
<p> </p>
<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>