Changeset 4c84d7b in rtems


Ignore:
Timestamp:
Mar 30, 2004, 11:12:01 AM (17 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
9919946
Parents:
d8dbdc0
Message:

2004-03-30 Ralf Corsepius <ralf_corsepius@…>

  • fileio/init.c, fileio/system.h, ticker/system.h, ticker/tasks.c, unlimited/init.c, unlimited/test1.c, unlimited/test2.c, unlimited/test3.c: Convert to using c99 fixed size types.
Location:
testsuites/samples
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • testsuites/samples/ChangeLog

    rd8dbdc0 r4c84d7b  
     12004-03-30      Ralf Corsepius <ralf_corsepius@rtems.org>
     2
     3        * fileio/init.c, fileio/system.h, ticker/system.h, ticker/tasks.c,
     4        unlimited/init.c, unlimited/test1.c, unlimited/test2.c,
     5        unlimited/test3.c: Convert to using c99 fixed size types.
     6
    172004-03-25      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    28
  • testsuites/samples/fileio/init.c

    rd8dbdc0 r4c84d7b  
    164164  char fname[1024];
    165165  char *buf_ptr = NULL;
    166   unsigned32 flen = 0;
     166  uint32_t  flen = 0;
    167167  int fd = -1;
    168168  ssize_t n;
     
    226226 * convert a size string (like 34K or 12M) to actual byte count
    227227 */
    228 boolean fileio_str2size(const char *str,unsigned32 *res_ptr)
     228boolean fileio_str2size(const char *str,uint32_t  *res_ptr)
    229229{
    230230  boolean failed = FALSE;
     
    255255  char fname[1024];
    256256  char tmp_str[32];
    257   unsigned32 file_size = 0;
    258   unsigned32 buf_size  = 0;
     257  uint32_t  file_size = 0;
     258  uint32_t  buf_size  = 0;
    259259  size_t curr_pos,bytes_to_copy;
    260260  int fd = -1;
     
    416416  char fname[1024];
    417417  char tmp_str[32];
    418   unsigned32 buf_size  = 0;
     418  uint32_t  buf_size  = 0;
    419419  size_t curr_pos;
    420420  int fd = -1;
  • testsuites/samples/fileio/system.h

    rd8dbdc0 r4c84d7b  
    9494#define put_name( _name, _crlf ) \
    9595  do { \
    96     rtems_unsigned32 c0, c1, c2, c3; \
     96    uint32_t  c0, c1, c2, c3; \
    9797    \
    9898    c0 = ((_name) >> 24) & 0xff; \
     
    112112 */
    113113
    114 static inline rtems_unsigned32 get_ticks_per_second( void )
     114static inline uint32_t  get_ticks_per_second( void )
    115115{
    116116  rtems_interval ticks_per_second;
  • testsuites/samples/ticker/system.h

    rd8dbdc0 r4c84d7b  
    7474#define put_name( _name, _crlf ) \
    7575  do { \
    76     rtems_unsigned32 c0, c1, c2, c3; \
     76    uint32_t  c0, c1, c2, c3; \
    7777    \
    7878    c0 = ((_name) >> 24) & 0xff; \
     
    9292 */
    9393
    94 static inline rtems_unsigned32 get_ticks_per_second( void )
     94static inline uint32_t  get_ticks_per_second( void )
    9595{
    9696  rtems_interval ticks_per_second;
  • testsuites/samples/ticker/tasks.c

    rd8dbdc0 r4c84d7b  
    2828  rtems_id          tid;
    2929  rtems_time_of_day time;
    30   rtems_unsigned32  task_index;
     30  uint32_t    task_index;
    3131  rtems_status_code status;
    3232
  • testsuites/samples/unlimited/init.c

    rd8dbdc0 r4c84d7b  
    3838  rtems_task_priority old_priority;
    3939  rtems_mode          old_mode;
    40   rtems_unsigned32    task;
     40  uint32_t      task;
    4141
    4242  /* lower the task priority to allow created tasks to execute */
     
    8181)
    8282{
    83   rtems_unsigned32 task;
     83  uint32_t  task;
    8484 
    8585  /*
  • testsuites/samples/unlimited/test1.c

    rd8dbdc0 r4c84d7b  
    2727  boolean           auto_extend;
    2828  rtems_status_code result;
    29   rtems_unsigned32  task_count = 0;
     29  uint32_t    task_count = 0;
    3030  Objects_Information *the_information;
    3131 
  • testsuites/samples/unlimited/test2.c

    rd8dbdc0 r4c84d7b  
    2828{
    2929  rtems_status_code   result;
    30   rtems_unsigned32    remove_task;
    31   rtems_unsigned32    task;
    32   rtems_unsigned32    block;
    33   rtems_unsigned32    task_count = 0;
     30  uint32_t      remove_task;
     31  uint32_t      task;
     32  uint32_t      block;
     33  uint32_t      task_count = 0;
    3434  rtems_id            removed_ids[TASK_ALLOCATION_SIZE * 2];
    3535 
     
    127127  {
    128128    rtems_name       name;
    129     rtems_unsigned32 id_slot;
     129    uint32_t  id_slot;
    130130
    131131    /*
     
    203203    if (remove_task == (TASK_ALLOCATION_SIZE * 2))
    204204    {
    205       rtems_unsigned32 allocated_id;
     205      uint32_t  allocated_id;
    206206     
    207207      for (allocated_id = 0; allocated_id < MAX_TASKS; allocated_id++)
  • testsuites/samples/unlimited/test3.c

    rd8dbdc0 r4c84d7b  
    2828{
    2929  rtems_status_code   result;
    30   rtems_unsigned32    remove_task;
    31   rtems_unsigned32    block;
    32   rtems_unsigned32    task_count = 0;
     30  uint32_t      remove_task;
     31  uint32_t      block;
     32  uint32_t      task_count = 0;
    3333 
    3434  char               c1 = 'a';
Note: See TracChangeset for help on using the changeset viewer.