Changeset 4c84d7b in rtems
- Timestamp:
- 03/30/04 11:12:01 (20 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 9919946a
- Parents:
- d8dbdc0
- Location:
- testsuites/samples
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
testsuites/samples/ChangeLog
rd8dbdc0 r4c84d7b 1 2004-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 1 7 2004-03-25 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 8 -
testsuites/samples/fileio/init.c
rd8dbdc0 r4c84d7b 164 164 char fname[1024]; 165 165 char *buf_ptr = NULL; 166 u nsigned32flen = 0;166 uint32_t flen = 0; 167 167 int fd = -1; 168 168 ssize_t n; … … 226 226 * convert a size string (like 34K or 12M) to actual byte count 227 227 */ 228 boolean fileio_str2size(const char *str,u nsigned32*res_ptr)228 boolean fileio_str2size(const char *str,uint32_t *res_ptr) 229 229 { 230 230 boolean failed = FALSE; … … 255 255 char fname[1024]; 256 256 char tmp_str[32]; 257 u nsigned32file_size = 0;258 u nsigned32buf_size = 0;257 uint32_t file_size = 0; 258 uint32_t buf_size = 0; 259 259 size_t curr_pos,bytes_to_copy; 260 260 int fd = -1; … … 416 416 char fname[1024]; 417 417 char tmp_str[32]; 418 u nsigned32buf_size = 0;418 uint32_t buf_size = 0; 419 419 size_t curr_pos; 420 420 int fd = -1; -
testsuites/samples/fileio/system.h
rd8dbdc0 r4c84d7b 94 94 #define put_name( _name, _crlf ) \ 95 95 do { \ 96 rtems_unsigned32c0, c1, c2, c3; \96 uint32_t c0, c1, c2, c3; \ 97 97 \ 98 98 c0 = ((_name) >> 24) & 0xff; \ … … 112 112 */ 113 113 114 static inline rtems_unsigned32get_ticks_per_second( void )114 static inline uint32_t get_ticks_per_second( void ) 115 115 { 116 116 rtems_interval ticks_per_second; -
testsuites/samples/ticker/system.h
rd8dbdc0 r4c84d7b 74 74 #define put_name( _name, _crlf ) \ 75 75 do { \ 76 rtems_unsigned32c0, c1, c2, c3; \76 uint32_t c0, c1, c2, c3; \ 77 77 \ 78 78 c0 = ((_name) >> 24) & 0xff; \ … … 92 92 */ 93 93 94 static inline rtems_unsigned32get_ticks_per_second( void )94 static inline uint32_t get_ticks_per_second( void ) 95 95 { 96 96 rtems_interval ticks_per_second; -
testsuites/samples/ticker/tasks.c
rd8dbdc0 r4c84d7b 28 28 rtems_id tid; 29 29 rtems_time_of_day time; 30 rtems_unsigned32task_index;30 uint32_t task_index; 31 31 rtems_status_code status; 32 32 -
testsuites/samples/unlimited/init.c
rd8dbdc0 r4c84d7b 38 38 rtems_task_priority old_priority; 39 39 rtems_mode old_mode; 40 rtems_unsigned32task;40 uint32_t task; 41 41 42 42 /* lower the task priority to allow created tasks to execute */ … … 81 81 ) 82 82 { 83 rtems_unsigned32task;83 uint32_t task; 84 84 85 85 /* -
testsuites/samples/unlimited/test1.c
rd8dbdc0 r4c84d7b 27 27 boolean auto_extend; 28 28 rtems_status_code result; 29 rtems_unsigned32task_count = 0;29 uint32_t task_count = 0; 30 30 Objects_Information *the_information; 31 31 -
testsuites/samples/unlimited/test2.c
rd8dbdc0 r4c84d7b 28 28 { 29 29 rtems_status_code result; 30 rtems_unsigned32remove_task;31 rtems_unsigned32task;32 rtems_unsigned32block;33 rtems_unsigned32task_count = 0;30 uint32_t remove_task; 31 uint32_t task; 32 uint32_t block; 33 uint32_t task_count = 0; 34 34 rtems_id removed_ids[TASK_ALLOCATION_SIZE * 2]; 35 35 … … 127 127 { 128 128 rtems_name name; 129 rtems_unsigned32id_slot;129 uint32_t id_slot; 130 130 131 131 /* … … 203 203 if (remove_task == (TASK_ALLOCATION_SIZE * 2)) 204 204 { 205 rtems_unsigned32allocated_id;205 uint32_t allocated_id; 206 206 207 207 for (allocated_id = 0; allocated_id < MAX_TASKS; allocated_id++) -
testsuites/samples/unlimited/test3.c
rd8dbdc0 r4c84d7b 28 28 { 29 29 rtems_status_code result; 30 rtems_unsigned32remove_task;31 rtems_unsigned32block;32 rtems_unsigned32task_count = 0;30 uint32_t remove_task; 31 uint32_t block; 32 uint32_t task_count = 0; 33 33 34 34 char c1 = 'a';
Note: See TracChangeset
for help on using the changeset viewer.