mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-26 01:32:38 +08:00
2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxfile01/test.c, psxstat/test.c, psxtime/test.c: Eliminate test routines TICKS_PER_SECOND and get_ticks_per_second() in favor of new rtems_clock_get_ticks_per_second().
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* psxfile01/test.c, psxstat/test.c, psxtime/test.c: Eliminate test
|
||||
routines TICKS_PER_SECOND and get_ticks_per_second() in favor of new
|
||||
rtems_clock_get_ticks_per_second().
|
||||
|
||||
2009-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* psxsignal01/init.c: Convert calls to legacy routine rtems_clock_get(
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
* /dev
|
||||
* /dev/XXX [where XXX includes at least console]
|
||||
*
|
||||
* COPYRIGHT (c) 1989-1999.
|
||||
* COPYRIGHT (c) 1989-2009.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -433,7 +433,7 @@ int main(
|
||||
ctime2 = buf.st_ctime;
|
||||
|
||||
|
||||
status = rtems_task_wake_after( 1 * TICKS_PER_SECOND );
|
||||
status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
|
||||
rewind( file );
|
||||
while ( fgets(buffer, 128, file) )
|
||||
printf( "%s", buffer );
|
||||
@@ -459,7 +459,7 @@ int main(
|
||||
* Now truncate a file
|
||||
*/
|
||||
|
||||
status = rtems_task_wake_after( 1 * TICKS_PER_SECOND );
|
||||
status = rtems_task_wake_after( rtems_clock_get_ticks_per_second() );
|
||||
puts( "truncate /tmp/j to length of 40" );
|
||||
status = truncate( "/tmp/j", 40 );
|
||||
assert( !status );
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* This test exercises stat() via fstat() and generates as many of the
|
||||
* path evaluation cases as possible.
|
||||
*
|
||||
* COPYRIGHT (c) 1989-1999.
|
||||
* COPYRIGHT (c) 1989-2009.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <pmacros.h>
|
||||
|
||||
#define MAXSYMLINK 5 /* There needs to be a better way of getting this. */
|
||||
#define TIMEOUT_VALUE ( 5 * TICKS_PER_SECOND )
|
||||
#define TIMEOUT_VALUE ( 5 * rtems_clock_get_ticks_per_second() )
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -84,7 +84,7 @@ void check_a_tod(
|
||||
a_tm = gmtime( &a_time_t );
|
||||
printf( "gmtime: %s\n", asctime( a_tm ) );
|
||||
|
||||
status = rtems_task_wake_after( 5 * TICKS_PER_SECOND );
|
||||
status = rtems_task_wake_after( 5 * rtems_clock_get_ticks_per_second() );
|
||||
|
||||
i++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user