Changeset 83c5fc1 in rtems
- Timestamp:
- 03/23/04 06:07:53 (20 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- ee4f57d
- Parents:
- f91bbe64
- Location:
- cpukit
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/ChangeLog
rf91bbe64 r83c5fc1 1 2004-03-23 Ralf Corsepius <ralf_corsepius@rtems.org> 2 3 * libcsupport/include/chain.h, libcsupport/include/clockdrv.h, 4 libcsupport/include/ringbuf.h, libcsupport/include/spurious.h, 5 libcsupport/include/timerdrv.h, libcsupport/include/vmeintr.h, 6 libcsupport/include/motorola/mc68230.h, 7 libcsupport/include/rtems/assoc.h, libcsupport/include/rtems/libio.h, 8 libcsupport/include/rtems/libio_.h, 9 libcsupport/include/rtems/termiostypes.h, 10 libcsupport/include/zilog/z8036.h, libcsupport/include/zilog/z8530.h, 11 libcsupport/include/zilog/z8536.h, libcsupport/src/__gettod.c, 12 libcsupport/src/assoc.c, libcsupport/src/assocnamebad.c, 13 libcsupport/src/error.c, libcsupport/src/libio.c, 14 libcsupport/src/libio_sockets.c, libcsupport/src/malloc.c, 15 libcsupport/src/no_libc.c, libcsupport/src/termios.c, 16 libcsupport/src/termiosreserveresources.c: Convert to using c99 17 fixed-size types. 18 1 19 2004-03-22 Ralf Corsepius <ralf_corsepius@rtems.org> 2 20 -
cpukit/libcsupport/include/chain.h
rf91bbe64 r83c5fc1 29 29 * Chain_Control *the_chain, * IN * 30 30 * void *starting_address, * IN * 31 * rtems_unsigned32number_nodes, * IN *32 * rtems_unsigned32node_size * IN *31 * uint32_t number_nodes, * IN * 32 * uint32_t node_size * IN * 33 33 */ 34 34 -
cpukit/libcsupport/include/clockdrv.h
rf91bbe64 r83c5fc1 22 22 /* variables */ 23 23 24 extern volatile rtems_unsigned32Clock_driver_ticks;24 extern volatile uint32_t Clock_driver_ticks; 25 25 extern rtems_device_major_number rtems_clock_major; 26 26 extern rtems_device_minor_number rtems_clock_minor; -
cpukit/libcsupport/include/motorola/mc68230.h
rf91bbe64 r83c5fc1 59 59 /* Some RTEMS style defines: */ 60 60 #ifndef VOL8 61 #define VOL8( ptr ) ((volatile rtems_unsigned8*)(ptr))61 #define VOL8( ptr ) ((volatile uint8_t *)(ptr)) 62 62 #endif 63 63 -
cpukit/libcsupport/include/ringbuf.h
rf91bbe64 r83c5fc1 33 33 #define Ring_buffer_Add_character( _buffer, _ch ) \ 34 34 do { \ 35 rtems_unsigned32isrlevel; \35 uint32_t isrlevel; \ 36 36 \ 37 37 rtems_interrupt_disable( isrlevel ); \ … … 43 43 #define Ring_buffer_Remove_character( _buffer, _ch ) \ 44 44 do { \ 45 rtems_unsigned32isrlevel; \45 uint32_t isrlevel; \ 46 46 \ 47 47 rtems_interrupt_disable( isrlevel ); \ -
cpukit/libcsupport/include/rtems/assoc.h
rf91bbe64 r83c5fc1 13 13 typedef struct { 14 14 const char *name; 15 u nsigned32local_value;16 u nsigned32remote_value;15 uint32_t local_value; 16 uint32_t remote_value; 17 17 } rtems_assoc_t; 18 18 … … 24 24 25 25 const rtems_assoc_t *rtems_assoc_ptr_by_name(const rtems_assoc_t *, const char *); 26 const rtems_assoc_t *rtems_assoc_ptr_by_value(const rtems_assoc_t *, u nsigned32);27 const rtems_assoc_t *rtems_assoc_ptr_by_remote(const rtems_assoc_t *, u nsigned32);26 const rtems_assoc_t *rtems_assoc_ptr_by_value(const rtems_assoc_t *, uint32_t ); 27 const rtems_assoc_t *rtems_assoc_ptr_by_remote(const rtems_assoc_t *, uint32_t ); 28 28 29 u nsigned32 rtems_assoc_remote_by_local(const rtems_assoc_t *, unsigned32);30 u nsigned32 rtems_assoc_local_by_remote(const rtems_assoc_t *, unsigned32);31 u nsigned32rtems_assoc_remote_by_name(const rtems_assoc_t *, const char *);32 u nsigned32rtems_assoc_local_by_name(const rtems_assoc_t *, const char *);33 const char *rtems_assoc_name_by_local(const rtems_assoc_t *, u nsigned32);34 const char *rtems_assoc_name_by_remote(const rtems_assoc_t *, u nsigned32);29 uint32_t rtems_assoc_remote_by_local(const rtems_assoc_t *, uint32_t ); 30 uint32_t rtems_assoc_local_by_remote(const rtems_assoc_t *, uint32_t ); 31 uint32_t rtems_assoc_remote_by_name(const rtems_assoc_t *, const char *); 32 uint32_t rtems_assoc_local_by_name(const rtems_assoc_t *, const char *); 33 const char *rtems_assoc_name_by_local(const rtems_assoc_t *, uint32_t ); 34 const char *rtems_assoc_name_by_remote(const rtems_assoc_t *, uint32_t ); 35 35 36 u nsigned32 rtems_assoc_remote_by_local_bitfield(const rtems_assoc_t *, unsigned32);37 char *rtems_assoc_name_by_local_bitfield(const rtems_assoc_t *, u nsigned32, char *);38 char *rtems_assoc_name_by_remote_bitfield(const rtems_assoc_t *, u nsigned32, char *);39 u nsigned32 rtems_assoc_local_by_remote_bitfield(const rtems_assoc_t *, unsigned32);36 uint32_t rtems_assoc_remote_by_local_bitfield(const rtems_assoc_t *, uint32_t ); 37 char *rtems_assoc_name_by_local_bitfield(const rtems_assoc_t *, uint32_t , char *); 38 char *rtems_assoc_name_by_remote_bitfield(const rtems_assoc_t *, uint32_t , char *); 39 uint32_t rtems_assoc_local_by_remote_bitfield(const rtems_assoc_t *, uint32_t ); 40 40 41 41 -
cpukit/libcsupport/include/rtems/libio.h
rf91bbe64 r83c5fc1 49 49 rtems_libio_t *iop, 50 50 const char *pathname, 51 u nsigned32flag,52 u nsigned32mode51 uint32_t flag, 52 uint32_t mode 53 53 ); 54 54 … … 60 60 rtems_libio_t *iop, 61 61 void *buffer, 62 u nsigned32count62 uint32_t count 63 63 ); 64 64 … … 66 66 rtems_libio_t *iop, 67 67 const void *buffer, 68 u nsigned32count68 uint32_t count 69 69 ); 70 70 71 71 typedef int (*rtems_filesystem_ioctl_t)( 72 72 rtems_libio_t *iop, 73 u nsigned32command,73 uint32_t command, 74 74 void *buffer 75 75 ); … … 341 341 off_t size; /* size of file */ 342 342 off_t offset; /* current offset into file */ 343 u nsigned32flags;343 uint32_t flags; 344 344 rtems_filesystem_location_info_t pathinfo; 345 345 Objects_Id sem; 346 u nsigned32data0; /* private to "driver" */346 uint32_t data0; /* private to "driver" */ 347 347 void *data1; /* ... */ 348 348 void *file_info; /* used by file handlers */ … … 359 359 rtems_libio_t *iop; 360 360 off_t offset; 361 u nsigned8*buffer;362 u nsigned32count;363 u nsigned32flags;364 u nsigned32bytes_moved;361 uint8_t *buffer; 362 uint32_t count; 363 uint32_t flags; 364 uint32_t bytes_moved; 365 365 } rtems_libio_rw_args_t; 366 366 … … 371 371 typedef struct { 372 372 rtems_libio_t *iop; 373 u nsigned32flags;374 u nsigned32mode;373 uint32_t flags; 374 uint32_t mode; 375 375 } rtems_libio_open_close_args_t; 376 376 … … 381 381 typedef struct { 382 382 rtems_libio_t *iop; 383 u nsigned32command;383 uint32_t command; 384 384 void *buffer; 385 u nsigned32ioctl_return;385 uint32_t ioctl_return; 386 386 } rtems_libio_ioctl_args_t; 387 387 … … 407 407 typedef int (*rtems_libio_open_t)( 408 408 const char *pathname, 409 u nsigned32flag,410 u nsigned32mode409 uint32_t flag, 410 uint32_t mode 411 411 ); 412 412 … … 418 418 int fd, 419 419 void *buffer, 420 u nsigned32count420 uint32_t count 421 421 ); 422 422 … … 424 424 int fd, 425 425 const void *buffer, 426 u nsigned32count426 uint32_t count 427 427 ); 428 428 429 429 typedef int (*rtems_libio_ioctl_t)( 430 430 int fd, 431 u nsigned32command,431 uint32_t command, 432 432 void *buffer 433 433 ); … … 602 602 void rtems_termios_reserve_resources( 603 603 rtems_configuration_table *configuration, 604 rtems_unsigned32number_of_devices604 uint32_t number_of_devices 605 605 ); 606 606 -
cpukit/libcsupport/include/rtems/libio_.h
rf91bbe64 r83c5fc1 40 40 */ 41 41 42 extern u nsigned32rtems_libio_number_iops;42 extern uint32_t rtems_libio_number_iops; 43 43 extern rtems_libio_t *rtems_libio_iops; 44 44 extern rtems_libio_t *rtems_libio_last_iop; … … 52 52 53 53 #define rtems_libio_iop(_fd) \ 54 ((((u nsigned32)(_fd)) < rtems_libio_number_iops) ? \54 ((((uint32_t )(_fd)) < rtems_libio_number_iops) ? \ 55 55 &rtems_libio_iops[_fd] : 0) 56 56 … … 87 87 #define rtems_libio_check_fd(_fd) \ 88 88 do { \ 89 if ((u nsigned32) (_fd) >= rtems_libio_number_iops) { \89 if ((uint32_t ) (_fd) >= rtems_libio_number_iops) { \ 90 90 errno = EBADF; \ 91 91 return -1; \ … … 207 207 rtems_libio_t *rtems_libio_allocate(void); 208 208 209 u nsigned32rtems_libio_fcntl_flags(210 u nsigned32fcntl_flags211 ); 212 213 u nsigned32rtems_libio_to_fcntl_flags(214 u nsigned32flags209 uint32_t rtems_libio_fcntl_flags( 210 uint32_t fcntl_flags 211 ); 212 213 uint32_t rtems_libio_to_fcntl_flags( 214 uint32_t flags 215 215 ); 216 216 -
cpukit/libcsupport/include/rtems/termiostypes.h
rf91bbe64 r83c5fc1 91 91 */ 92 92 struct rtems_termios_rawbuf rawInBuf; 93 rtems_unsigned32rawInBufSemaphoreOptions;93 uint32_t rawInBufSemaphoreOptions; 94 94 rtems_interval rawInBufSemaphoreTimeout; 95 95 rtems_interval rawInBufSemaphoreFirstTimeout; -
cpukit/libcsupport/include/spurious.h
rf91bbe64 r83c5fc1 28 28 void *, 29 29 rtems_id, 30 rtems_unsigned32*30 uint32_t * 31 31 ); 32 32 -
cpukit/libcsupport/include/timerdrv.h
rf91bbe64 r83c5fc1 24 24 void Timer_initialize( void ); 25 25 26 rtems_unsigned32Read_timer( void );26 uint32_t Read_timer( void ); 27 27 28 28 rtems_status_code Empty_function( void ); -
cpukit/libcsupport/include/vmeintr.h
rf91bbe64 r83c5fc1 31 31 */ 32 32 33 typedef rtems_unsigned8VME_interrupt_Mask;33 typedef uint8_t VME_interrupt_Mask; 34 34 35 35 /* -
cpukit/libcsupport/include/zilog/z8036.h
rf91bbe64 r83c5fc1 47 47 struct z8036_map { 48 48 /* MAIN CONTROL REGISTERS (0x00-0x07) */ 49 rtems_unsigned8MASTER_INTR; /* Master Interrupt Ctl Reg */50 rtems_unsigned8MASTER_CFG; /* Master Configuration Ctl Reg */51 rtems_unsigned8PORTA_VECTOR; /* Port A - Interrupt Vector */52 rtems_unsigned8PORTB_VECTOR; /* Port B - Interrupt Vector */53 rtems_unsigned8CNT_TMR_VECTOR; /* Counter/Timer Interrupt Vector */54 rtems_unsigned8PORTC_DATA_POLARITY; /* Port C - Data Path Polarity */55 rtems_unsigned8PORTC_DIRECTION; /* Port C - Data Direction */56 rtems_unsigned8PORTC_SPECIAL_IO_CTL; /* Port C - Special IO Control */49 uint8_t MASTER_INTR; /* Master Interrupt Ctl Reg */ 50 uint8_t MASTER_CFG; /* Master Configuration Ctl Reg */ 51 uint8_t PORTA_VECTOR; /* Port A - Interrupt Vector */ 52 uint8_t PORTB_VECTOR; /* Port B - Interrupt Vector */ 53 uint8_t CNT_TMR_VECTOR; /* Counter/Timer Interrupt Vector */ 54 uint8_t PORTC_DATA_POLARITY; /* Port C - Data Path Polarity */ 55 uint8_t PORTC_DIRECTION; /* Port C - Data Direction */ 56 uint8_t PORTC_SPECIAL_IO_CTL; /* Port C - Special IO Control */ 57 57 /* MOST OFTEN ACCESSED REGISTERS (0x08 - 0x0f) */ 58 rtems_unsigned8PORTA_CMD_STATUS; /* Port A - Command Status Reg */59 rtems_unsigned8PORTB_CMD_STATUS; /* Port B - Command Status Reg */60 rtems_unsigned8CT1_CMD_STATUS; /* Ctr/Timer 1 - Command Status Reg */61 rtems_unsigned8CT2_CMD_STATUS; /* Ctr/Timer 2 - Command Status Reg */62 rtems_unsigned8CT3_CMD_STATUS; /* Ctr/Timer 3 - Command Status Reg */63 rtems_unsigned8PORTA_DATA; /* Port A - Data */64 rtems_unsigned8PORTB_DATA; /* Port B - Data */65 rtems_unsigned8PORTC_DATA; /* Port C - Data */58 uint8_t PORTA_CMD_STATUS; /* Port A - Command Status Reg */ 59 uint8_t PORTB_CMD_STATUS; /* Port B - Command Status Reg */ 60 uint8_t CT1_CMD_STATUS; /* Ctr/Timer 1 - Command Status Reg */ 61 uint8_t CT2_CMD_STATUS; /* Ctr/Timer 2 - Command Status Reg */ 62 uint8_t CT3_CMD_STATUS; /* Ctr/Timer 3 - Command Status Reg */ 63 uint8_t PORTA_DATA; /* Port A - Data */ 64 uint8_t PORTB_DATA; /* Port B - Data */ 65 uint8_t PORTC_DATA; /* Port C - Data */ 66 66 /* COUNTER/TIMER RELATED REGISTERS (0x10-0x1f) */ 67 rtems_unsigned8CT1_CUR_CNT_MSB; /* Ctr/Timer 1 - Current Count (MSB) */68 rtems_unsigned8CT1_CUR_CNT_LSB; /* Ctr/Timer 1 - Current Count (LSB) */69 rtems_unsigned8CT2_CUR_CNT_MSB; /* Ctr/Timer 2 - Current Count (MSB) */70 rtems_unsigned8CT2_CUR_CNT_LSB; /* Ctr/Timer 2 - Current Count (LSB) */71 rtems_unsigned8CT3_CUR_CNT_MSB; /* Ctr/Timer 3 - Current Count (MSB) */72 rtems_unsigned8CT3_CUR_CNT_LSB; /* Ctr/Timer 3 - Current Count (LSB) */73 rtems_unsigned8CT1_TIME_CONST_MSB; /* Ctr/Timer 1 - Time Constant (MSB) */74 rtems_unsigned8CT1_TIME_CONST_LSB; /* Ctr/Timer 1 - Time Constant (LSB) */75 rtems_unsigned8CT2_TIME_CONST_MSB; /* Ctr/Timer 2 - Time Constant (MSB) */76 rtems_unsigned8CT2_TIME_CONST_LSB; /* Ctr/Timer 2 - Time Constant (LSB) */77 rtems_unsigned8CT3_TIME_CONST_MSB; /* Ctr/Timer 3 - Time Constant (MSB) */78 rtems_unsigned8CT3_TIME_CONST_LSB; /* Ctr/Timer 3 - Time Constant (LSB) */79 rtems_unsigned8CT1_MODE_SPEC; /* Ctr/Timer 1 - Mode Specification */80 rtems_unsigned8CT2_MODE_SPEC; /* Ctr/Timer 2 - Mode Specification */81 rtems_unsigned8CT3_MODE_SPEC; /* Ctr/Timer 3 - Mode Specification */82 rtems_unsigned8CURRENT_VECTOR; /* Current Vector */67 uint8_t CT1_CUR_CNT_MSB; /* Ctr/Timer 1 - Current Count (MSB) */ 68 uint8_t CT1_CUR_CNT_LSB; /* Ctr/Timer 1 - Current Count (LSB) */ 69 uint8_t CT2_CUR_CNT_MSB; /* Ctr/Timer 2 - Current Count (MSB) */ 70 uint8_t CT2_CUR_CNT_LSB; /* Ctr/Timer 2 - Current Count (LSB) */ 71 uint8_t CT3_CUR_CNT_MSB; /* Ctr/Timer 3 - Current Count (MSB) */ 72 uint8_t CT3_CUR_CNT_LSB; /* Ctr/Timer 3 - Current Count (LSB) */ 73 uint8_t CT1_TIME_CONST_MSB; /* Ctr/Timer 1 - Time Constant (MSB) */ 74 uint8_t CT1_TIME_CONST_LSB; /* Ctr/Timer 1 - Time Constant (LSB) */ 75 uint8_t CT2_TIME_CONST_MSB; /* Ctr/Timer 2 - Time Constant (MSB) */ 76 uint8_t CT2_TIME_CONST_LSB; /* Ctr/Timer 2 - Time Constant (LSB) */ 77 uint8_t CT3_TIME_CONST_MSB; /* Ctr/Timer 3 - Time Constant (MSB) */ 78 uint8_t CT3_TIME_CONST_LSB; /* Ctr/Timer 3 - Time Constant (LSB) */ 79 uint8_t CT1_MODE_SPEC; /* Ctr/Timer 1 - Mode Specification */ 80 uint8_t CT2_MODE_SPEC; /* Ctr/Timer 2 - Mode Specification */ 81 uint8_t CT3_MODE_SPEC; /* Ctr/Timer 3 - Mode Specification */ 82 uint8_t CURRENT_VECTOR; /* Current Vector */ 83 83 /* PORT A SPECIFICATION REGISTERS (0x20 -0x27) */ 84 rtems_unsigned8PORTA_MODE; /* Port A - Mode Specification */85 rtems_unsigned8PORTA_HANDSHAKE; /* Port A - Handshake Specification */86 rtems_unsigned8PORTA_DATA_POLARITY; /* Port A - Data Path Polarity */87 rtems_unsigned8PORTA_DIRECTION; /* Port A - Data Direction */88 rtems_unsigned8PORTA_SPECIAL_IO_CTL; /* Port A - Special IO Control */89 rtems_unsigned8PORTA_PATT_POLARITY; /* Port A - Pattern Polarity */90 rtems_unsigned8PORTA_PATT_TRANS; /* Port A - Pattern Transition */91 rtems_unsigned8PORTA_PATT_MASK; /* Port A - Pattern Mask */84 uint8_t PORTA_MODE; /* Port A - Mode Specification */ 85 uint8_t PORTA_HANDSHAKE; /* Port A - Handshake Specification */ 86 uint8_t PORTA_DATA_POLARITY; /* Port A - Data Path Polarity */ 87 uint8_t PORTA_DIRECTION; /* Port A - Data Direction */ 88 uint8_t PORTA_SPECIAL_IO_CTL; /* Port A - Special IO Control */ 89 uint8_t PORTA_PATT_POLARITY; /* Port A - Pattern Polarity */ 90 uint8_t PORTA_PATT_TRANS; /* Port A - Pattern Transition */ 91 uint8_t PORTA_PATT_MASK; /* Port A - Pattern Mask */ 92 92 /* PORT B SPECIFICATION REGISTERS (0x28-0x2f) */ 93 rtems_unsigned8PORTB_MODE; /* Port B - Mode Specification */94 rtems_unsigned8PORTB_HANDSHAKE; /* Port B - Handshake Specification */95 rtems_unsigned8PORTB_DATA_POLARITY; /* Port B - Data Path Polarity */96 rtems_unsigned8PORTB_DIRECTION; /* Port B - Data Direction */97 rtems_unsigned8PORTB_SPECIAL_IO_CTL; /* Port B - Special IO Control */98 rtems_unsigned8PORTB_PATT_POLARITY; /* Port B - Pattern Polarity */99 rtems_unsigned8PORTB_PATT_TRANS; /* Port B - Pattern Transition */100 rtems_unsigned8PORTB_PATT_MASK; /* Port B - Pattern Mask */93 uint8_t PORTB_MODE; /* Port B - Mode Specification */ 94 uint8_t PORTB_HANDSHAKE; /* Port B - Handshake Specification */ 95 uint8_t PORTB_DATA_POLARITY; /* Port B - Data Path Polarity */ 96 uint8_t PORTB_DIRECTION; /* Port B - Data Direction */ 97 uint8_t PORTB_SPECIAL_IO_CTL; /* Port B - Special IO Control */ 98 uint8_t PORTB_PATT_POLARITY; /* Port B - Pattern Polarity */ 99 uint8_t PORTB_PATT_TRANS; /* Port B - Pattern Transition */ 100 uint8_t PORTB_PATT_MASK; /* Port B - Pattern Mask */ 101 101 }; 102 102 -
cpukit/libcsupport/include/zilog/z8530.h
rf91bbe64 r83c5fc1 27 27 /* macros */ 28 28 29 #define VOL8( ptr ) ((volatile rtems_unsigned8*)(ptr))29 #define VOL8( ptr ) ((volatile uint8_t *)(ptr)) 30 30 31 31 #define Z8x30_STATE0 ( z8530 ) \ -
cpukit/libcsupport/include/zilog/z8536.h
rf91bbe64 r83c5fc1 30 30 /* macros */ 31 31 32 #define VOL8( ptr ) ((volatile rtems_unsigned8*)(ptr))32 #define VOL8( ptr ) ((volatile uint8_t *)(ptr)) 33 33 34 34 #define Z8x36_STATE0 ( z8536 ) \ -
cpukit/libcsupport/src/__gettod.c
rf91bbe64 r83c5fc1 50 50 { 51 51 rtems_interrupt_level level; 52 rtems_unsigned32seconds;53 rtems_unsigned32microseconds;52 uint32_t seconds; 53 uint32_t microseconds; 54 54 55 55 if ( !tp ) { -
cpukit/libcsupport/src/assoc.c
rf91bbe64 r83c5fc1 39 39 rtems_assoc_ptr_by_local( 40 40 const rtems_assoc_t *ap, 41 u nsigned32local_value41 uint32_t local_value 42 42 ) 43 43 { … … 58 58 rtems_assoc_ptr_by_remote( 59 59 const rtems_assoc_t *ap, 60 u nsigned32remote_value60 uint32_t remote_value 61 61 ) 62 62 { … … 78 78 */ 79 79 80 u nsigned3280 uint32_t 81 81 rtems_assoc_remote_by_local( 82 82 const rtems_assoc_t *ap, 83 u nsigned32local_value83 uint32_t local_value 84 84 ) 85 85 { … … 92 92 } 93 93 94 u nsigned3294 uint32_t 95 95 rtems_assoc_local_by_remote( 96 96 const rtems_assoc_t *ap, 97 u nsigned32remote_value97 uint32_t remote_value 98 98 ) 99 99 { … … 106 106 } 107 107 108 u nsigned32108 uint32_t 109 109 rtems_assoc_remote_by_name( 110 110 const rtems_assoc_t *ap, … … 120 120 } 121 121 122 u nsigned32122 uint32_t 123 123 rtems_assoc_local_by_name( 124 124 const rtems_assoc_t *ap, … … 140 140 141 141 const char *rtems_assoc_name_bad( 142 u nsigned32bad_value142 uint32_t bad_value 143 143 ); 144 144 … … 149 149 rtems_assoc_name_by_local( 150 150 const rtems_assoc_t *ap, 151 u nsigned32local_value151 uint32_t local_value 152 152 ) 153 153 { … … 163 163 rtems_assoc_name_by_remote( 164 164 const rtems_assoc_t *ap, 165 u nsigned32remote_value165 uint32_t remote_value 166 166 ) 167 167 { … … 179 179 */ 180 180 181 u nsigned32rtems_assoc_remote_by_local_bitfield(182 const rtems_assoc_t *ap, 183 u nsigned32local_value184 ) 185 { 186 u nsigned32b;187 u nsigned32remote_value = 0;181 uint32_t rtems_assoc_remote_by_local_bitfield( 182 const rtems_assoc_t *ap, 183 uint32_t local_value 184 ) 185 { 186 uint32_t b; 187 uint32_t remote_value = 0; 188 188 189 189 for (b = 1; b; b <<= 1) … … 195 195 196 196 197 u nsigned32rtems_assoc_local_by_remote_bitfield(198 const rtems_assoc_t *ap, 199 u nsigned32remote_value200 ) 201 { 202 u nsigned32b;203 u nsigned32local_value = 0;197 uint32_t rtems_assoc_local_by_remote_bitfield( 198 const rtems_assoc_t *ap, 199 uint32_t remote_value 200 ) 201 { 202 uint32_t b; 203 uint32_t local_value = 0; 204 204 205 205 for (b = 1; b; b <<= 1) … … 213 213 rtems_assoc_name_by_remote_bitfield( 214 214 const rtems_assoc_t *ap, 215 u nsigned32value,215 uint32_t value, 216 216 char *buffer 217 217 ) 218 218 { 219 u nsigned32b;219 uint32_t b; 220 220 221 221 *buffer = 0; … … 235 235 rtems_assoc_name_by_local_bitfield( 236 236 const rtems_assoc_t *ap, 237 u nsigned32value,237 uint32_t value, 238 238 char *buffer 239 239 ) 240 240 { 241 u nsigned32b;241 uint32_t b; 242 242 243 243 *buffer = 0; -
cpukit/libcsupport/src/assocnamebad.c
rf91bbe64 r83c5fc1 26 26 const char * 27 27 rtems_assoc_name_bad( 28 u nsigned32bad_value28 uint32_t bad_value 29 29 ) 30 30 { -
cpukit/libcsupport/src/error.c
rf91bbe64 r83c5fc1 109 109 110 110 static int rtems_verror( 111 u nsigned32error_flag,111 uint32_t error_flag, 112 112 const char *printf_format, 113 113 va_list arglist -
cpukit/libcsupport/src/libio.c
rf91bbe64 r83c5fc1 49 49 */ 50 50 51 extern u nsigned32rtems_libio_number_iops;51 extern uint32_t rtems_libio_number_iops; 52 52 rtems_id rtems_libio_semaphore; 53 53 rtems_libio_t *rtems_libio_iops; … … 122 122 }; 123 123 124 u nsigned32rtems_libio_fcntl_flags(125 u nsigned32fcntl_flags126 ) 127 { 128 u nsigned32flags = 0;129 u nsigned32access_modes;124 uint32_t rtems_libio_fcntl_flags( 125 uint32_t fcntl_flags 126 ) 127 { 128 uint32_t flags = 0; 129 uint32_t access_modes; 130 130 131 131 /* … … 152 152 */ 153 153 154 u nsigned32rtems_libio_to_fcntl_flags(155 u nsigned32flags156 ) 157 { 158 u nsigned32fcntl_flags = 0;154 uint32_t rtems_libio_to_fcntl_flags( 155 uint32_t flags 156 ) 157 { 158 uint32_t fcntl_flags = 0; 159 159 160 160 if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { -
cpukit/libcsupport/src/libio_sockets.c
rf91bbe64 r83c5fc1 33 33 34 34 /* same as rtems_libio_check_fd(_fd) but different return */ 35 if ((u nsigned32)fd >= rtems_libio_number_iops) {35 if ((uint32_t )fd >= rtems_libio_number_iops) { 36 36 errno = EBADF; 37 37 return NULL; -
cpukit/libcsupport/src/malloc.c
rf91bbe64 r83c5fc1 50 50 51 51 struct { 52 u nsigned32space_available; /* current size of malloc area */53 u nsigned32malloc_calls; /* # calls to malloc */54 u nsigned32free_calls;55 u nsigned32realloc_calls;56 u nsigned32calloc_calls;57 u nsigned32max_depth; /* most ever malloc'd at 1 time */58 u nsigned64lifetime_allocated;59 u nsigned64lifetime_freed;52 uint32_t space_available; /* current size of malloc area */ 53 uint32_t malloc_calls; /* # calls to malloc */ 54 uint32_t free_calls; 55 uint32_t realloc_calls; 56 uint32_t calloc_calls; 57 uint32_t max_depth; /* most ever malloc'd at 1 time */ 58 uint64_t lifetime_allocated; 59 uint64_t lifetime_freed; 60 60 } rtems_malloc_stats; 61 61 … … 72 72 rtems_status_code status; 73 73 void *starting_address; 74 rtems_unsigned32old_address;75 rtems_unsigned32u32_address;74 uint32_t old_address; 75 uint32_t u32_address; 76 76 77 77 /* … … 92 92 u32_address = (unsigned int)sbrk(length); 93 93 94 if (u32_address == ( rtems_unsigned32) -1) {94 if (u32_address == (uint32_t ) -1) { 95 95 rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); 96 96 /* DOES NOT RETURN!!! */ … … 157 157 void *return_this; 158 158 void *starting_address; 159 rtems_unsigned32the_size;160 rtems_unsigned32sbrk_amount;159 uint32_t the_size; 160 uint32_t sbrk_amount; 161 161 rtems_status_code status; 162 162 Chain_Node *to_be_freed; … … 213 213 the_size = ((size + sbrk_amount) / sbrk_amount * sbrk_amount); 214 214 215 if ((( rtems_unsigned32)starting_address = (void *)sbrk(the_size))216 == ( rtems_unsigned32) -1)215 if (((uint32_t )starting_address = (void *)sbrk(the_size)) 216 == (uint32_t ) -1) 217 217 return (void *) 0; 218 218 … … 246 246 if (return_this) 247 247 { 248 u nsigned32actual_size;249 u nsigned32current_depth;248 uint32_t actual_size; 249 uint32_t current_depth; 250 250 status = rtems_region_get_segment_size( 251 251 RTEMS_Malloc_Heap, return_this, &actual_size); … … 290 290 ) 291 291 { 292 rtems_unsigned32old_size;292 uint32_t old_size; 293 293 rtems_status_code status; 294 294 char *new_area; … … 370 370 #ifdef MALLOC_STATS 371 371 { 372 u nsigned32size;372 uint32_t size; 373 373 status = rtems_region_get_segment_size( RTEMS_Malloc_Heap, ptr, &size ); 374 374 if ( status == RTEMS_SUCCESSFUL ) { … … 396 396 void malloc_dump(void) 397 397 { 398 u nsigned32allocated = rtems_malloc_stats.lifetime_allocated -398 uint32_t allocated = rtems_malloc_stats.lifetime_allocated - 399 399 rtems_malloc_stats.lifetime_freed; 400 400 … … 408 408 (unsigned int) rtems_malloc_stats.max_depth / 1024, 409 409 (rtems_malloc_stats.max_depth * 100) / rtems_malloc_stats.space_available, 410 (u nsigned64) rtems_malloc_stats.lifetime_allocated / 1024,411 (u nsigned64) rtems_malloc_stats.lifetime_freed / 1024);410 (uint64_t ) rtems_malloc_stats.lifetime_allocated / 1024, 411 (uint64_t ) rtems_malloc_stats.lifetime_freed / 1024); 412 412 printf(" Call counts: malloc:%d free:%d realloc:%d calloc:%d\n", 413 413 rtems_malloc_stats.malloc_calls, -
cpukit/libcsupport/src/no_libc.c
rf91bbe64 r83c5fc1 36 36 37 37 void libc_global_exit( 38 rtems_unsigned32code38 uint32_t code 39 39 ) 40 40 { -
cpukit/libcsupport/src/termios.c
rf91bbe64 r83c5fc1 788 788 } 789 789 if (tty->termios.c_oflag & OPOST) { 790 u nsigned32count = args->count;791 u nsigned8*buffer = args->buffer;790 uint32_t count = args->count; 791 uint8_t *buffer = args->buffer; 792 792 while (count--) 793 793 oproc (*buffer++, tty); … … 1110 1110 rtems_libio_rw_args_t *args = arg; 1111 1111 struct rtems_termios_tty *tty = args->iop->data1; 1112 u nsigned32count = args->count;1113 u nsigned8*buffer = args->buffer;1112 uint32_t count = args->count; 1113 uint8_t *buffer = args->buffer; 1114 1114 rtems_status_code sc; 1115 1115 -
cpukit/libcsupport/src/termiosreserveresources.c
rf91bbe64 r83c5fc1 17 17 void rtems_termios_reserve_resources ( 18 18 rtems_configuration_table *configuration, 19 rtems_unsigned32number_of_devices19 uint32_t number_of_devices 20 20 ) 21 21 {
Note: See TracChangeset
for help on using the changeset viewer.