Changeset 91c80547 in rtems


Ignore:
Timestamp:
Jun 11, 2011, 4:41:56 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
f4773a47
Parents:
b5e2739
Message:

2011-06-11 Joel Sherrill <joel.sherrill@…>

  • fileio/init.c: Avoid use of deprecated rtems_clock_get() except in spclockget().
Location:
testsuites/samples
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/samples/ChangeLog

    rb5e2739 r91c80547  
     12011-06-11      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * fileio/init.c: Avoid use of deprecated rtems_clock_get() except in
     4        spclockget().
     5
    162011-05-05      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • testsuites/samples/fileio/init.c

    rb5e2739 r91c80547  
    287287
    288288  if (fd >= 0) {
    289     rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &start_tick);
     289    start_tick = rtems_clock_get_ticks_since_boot();
    290290    do {
    291291      n = read(fd,buf_ptr,buf_size);
     
    296296    } while (n > 0);
    297297
    298     rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &curr_tick);
     298    curr_tick = rtems_clock_get_ticks_since_boot();
    299299
    300300    printf("\n ******** End of file reached, flen = %zd\n",flen);
     
    463463  if (!failed) {
    464464    printf("... writing to file\n");
    465     rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &start_tick);
     465    start_tick = rtems_clock_get_ticks_since_boot();
    466466    curr_pos = 0;
    467467    do {
     
    477477      } while ((bytes_to_copy > 0)  && (n > 0));
    478478    } while ((file_size > curr_pos) && (n > 0));
    479     rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &curr_tick);
     479    curr_tick = rtems_clock_get_ticks_since_boot();
    480480    if (n < 0) {
    481481      failed = true;
     
    584584  if (!failed) {
    585585    printf("... reading from file\n");
    586     rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &start_tick);
     586    start_tick = rtems_clock_get_ticks_since_boot();
    587587    curr_pos = 0;
    588588    do {
     
    594594      }
    595595    } while (n > 0);
    596     rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &curr_tick);
     596    curr_tick = rtems_clock_get_ticks_since_boot();
    597597    if (n < 0) {
    598598      failed = true;
Note: See TracChangeset for help on using the changeset viewer.