Changeset 50f32b11 in rtems


Ignore:
Timestamp:
Apr 18, 2004, 6:05:35 AM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
a0ed4ed
Parents:
05279b84
Message:

Remove stray white spaces.

Location:
cpukit
Files:
115 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/include/chain.h

    r05279b84 r50f32b11  
    11/*  chain.h
    2  * 
     2 *
    33 *  This include file contains all the constants and structures associated
    44 *  with doubly linked chains.  This file actually just provides an
     
    2020#include <rtems.h>
    2121
    22 /* 
     22/*
    2323 *  Chain_Initialize
    2424 *
     
    2727 *  starting_address.  Each node is of node_size bytes.
    2828 *
    29  *  Chain_Control                    *the_chain,                 * IN  * 
    30  *  void                             *starting_address,          * IN  * 
    31  *  uint32_t                    number_nodes,            * IN  * 
    32  *  uint32_t                    node_size                        * IN  * 
     29 *  Chain_Control                    *the_chain,                 * IN  *
     30 *  void                             *starting_address,          * IN  *
     31 *  uint32_t                    number_nodes,            * IN  *
     32 *  uint32_t                    node_size                        * IN  *
    3333 */
    3434
     
    3939
    4040
    41 /* 
     41/*
    4242 *  Chain_Initialize_empty
    4343 *
    4444 *  This routine initializes the specified chain to contain zero nodes.
    4545 *
    46  *  Chain_Control                    *the_chain                  * IN  * 
     46 *  Chain_Control                    *the_chain                  * IN  *
    4747 */
    4848
    4949#define Chain_Initialize_empty( the_chain ) \
    5050       _Chain_Initialize_empty( the_chain )
    51  
     51
    5252
    5353/*
     
    5757 *  and FALSE otherwise.
    5858 *
    59  *  Chain_Node                       *left,                      * IN  * 
    60  *  Chain_Node                       *right                      * IN  * 
    61  */
    62  
     59 *  Chain_Node                       *left,                      * IN  *
     60 *  Chain_Node                       *right                      * IN  *
     61 */
     62
    6363#define Chain_Are_nodes_equal( left, right ) \
    6464       _Chain_Are_nodes_equal( left, right )
    6565
    6666
    67 /* 
     67/*
    6868 *  Chain_Extract_unprotected
    6969 *
     
    7272 *  extract operation.
    7373 *
    74  *  Chain_Node                       *the_node                   * IN  * 
     74 *  Chain_Node                       *the_node                   * IN  *
    7575 */
    7676
     
    7979
    8080
    81 /* 
     81/*
    8282 *  Chain_Extract
    8383 *
     
    8686 *  extract operation.
    8787 *
    88  *  Chain_Node                       *the_node                   * IN  * 
     88 *  Chain_Node                       *the_node                   * IN  *
    8989 */
    9090
     
    9393
    9494
    95 /* 
     95/*
    9696 *  Chain_Get_unprotected
    9797 *
     
    101101 *  get operation.
    102102 *
    103  *  Chain_Control                    *the_chain                  * IN  * 
     103 *  Chain_Control                    *the_chain                  * IN  *
    104104 */
    105105
     
    108108
    109109
    110 /* 
     110/*
    111111 *  Chain_Get
    112112 *
     
    116116 *  get operation.
    117117 *
    118  *  Chain_Control                    *the_chain                  * IN  * 
     118 *  Chain_Control                    *the_chain                  * IN  *
    119119 */
    120120
     
    123123
    124124
    125 /* 
     125/*
    126126 *  Chain_Get_first_unprotected
    127127 *
     
    130130 *  the atomicity of the get operation.
    131131 *
    132  *  Chain_Control                    *the_chain                  * IN  * 
     132 *  Chain_Control                    *the_chain                  * IN  *
    133133 */
    134134
     
    137137
    138138
    139 /* 
     139/*
    140140 *  Chain_Insert_unprotected
    141141 *
     
    144144 *  of the extract operation.
    145145 *
    146  *  Chain_Node                       *after_node,                * IN  * 
    147  *  Chain_Node                       *the_node                   * IN  * 
     146 *  Chain_Node                       *after_node,                * IN  *
     147 *  Chain_Node                       *the_node                   * IN  *
    148148 */
    149149
     
    152152
    153153
    154 /* 
     154/*
    155155 *  Chain_Insert
    156156 *
     
    159159 *  of the extract operation.
    160160 *
    161  *  Chain_Node                       *after_node,                * IN  * 
    162  *  Chain_Node                       *the_node                   * IN  * 
     161 *  Chain_Node                       *after_node,                * IN  *
     162 *  Chain_Node                       *the_node                   * IN  *
    163163 */
    164164
     
    167167
    168168
    169 /* 
     169/*
    170170 *  Chain_Append_unprotected
    171171 *
     
    174174 *  append operation.
    175175 *
    176  *  Chain_Control                    *the_chain,                 * IN  * 
    177  *  Chain_Node                       *the_node                   * IN  * 
     176 *  Chain_Control                    *the_chain,                 * IN  *
     177 *  Chain_Node                       *the_node                   * IN  *
    178178 */
    179179
     
    182182
    183183
    184 /* 
     184/*
    185185 *  Chain_Append
    186186 *
     
    189189 *  append operation.
    190190 *
    191  *  Chain_Control                    *the_chain,                 * IN  * 
    192  *  Chain_Node                       *the_node                   * IN  * 
     191 *  Chain_Control                    *the_chain,                 * IN  *
     192 *  Chain_Node                       *the_node                   * IN  *
    193193 */
    194194
     
    197197
    198198
    199 /* 
     199/*
    200200 *  Chain_Prepend_unprotected
    201201 *
     
    204204 *  prepend operation.
    205205 *
    206  *  Chain_Control                    *the_chain,                 * IN  * 
    207  *  Chain_Node                       *the_node                   * IN  * 
     206 *  Chain_Control                    *the_chain,                 * IN  *
     207 *  Chain_Node                       *the_node                   * IN  *
    208208 */
    209209
     
    212212
    213213
    214 /* 
     214/*
    215215 *  Chain_Prepend
    216216 *
     
    219219 *  prepend operation.
    220220 *
    221  *  Chain_Control                    *the_chain,                 * IN  * 
    222  *  Chain_Node                       *the_node                   * IN  * 
     221 *  Chain_Control                    *the_chain,                 * IN  *
     222 *  Chain_Node                       *the_node                   * IN  *
    223223 */
    224224
     
    227227
    228228
    229 /* 
     229/*
    230230 *  Chain_Head
    231231 *
    232232 *  This function returns a pointer to the first node on the chain.
    233233 *
    234  *  Chain_Control                    *the_chain                  * IN  * 
     234 *  Chain_Control                    *the_chain                  * IN  *
    235235 */
    236236
     
    239239
    240240
    241 /* 
     241/*
    242242 *  Chain_Tail
    243243 *
    244244 *  This function returns a pointer to the last node on the chain.
    245245 *
    246  *  Chain_Control                    *the_chain                  * IN  * 
     246 *  Chain_Control                    *the_chain                  * IN  *
    247247 */
    248248
     
    251251
    252252
    253 /* 
     253/*
    254254 *  Chain_Is_head
    255255 *
     
    257257 *  FALSE otherwise.
    258258 *
    259  *  Chain_Control                    *the_chain,                 * IN  * 
    260  *  Chain_Node                       *the_node                   * IN  * 
     259 *  Chain_Control                    *the_chain,                 * IN  *
     260 *  Chain_Node                       *the_node                   * IN  *
    261261 */
    262262
     
    265265
    266266
    267 /* 
     267/*
    268268 *  Chain_Is_tail
    269269 *
     
    271271 *  FALSE otherwise.
    272272 *
    273  *  Chain_Control                    *the_chain,                 * IN  * 
    274  *  Chain_Node                       *the_node                   * IN  * 
     273 *  Chain_Control                    *the_chain,                 * IN  *
     274 *  Chain_Node                       *the_node                   * IN  *
    275275 */
    276276
     
    279279
    280280
    281 /* 
     281/*
    282282 *  Chain_Is_first
    283283 *
     
    285285 *  FALSE otherwise.
    286286 *
    287  *  Chain_Node                       *the_node                   * IN  * 
     287 *  Chain_Node                       *the_node                   * IN  *
    288288 */
    289289
     
    292292
    293293
    294 /* 
     294/*
    295295 *  Chain_Is_last
    296296 *
     
    298298 *  FALSE otherwise.
    299299 *
    300  *  Chain_Node                       *the_node                   * IN  * 
     300 *  Chain_Node                       *the_node                   * IN  *
    301301 */
    302302
     
    305305
    306306
    307 /* 
     307/*
    308308 *  Chain_Is_empty
    309309 *
     
    311311 *  FALSE otherwise.
    312312 *
    313  *  Chain_Control                    *the_chain                  * IN  * 
     313 *  Chain_Control                    *the_chain                  * IN  *
    314314 */
    315315
     
    318318
    319319
    320 /* 
     320/*
    321321 *  Chain_Has_only_one_node
    322322 *
     
    324324 *  FALSE otherwise.
    325325 *
    326  *  Chain_Control                    *the_chain                  * IN  * 
     326 *  Chain_Control                    *the_chain                  * IN  *
    327327 */
    328328
     
    331331
    332332
    333 /* 
     333/*
    334334 *  Chain_Is_null
    335335 *
    336336 *  This function returns TRUE if the_chain is NULL and FALSE otherwise.
    337337 *
    338  *  Chain_Control                    *the_chain                  * IN  * 
     338 *  Chain_Control                    *the_chain                  * IN  *
    339339 */
    340340
     
    343343
    344344
    345 /* 
     345/*
    346346 *  Chain_Is_null_node
    347347 *
    348348 *  This function returns TRUE if the_node is NULL and FALSE otherwise.
    349349 *
    350  *  Chain_Node                       *the_node                   * IN  * 
     350 *  Chain_Node                       *the_node                   * IN  *
    351351 */
    352352
  • cpukit/libcsupport/include/clockdrv.h

    r05279b84 r50f32b11  
    3030#define CLOCK_DRIVER_TABLE_ENTRY \
    3131  { Clock_initialize, NULL, NULL, NULL, NULL, Clock_control }
    32  
     32
    3333rtems_device_driver Clock_initialize(
    3434  rtems_device_major_number,
  • cpukit/libcsupport/include/motorola/mc68681.h

    r05279b84 r50f32b11  
    8484
    8585
    86 #define  MC68681_CLEAR                                     0x00 
     86#define  MC68681_CLEAR                                     0x00
    8787
    8888#define MC68681_PORT_A                                     0
    8989#define MC68681_PORT_B                                     1
    9090
    91 /* 
    92  *  DUART Command Register Definitions: 
    93  *
    94  *  MC68681_COMMAND_REG_A,MC68681_COMMAND_REG_B       
     91/*
     92 *  DUART Command Register Definitions:
     93 *
     94 *  MC68681_COMMAND_REG_A,MC68681_COMMAND_REG_B
    9595 */
    9696#define MC68681_MODE_REG_ENABLE_RX                          0x01
     
    115115 * Mode Register Definitions
    116116 *
    117  *  MC68681_MODE_REG_1A 
    118  *  MC68681_MODE_REG_1B 
     117 *  MC68681_MODE_REG_1A
     118 *  MC68681_MODE_REG_1B
    119119 */
    120120#define MC68681_5BIT_CHARS                                  0x00
     
    187187
    188188
    189 /* 
    190  * Interupt Status Register Definitions. 
    191  *
    192  * MC68681_INTERRUPT_STATUS_REG         
    193  */
    194 
    195 
    196 /* 
    197  *  Interupt Mask Register Definitions     
    198  *
    199  *  MC68681_INTERRUPT_MASK_REG 
     189/*
     190 * Interupt Status Register Definitions.
     191 *
     192 * MC68681_INTERRUPT_STATUS_REG
     193 */
     194
     195
     196/*
     197 *  Interupt Mask Register Definitions
     198 *
     199 *  MC68681_INTERRUPT_MASK_REG
    200200 */
    201201#define MC68681_IR_TX_READY_A                               0x01
     
    208208#define MC68681_IR_INPUT_PORT_CHANGE                        0x80
    209209
    210 /* 
    211  * Status Register Definitions. 
    212  * 
    213  * MC68681_STATUS_REG_A,MC68681_STATUS_REG_B         
     210/*
     211 * Status Register Definitions.
     212 *
     213 * MC68681_STATUS_REG_A,MC68681_STATUS_REG_B
    214214 */
    215215#define MC68681_STATUS_RXRDY                                0x01
     
    222222#define MC68681_STATUS_RECEIVED_BREAK                       0x80
    223223
    224 /* 
    225  * Definitions for the Interrupt Vector Register: 
    226  *
    227  * MC68681_INTERRUPT_VECTOR_REG 
     224/*
     225 * Definitions for the Interrupt Vector Register:
     226 *
     227 * MC68681_INTERRUPT_VECTOR_REG
    228228 */
    229229#define  MC68681_INTERRUPT_VECTOR_INIT                      0x0f
    230230
    231 /* 
    232  * Definitions for the Auxiliary Control Register 
    233  *
    234  * MC68681_AUX_CTRL_REG 
     231/*
     232 * Definitions for the Auxiliary Control Register
     233 *
     234 * MC68681_AUX_CTRL_REG
    235235 */
    236236#define MC68681_AUX_BRG_SET1                                0x00
     
    238238
    239239
    240 /* 
    241  * The following Baud rates assume the X1 clock pin is driven with a 
     240/*
     241 * The following Baud rates assume the X1 clock pin is driven with a
    242242 * 3.6864 MHz signal.  If a different frequency is used the DUART channel
    243243 * is running at the follwoing baud rate:
    244  *       ((Table Baud Rate)*frequency)/3.6864 MHz 
    245  */
    246 
    247 /* 
    248  * Definitions for the Clock Select Register: 
    249  *
    250  * MC68681_CLOCK_SELECT_REG_A,MC68681_CLOCK_SELECT_REG_A 
    251  * 
     244 *       ((Table Baud Rate)*frequency)/3.6864 MHz
     245 */
     246
     247/*
     248 * Definitions for the Clock Select Register:
     249 *
     250 * MC68681_CLOCK_SELECT_REG_A,MC68681_CLOCK_SELECT_REG_A
     251 *
    252252 * Note:  ACR[7] is the MSB of the Auxiliary Control register
    253253 *        X is the extend bit.
     
    261261#define MC68681_BAUD_RATE_MASK_75           0x00   /* ACR[7]=0,X=0 */
    262262                                                   /* ARC[7]=1,X=1 */
    263 #define MC68681_BAUD_RATE_MASK_110          0x01   
    264 #define MC68681_BAUD_RATE_MASK_134_5        0x02   
     263#define MC68681_BAUD_RATE_MASK_110          0x01
     264#define MC68681_BAUD_RATE_MASK_134_5        0x02
    265265#define MC68681_BAUD_RATE_MASK_150          0x03   /* ACR[7]=0,X=0 */
    266266                                                   /* ARC[7]=1,X=1 */
     
    281281#define MC68681_BAUD_RATE_MASK_3600         0x04   /* ACR[7]=0,X=0 */
    282282                                                   /* ARC[7]=1,X=1 */
    283 #define MC68681_BAUD_RATE_MASK_4800         0x09   
     283#define MC68681_BAUD_RATE_MASK_4800         0x09
    284284#define MC68681_BAUD_RATE_MASK_7200         0x0a   /* ACR[7]=0,X=0 */
    285285                                                   /* ARC[7]=1,X=1 */
    286 #define MC68681_BAUD_RATE_MASK_9600         0xbb   
     286#define MC68681_BAUD_RATE_MASK_9600         0xbb
    287287
    288288#define MC68681_BAUD_RATE_MASK_14_4K        0x05   /* ACR[7]=0,X=0 */
     
    296296#define MC68681_BAUD_RATE_MASK_57_6K        0x07   /* ACR[7]=0,X=0 */
    297297                                                   /* ARC[7]=1,X=1 */
    298 #define MC68681_BAUD_RATE_MASK_115_5K       0x08 
    299 #define MC68681_BAUD_RATE_MASK_TIMER        0xdd   
    300 #define MC68681_BAUD_RATE_MASK_TIMER_16X    0xee   
    301 #define MC68681_BAUD_RATE_MASK_TIMER_1X     0xff   
     298#define MC68681_BAUD_RATE_MASK_115_5K       0x08
     299#define MC68681_BAUD_RATE_MASK_TIMER        0xdd
     300#define MC68681_BAUD_RATE_MASK_TIMER_16X    0xee
     301#define MC68681_BAUD_RATE_MASK_TIMER_1X     0xff
    302302
    303303#endif
  • cpukit/libcsupport/include/ringbuf.h

    r05279b84 r50f32b11  
    11/*
    2  *  ringbuf.h 
     2 *  ringbuf.h
    33 *
    44 *  This file provides simple ring buffer functionality.
     
    2323  do { \
    2424    (_buffer)->head = (_buffer)->tail = 0; \
    25   } while ( 0 ) 
    26  
     25  } while ( 0 )
     26
    2727#define Ring_buffer_Is_empty( _buffer ) \
    2828   ( (_buffer)->head == (_buffer)->tail )
     
    3939      (_buffer)->buffer[ (_buffer)->tail ] = (_ch); \
    4040    rtems_interrupt_enable( isrlevel ); \
    41   } while ( 0 ) 
     41  } while ( 0 )
    4242
    4343#define Ring_buffer_Remove_character( _buffer, _ch ) \
     
    4949      (_ch) = (_buffer)->buffer[ (_buffer)->head ]; \
    5050    rtems_interrupt_enable( isrlevel ); \
    51   } while ( 0 ) 
     51  } while ( 0 )
    5252
    5353#endif
  • cpukit/libcsupport/include/rtems/libio.h

    r05279b84 r50f32b11  
    141141/*
    142142 *  XXX
    143  *  This routine does not allocate any space and rtems_filesystem_freenode_t 
     143 *  This routine does not allocate any space and rtems_filesystem_freenode_t
    144144 *  is not called by the generic after calling this routine.
    145  *  ie. node_access does not have to contain valid data when the 
     145 *  ie. node_access does not have to contain valid data when the
    146146 *      routine returns.
    147147 */
     
    229229
    230230typedef int (*rtems_filesystem_readlink_t)(
    231  rtems_filesystem_location_info_t  *loc,     /* IN  */       
    232  char                              *buf,     /* OUT */       
    233  size_t                            bufsize   
     231 rtems_filesystem_location_info_t  *loc,     /* IN  */
     232 char                              *buf,     /* OUT */
     233 size_t                            bufsize
    234234);
    235235
     
    343343    uint32_t                          flags;
    344344    rtems_filesystem_location_info_t  pathinfo;
    345     Objects_Id                        sem;     
     345    Objects_Id                        sem;
    346346    uint32_t                          data0;     /* private to "driver" */
    347347    void                             *data1;     /* ... */
     
    477477};
    478478
    479 static inline dev_t rtems_filesystem_make_dev_t( 
    480   rtems_device_major_number _major, 
     479static inline dev_t rtems_filesystem_make_dev_t(
     480  rtems_device_major_number _major,
    481481  rtems_device_minor_number _minor
    482482)
  • cpukit/libcsupport/include/rtems/libio_.h

    r05279b84 r50f32b11  
    2222#include <rtems/libio.h>                /* include before standard IO */
    2323
    24 #include <sys/types.h>                 
     24#include <sys/types.h>
    2525
    2626#include <errno.h>
     
    6565   ((!(_iop)) ? -1 : (_iop - rtems_libio_iops))
    6666
    67 /* 
     67/*
    6868 *  rtems_libio_check_is_open
    69  * 
     69 *
    7070 *  Macro to check if a file descriptor is actually open.
    7171 */
     
    191191#include <rtems/userenv.h>
    192192
    193 extern rtems_user_env_t * rtems_current_user_env; 
    194 extern rtems_user_env_t   rtems_global_user_env; 
     193extern rtems_user_env_t * rtems_current_user_env;
     194extern rtems_user_env_t   rtems_global_user_env;
    195195
    196196/*
     
    200200rtems_status_code rtems_libio_set_private_env(void);
    201201rtems_status_code rtems_libio_share_private_env(rtems_id task_id) ;
    202        
     202
    203203/*
    204204 *  File Descriptor Routine Prototypes
  • cpukit/libcsupport/include/rtems/termiostypes.h

    r05279b84 r50f32b11  
    3838  volatile unsigned int Tail;
    3939  volatile unsigned int Size;
    40   rtems_id              Semaphore; 
     40  rtems_id              Semaphore;
    4141};
    4242/*
     
    113113         * I/O task IDs (for task-driven drivers)
    114114         */
    115         rtems_id                rxTaskId; 
    116         rtems_id                txTaskId; 
     115        rtems_id                rxTaskId;
     116        rtems_id                txTaskId;
    117117        /*
    118118         * line discipline related stuff
     
    156156 * put a string to output ring buffer
    157157 */
    158 void rtems_termios_puts (const char *buf, 
    159                          int len, 
     158void rtems_termios_puts (const char *buf,
     159                         int len,
    160160                         struct rtems_termios_tty *tty);
    161161/*
  • cpukit/libcsupport/include/stdint.h

    r05279b84 r50f32b11  
    1 /* 
     1/*
    22 * stdint.h
    33 *
     
    1717
    1818/*
    19  * map RTEMS internal types onto C99 types 
     19 * map RTEMS internal types onto C99 types
    2020 */
    2121typedef signed8        int8_t;
  • cpukit/libcsupport/include/sys/utsname.h

    r05279b84 r50f32b11  
    1 /*  sys/utsname.h 
     1/*  sys/utsname.h
    22 *
    33 *  $Id$
     
    1717 *  4.4.1 Get System Name (Table 4-1), P1003.1b-1993, p. 90
    1818 *
    19  *  NOTE:  The lengths of the strings in this structure are 
     19 *  NOTE:  The lengths of the strings in this structure are
    2020 *         just long enough to reliably contain the RTEMS information.
    21  *         For example, the fields are not long enough to support 
     21 *         For example, the fields are not long enough to support
    2222 *         Internet hostnames.
    2323 */
  • cpukit/libcsupport/src/__times.c

    r05279b84 r50f32b11  
    4242
    4343  /*
    44    *  RTEMS technically has no notion of system versus user time 
     44   *  RTEMS technically has no notion of system versus user time
    4545   *  since there is no separation of OS from application tasks.
    4646   *  But we can at least make a distinction between the number
  • cpukit/libcsupport/src/assoc.c

    r05279b84 r50f32b11  
    2828    if (rtems_assoc_is_default(ap))
    2929        default_ap = ap++;
    30    
     30
    3131    for ( ; ap->name; ap++)
    3232        if (strcmp(ap->name, name) == 0)
     
    4646    if (rtems_assoc_is_default(ap))
    4747        default_ap = ap++;
    48    
     48
    4949    for ( ; ap->name; ap++)
    5050        if (ap->local_value == local_value)
     
    6565    if (rtems_assoc_is_default(ap))
    6666        default_ap = ap++;
    67    
     67
    6868    for ( ; ap->name; ap++)
    6969        if (ap->remote_value == remote_value)
     
    7878 */
    7979
    80 uint32_t 
     80uint32_t
    8181rtems_assoc_remote_by_local(
    8282    const rtems_assoc_t *ap,
     
    8888    if (nap)
    8989        return nap->remote_value;
    90    
    91     return 0;
    92 }
    93 
    94 uint32_t 
     90
     91    return 0;
     92}
     93
     94uint32_t
    9595rtems_assoc_local_by_remote(
    9696    const rtems_assoc_t *ap,
     
    102102    if (nap)
    103103        return nap->local_value;
    104    
    105     return 0;
    106 }
    107 
    108 uint32_t 
     104
     105    return 0;
     106}
     107
     108uint32_t
    109109rtems_assoc_remote_by_name(
    110110    const rtems_assoc_t *ap,
     
    116116    if (nap)
    117117        return nap->remote_value;
    118    
    119     return 0;
    120 }
    121 
    122 uint32_t 
     118
     119    return 0;
     120}
     121
     122uint32_t
    123123rtems_assoc_local_by_name(
    124124    const rtems_assoc_t *ap,
     
    130130    if (nap)
    131131        return nap->local_value;
    132    
     132
    133133    return 0;
    134134}
     
    156156    if (nap)
    157157        return nap->name;
    158    
     158
    159159    return rtems_assoc_name_bad(local_value);
    160160}
     
    170170    if (nap)
    171171        return nap->name;
    172    
     172
    173173    return rtems_assoc_name_bad(remote_value);
    174174}
     
    183183    uint32_t       local_value
    184184  )
    185 { 
     185{
    186186    uint32_t   b;
    187187    uint32_t   remote_value = 0;
     
    190190        if (b & local_value)
    191191            remote_value |= rtems_assoc_remote_by_local(ap, b);
    192        
     192
    193193    return remote_value;
    194194}
     
    199199    uint32_t       remote_value
    200200  )
    201 { 
     201{
    202202    uint32_t   b;
    203203    uint32_t   local_value = 0;
     
    206206        if (b & remote_value)
    207207            local_value |= rtems_assoc_local_by_remote(ap, b);
    208        
     208
    209209    return local_value;
    210210}
     
    216216    char          *buffer
    217217  )
    218 { 
     218{
    219219    uint32_t   b;
    220220
     
    228228            strcat(buffer, rtems_assoc_name_by_remote(ap, b));
    229229        }
    230        
     230
    231231    return buffer;
    232232}
     
    238238    char          *buffer
    239239  )
    240 { 
     240{
    241241    uint32_t   b;
    242242
     
    250250            strcat(buffer, rtems_assoc_name_by_local(ap, b));
    251251        }
    252        
     252
    253253    return buffer;
    254254}
  • cpukit/libcsupport/src/base_fs.c

    r05279b84 r50f32b11  
    3636 *
    3737 *  Initialize the foundation of the file system.  This is specified
    38  *  by the structure rtems_filesystem_mount_table.  The usual 
     38 *  by the structure rtems_filesystem_mount_table.  The usual
    3939 *  configuration is a single instantiation of the IMFS or miniIMFS with
    4040 *  a single "/dev" directory in it.
     
    5151  rtems_filesystem_mount_table_t       *mt;
    5252  rtems_filesystem_location_info_t              loc;
    53  
     53
    5454  /*
    5555   *  Set the default umask to "022".
     
    126126  /*
    127127   *  This code if if'ed 0 out because you can't mount another
    128    *  filesystem properly until the mount point it will be 
    129    *  mounted onto is created.  Moreover, if it is going to 
     128   *  filesystem properly until the mount point it will be
     129   *  mounted onto is created.  Moreover, if it is going to
    130130   *  use a device, then it is REALLY unfair to attempt this
    131131   *  before device drivers are initialized.
  • cpukit/libcsupport/src/chdir.c

    r05279b84 r50f32b11  
    1 /* 
     1/*
    22 *  chdir() - POSIX 1003.1b - 5.2.1 - Change Current Working Directory
    33 *
     
    3535   */
    3636
    37   result = rtems_filesystem_evaluate_path( 
     37  result = rtems_filesystem_evaluate_path(
    3838    pathname, RTEMS_LIBIO_PERMS_SEARCH, &loc, TRUE );
    3939  if ( result != 0 )
     
    5353    rtems_set_errno_and_return_minus_one( ENOTDIR );
    5454  }
    55  
     55
    5656  rtems_filesystem_freenode( &rtems_filesystem_current );
    57    
     57
    5858  rtems_filesystem_current = loc;
    59  
     59
    6060  return 0;
    6161}
  • cpukit/libcsupport/src/chmod.c

    r05279b84 r50f32b11  
    3838  if ( status != 0 )
    3939    return -1;
    40  
     40
    4141  if ( !loc.handlers ){
    4242    rtems_filesystem_freenode( &loc );
     
    5252
    5353  rtems_filesystem_freenode( &loc );
    54  
     54
    5555  return result;
    5656}
  • cpukit/libcsupport/src/chown.c

    r05279b84 r50f32b11  
    3636  if ( rtems_filesystem_evaluate_path( path, 0x00, &loc, TRUE ) )
    3737    return -1;
    38  
     38
    3939  if ( !loc.ops->chown_h ) {
    4040    rtems_filesystem_freenode( &loc );
     
    4545
    4646  rtems_filesystem_freenode( &loc );
    47  
     47
    4848  return result;
    4949}
  • cpukit/libcsupport/src/chroot.c

    r05279b84 r50f32b11  
    1 /* 
     1/*
    22 *  chroot() -  Change Root Directory
    33 *  Author: fernando.ruiz@ctv.es
     
    3131  int                               result;
    3232  rtems_filesystem_location_info_t  loc;
    33  
     33
    3434  /* an automatic call to new private env the first time */
    3535  if (rtems_current_user_env == &rtems_global_user_env) {
     
    3737   if (rtems_current_user_env == &rtems_global_user_env) /* not ok */
    3838    rtems_set_errno_and_return_minus_one( ENOTSUP );
    39   }; 
     39  };
    4040
    4141  result = chdir(pathname);
  • cpukit/libcsupport/src/closedir.c

    r05279b84 r50f32b11  
    44 *  This was copied from Newlib 1.8.0.
    55 *
    6  * 
     6 *
    77 * Copyright (c) 1983 Regents of the University of California.
    88 * All rights reserved.
  • cpukit/libcsupport/src/dup2.c

    r05279b84 r50f32b11  
    4848   *  This fcntl handles everything else.
    4949   */
    50  
     50
    5151  return fcntl( fildes, F_DUPFD, fildes2 );
    5252}
  • cpukit/libcsupport/src/envlock.c

    r05279b84 r50f32b11  
    11/*
    22 *  Author: Till Straumann <strauman@slac.stanford.edu>, 3/2002
    3  * 
     3 *
    44 *  $Id$
    55 */
     
    3434 *    findenv_r(), setenv_r(), and unsetenv_r() which are called by
    3535 *    getenv(), getenv_r(), setenv(), and unsetenv().
    36  * 
     36 *
    3737 */
    3838
  • cpukit/libcsupport/src/error.c

    r05279b84 r50f32b11  
    1414 * rtems_error reports an error to stderr and allows use of
    1515 * printf style formatting.  A newline is appended to all messages.
    16  * 
     16 *
    1717 * error_flag can be specified as any of the following:
    1818 *
     
    2222 *
    2323 * It can also include a rtems_status value which can be OR'd
    24  * with the above flags. * 
     24 * with the above flags. *
    2525 *
    2626 * EXAMPLE
     
    136136    if (_System_state_Is_multiprocessing)
    137137        fprintf(stderr, "[%d] ", _Configuration_MP_table->node);
    138    
     138
    139139    if (rtems_progname && *rtems_progname)
    140140        chars_written += fprintf(stderr, "%s: ", rtems_progname);
    141141    chars_written += vfprintf(stderr, printf_format, arglist);
    142    
     142
    143143    if (status)
    144144        chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status));
     
    151151        chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
    152152    }
    153    
     153
    154154    chars_written += fprintf(stderr, "\n");
    155155
     
    177177 * error_flag is as above; printf_format is a normal
    178178 * printf(3) format string, with its concommitant arguments.
    179  * 
     179 *
    180180 * Returns the number of characters written.
    181181 */
     
    193193    chars_written = rtems_verror(error_flag, printf_format, arglist);
    194194    va_end(arglist);
    195    
     195
    196196    return chars_written;
    197197}
    198198
    199 /* 
     199/*
    200200 * rtems_panic is shorthand for rtems_error(RTEMS_ERROR_PANIC, ...)
    201201 */
  • cpukit/libcsupport/src/eval.c

    r05279b84 r50f32b11  
    4242  if ( !pathloc )
    4343    rtems_set_errno_and_return_minus_one( EIO );       /* should never happen */
    44  
     44
    4545  /*
    4646   * Evaluate the path using the optable evalpath.
     
    8181         * should probably free pathloc in either case:
    8282         *  - if the link evaluation fails, it must free the
    83          *    original (valid) pathloc because we are going 
     83         *    original (valid) pathloc because we are going
    8484         *    to return -1 and hence the FS generics won't
    8585         *    cleanup pathloc.
     
    9191
    9292        result =  (*pathloc->ops->eval_link_h)( pathloc, flags );
    93  
     93
    9494    }
    9595  }
     
    109109  if ( !pathloc )
    110110    rtems_set_errno_and_return_minus_one( EIO );       /* should never happen */
    111  
     111
    112112  if ( !pathloc->ops->evalpath_h )
    113113    rtems_set_errno_and_return_minus_one( ENOTSUP );
  • cpukit/libcsupport/src/fchdir.c

    r05279b84 r50f32b11  
    3131  rtems_libio_t *iop;
    3232  rtems_filesystem_location_info_t loc, saved;
    33  
     33
    3434  rtems_libio_check_fd( fd );
    3535  iop = rtems_libio_iop( fd );
     
    5858    rtems_set_errno_and_return_minus_one( ENOTDIR );
    5959  }
    60  
     60
    6161
    6262  /*
     
    7272   *         be synchronized!
    7373   */
    74  
     74
    7575  saved                    = rtems_filesystem_current;
    7676  rtems_filesystem_current = iop->pathinfo;
    77  
     77
    7878  /* clone the current node */
    7979  if (rtems_filesystem_evaluate_path(".", 0, &loc, 0)) {
     
    8686
    8787  rtems_filesystem_current = loc;
    88  
     88
    8989  return 0;
    9090}
  • cpukit/libcsupport/src/fchmod.c

    r05279b84 r50f32b11  
    3131{
    3232  rtems_libio_t *iop;
    33  
     33
    3434  rtems_libio_check_fd( fd );
    3535  iop = rtems_libio_iop( fd );
  • cpukit/libcsupport/src/fcntl.c

    r05279b84 r50f32b11  
    3636  int            mask;
    3737  int            ret = 0;
    38  
     38
    3939  rtems_libio_check_fd( fd );
    4040  iop = rtems_libio_iop( fd );
     
    7979       *  If this argument is 1, then the file descriptor is to be closed
    8080       *  if a new process is exec()'ed.  Since RTEMS does not support
    81        *  processes, then we can ignore this one except to make 
     81       *  processes, then we can ignore this one except to make
    8282       *  F_GETFD work.
    8383       */
     
    137137  /*
    138138   *  If we got this far successfully, then we give the optional
    139    *  filesystem specific handler a chance to process this. 
     139   *  filesystem specific handler a chance to process this.
    140140   */
    141141
    142   if (ret >= 0) {   
     142  if (ret >= 0) {
    143143    if (iop->handlers->fcntl_h) {
    144144      int err = (*iop->handlers->fcntl_h)( cmd, iop );
  • cpukit/libcsupport/src/ftruncate.c

    r05279b84 r50f32b11  
    2929  rtems_libio_t                    *iop;
    3030  rtems_filesystem_location_info_t  loc;
    31  
     31
    3232  rtems_libio_check_fd( fd );
    3333  iop = rtems_libio_iop( fd );
     
    3737   *  Now process the ftruncate() request.
    3838   */
    39  
     39
    4040  /*
    4141   *  Make sure we are not working on a directory
     
    4545  if ( !loc.ops->node_type_h )
    4646    rtems_set_errno_and_return_minus_one( ENOTSUP );
    47    
     47
    4848  if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY )
    4949    rtems_set_errno_and_return_minus_one( EISDIR );
  • cpukit/libcsupport/src/getdents.c

    r05279b84 r50f32b11  
    4848  if ( !loc.ops->node_type_h )
    4949    rtems_set_errno_and_return_minus_one( ENOTSUP );
    50    
     50
    5151  if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
    5252    rtems_set_errno_and_return_minus_one( ENOTDIR );
  • cpukit/libcsupport/src/getegid.c

    r05279b84 r50f32b11  
    2323/*PAGE
    2424 *
    25  *  4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, 
     25 *  4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
    2626 *        P1003.1b-1993, p. 84
    2727 */
  • cpukit/libcsupport/src/geteuid.c

    r05279b84 r50f32b11  
    2424/*PAGE
    2525 *
    26  *  4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, 
     26 *  4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
    2727 *        P1003.1b-1993, p. 84
    2828 */
  • cpukit/libcsupport/src/getgid.c

    r05279b84 r50f32b11  
    1919/*
    2020 * MACRO in userenv.h
    21  * 
     21 *
    2222gid_t _POSIX_types_Gid = 0;
    2323*/
     
    2525/*PAGE
    2626 *
    27  *  4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, 
     27 *  4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
    2828 *        P1003.1b-1993, p. 84
    2929 */
  • cpukit/libcsupport/src/getlogin.c

    r05279b84 r50f32b11  
    2929/*
    3030 * MACRO in userenv.h
    31  * 
     31 *
    3232static char _POSIX_types_Getlogin_buffer[ LOGIN_NAME_MAX ];
    3333*/
     
    5151)
    5252{
    53   struct passwd *pw;   
     53  struct passwd *pw;
    5454  if ( namesize < LOGIN_NAME_MAX )
    5555    return ERANGE;
  • cpukit/libcsupport/src/getpwent.c

    r05279b84 r50f32b11  
    227227}
    228228
    229 struct passwd *getpwnam( 
     229struct passwd *getpwnam(
    230230  const char *name
    231231)
     
    386386}
    387387
    388 struct group *getgrnam( 
     388struct group *getgrnam(
    389389  const char *name
    390390)
  • cpukit/libcsupport/src/getuid.c

    r05279b84 r50f32b11  
    1717#include <rtems/userenv.h>
    1818
    19 /* 
    20  * MACRO in userenv.h 
     19/*
     20 * MACRO in userenv.h
    2121 *
    2222uid_t _POSIX_types_Uid = 0;
     
    2525/*PAGE
    2626 *
    27  *  4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, 
     27 *  4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
    2828 *        P1003.1b-1993, p. 84
    2929 */
  • cpukit/libcsupport/src/gxx_wrappers.c

    r05279b84 r50f32b11  
    1414 * module implementation.
    1515 *
    16  * 
     16 *
    1717 */
    1818
     
    3333#include <rtems/rtems/tasks.h>
    3434
    35 /* 
     35/*
    3636 * These typedefs should match with the ones defined in the file
    3737 * gcc/gthr-rtems.h in the gcc distribution.
     
    5252static rtems_id get_tid( void )
    5353{
    54    rtems_id id = 0; 
     54   rtems_id id = 0;
    5555   rtems_task_ident( RTEMS_SELF, 0, &id );
    5656   return id;
     
    8383  /* Ok, this can be a bit tricky. We are going to return a "key" as a
    8484   * pointer to the buffer that will hold the value of the key itself.
    85    * We have to to this, becuase the others functions on this interface 
     85   * We have to to this, becuase the others functions on this interface
    8686   * deal with the value of the key, as used with the POSIX API.
    8787   */
     
    196196  printk( "gxx_wrappers: lock mutex=%X\n", *mutex );
    197197#endif
    198   return ( rtems_semaphore_obtain( (rtems_id)*mutex, 
     198  return ( rtems_semaphore_obtain( (rtems_id)*mutex,
    199199            RTEMS_WAIT, RTEMS_NO_TIMEOUT ) ==  RTEMS_SUCCESSFUL) ? 0 : -1;
    200200}
     
    205205  printk( "gxx_wrappers: trylock mutex=%X\n", *mutex );
    206206#endif
    207   return (rtems_semaphore_obtain ((rtems_id)*mutex, 
     207  return (rtems_semaphore_obtain ((rtems_id)*mutex,
    208208               RTEMS_NO_WAIT, 0) == RTEMS_SUCCESSFUL) ? 0 : -1;
    209209}
  • cpukit/libcsupport/src/ioctl.c

    r05279b84 r50f32b11  
    3030  int  command,
    3131  ...
    32 ) 
    33 { 
     32)
     33{
    3434  va_list            ap;
    3535  rtems_status_code  rc;
  • cpukit/libcsupport/src/isatty.c

    r05279b84 r50f32b11  
    22 *  COPYRIGHT (c) 1989-1999.
    33 *  On-Line Applications Research Corporation (OAR).
    4  * 
     4 *
    55 *  The license and distribution terms for this file may be
    66 *  found in the file LICENSE in this distribution or at
  • cpukit/libcsupport/src/libio.c

    r05279b84 r50f32b11  
    4545#include <rtems/libio.h>                /* libio.h not pulled in by rtems */
    4646
    47 /*                           
     47/*
    4848 *  File descriptor Table Information
    49  */         
     49 */
    5050
    5151extern uint32_t    rtems_libio_number_iops;
     
    103103/*
    104104 *  rtems_libio_fcntl_flags
    105  * 
     105 *
    106106 *  Convert UNIX fnctl(2) flags to ones that RTEMS drivers understand
    107107 */
     
    132132   * Access mode is a small integer
    133133   */
    134  
     134
    135135  access_modes = fcntl_flags & O_ACCMODE;
    136136  fcntl_flags &= ~O_ACCMODE;
     
    148148/*
    149149 *  rtems_libio_to_fcntl_flags
    150  * 
     150 *
    151151 *  Convert RTEMS internal flags to UNIX fnctl(2) flags
    152152 */
     
    184184 *  rtems_libio_allocate
    185185 *
    186  *  This routine searches the IOP Table for an unused entry.  If it 
     186 *  This routine searches the IOP Table for an unused entry.  If it
    187187 *  finds one, it returns it.  Otherwise, it returns NULL.
    188188 */
     
    192192  rtems_libio_t *iop, *next;
    193193  rtems_status_code rc;
    194  
     194
    195195  rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
    196196
     
    212212    goto done;
    213213  }
    214  
     214
    215215failed:
    216216  iop = 0;
    217  
     217
    218218done:
    219219  rtems_semaphore_release( rtems_libio_semaphore );
     
    251251 *  file system that we are trying to dismount.
    252252 *
    253  *  If there is at least one node in the file system referenced by the mount 
     253 *  If there is at least one node in the file system referenced by the mount
    254254 *  table entry a 1 is returned, otherwise a 0 is returned.
    255255 */
     
    264264
    265265  rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
    266              
     266
    267267  /*
    268268   *  Look for any active file descriptor entry.
    269    */         
    270      
     269   */
     270
    271271  for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
    272        
     272
    273273    if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) {
    274        
     274
    275275       /*
    276276        *  Check if this node is under the file system that we
     
    286286
    287287  rtems_semaphore_release( rtems_libio_semaphore );
    288  
     288
    289289  return result;
    290290}
     
    295295 *  This routine scans the entire file descriptor table to determine if the
    296296 *  given file refers to an active file descriptor.
    297  * 
     297 *
    298298 *  If the given file is open a 1 is returned, otherwise a 0 is returned.
    299299 */
     
    312312   *  Look for any active file descriptor entry.
    313313   */
    314  
    315  for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){ 
     314
     315 for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
    316316    if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) {
    317  
     317
    318318       /*
    319319        *  Check if this node is under the file system that we
  • cpukit/libcsupport/src/link.c

    r05279b84 r50f32b11  
    7777
    7878  result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start );
    79  
     79
    8080  rtems_filesystem_freenode( &existing_loc );
    8181  rtems_filesystem_freenode( &parent_loc );
  • cpukit/libcsupport/src/lseek.c

    r05279b84 r50f32b11  
    9090#include <reent.h>
    9191
    92 off_t _lseek_r( 
     92off_t _lseek_r(
    9393  struct _reent *ptr,
    9494  int            fd,
  • cpukit/libcsupport/src/malloc.c

    r05279b84 r50f32b11  
    113113  /*
    114114   *  If the BSP is not clearing out the workspace, then it is most likely
    115    *  not clearing out the initial memory for the heap.  There is no 
     115   *  not clearing out the initial memory for the heap.  There is no
    116116   *  standard supporting zeroing out the heap memory.  But much code
    117117   *  with UNIX history seems to assume that memory malloc'ed during
     
    146146  (void) memset( &rtems_malloc_stats, 0, sizeof(rtems_malloc_stats) );
    147147#endif
    148  
     148
    149149  MSBUMP(space_available, length);
    150150}
     
    174174    if (_Thread_Dispatch_disable_level > 0)
    175175      return (void *) 0;
    176  
     176
    177177    if (_ISR_Nest_level > 0)
    178178      return (void *) 0;
    179179  }
    180  
     180
    181181  /*
    182182   *  If some free's have been deferred, then do them now.
     
    213213    the_size = ((size + sbrk_amount) / sbrk_amount * sbrk_amount);
    214214
    215     if ((starting_address = (void *)sbrk(the_size)) 
     215    if ((starting_address = (void *)sbrk(the_size))
    216216            == (void*) -1)
    217217      return (void *) 0;
     
    227227      return (void *) 0;
    228228    }
    229    
     229
    230230    MSBUMP(space_available, the_size);
    231231
     
    303303    if (_Thread_Dispatch_disable_level > 0)
    304304      return (void *) 0;
    305  
     305
    306306    if (_ISR_Nest_level > 0)
    307307      return (void *) 0;
    308308  }
    309  
     309
    310310  /*
    311311   * Continue with calloc().
     
    320320
    321321  new_area = malloc( size );
    322  
     322
    323323  MSBUMP(malloc_calls, -1);   /* subtract off the malloc */
    324324
    325325  /*
    326    *  There used to be a free on this error case but it is wrong to 
     326   *  There used to be a free on this error case but it is wrong to
    327327   *  free the memory per OpenGroup Single UNIX Specification V2
    328328   *  and the C Standard.
     
    367367    }
    368368  }
    369  
     369
    370370#ifdef MALLOC_STATS
    371371  {
     
    377377  }
    378378#endif
    379  
     379
    380380  status = rtems_region_return_segment( RTEMS_Malloc_Heap, ptr );
    381381  if ( status != RTEMS_SUCCESSFUL ) {
     
    422422   register Region_Control *the_region;
    423423   Objects_Locations        location;
    424  
     424
    425425  _RTEMS_Lock_allocator();                      /* to prevent deletion */
    426426   the_region = _Region_Get( RTEMS_Malloc_Heap, &location );
     
    438438   return;
    439439}
    440  
     440
    441441void malloc_walk(size_t source, size_t printf_enabled)
    442442{
  • cpukit/libcsupport/src/mknod.c

    r05279b84 r50f32b11  
    44 *  This routine is not defined in the POSIX 1003.1b standard but is
    55 *  commonly supported on most UNIX and POSIX systems.  It is the
    6  *  foundation for creating file system objects. 
     6 *  foundation for creating file system objects.
    77 *
    88 *  COPYRIGHT (c) 1989-1999.
     
    4343  if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) )
    4444    rtems_set_errno_and_return_minus_one( EINVAL );
    45  
     45
    4646  if ( S_ISFIFO(mode) )
    4747    rtems_set_errno_and_return_minus_one( ENOTSUP );
     
    5353  }
    5454
    55   result = (*temp_loc.ops->evalformake_h)( 
     55  result = (*temp_loc.ops->evalformake_h)(
    5656    &pathname[i],
    57     &temp_loc, 
     57    &temp_loc,
    5858    &name_start
    5959  );
  • cpukit/libcsupport/src/mount.c

    r05279b84 r50f32b11  
    44 *  XXX
    55 *
    6  *  XXX make sure no required ops are NULL 
    7  *  XXX make sure no optional ops you are using are NULL 
     6 *  XXX make sure no required ops are NULL
     7 *  XXX make sure no optional ops you are using are NULL
    88 *  XXX unmount should be required.
    99 *
     
    5656 *  mount
    5757 *
    58  *  This routine will attempt to mount a new file system at the specified 
    59  *  mount point. A series of tests will be run to determine if any of the 
     58 *  This routine will attempt to mount a new file system at the specified
     59 *  mount point. A series of tests will be run to determine if any of the
    6060 *  following reasons exist to prevent the mount operation:
    6161 *
     
    9696   */
    9797
    98   if ( options != RTEMS_FILESYSTEM_READ_ONLY && 
     98  if ( options != RTEMS_FILESYSTEM_READ_ONLY &&
    9999       options != RTEMS_FILESYSTEM_READ_WRITE ) {
    100100    errno = EINVAL;
     
    110110
    111111  /*
    112    * Allocate a mount table entry 
     112   * Allocate a mount table entry
    113113   */
    114114
     
    134134  /*
    135135   *  The mount_point should be a directory with read/write/execute
    136    *  permissions in the existing tree. 
     136   *  permissions in the existing tree.
    137137   */
    138138
    139139  if ( mount_point ) {
    140140
    141     if ( rtems_filesystem_evaluate_path( 
     141    if ( rtems_filesystem_evaluate_path(
    142142            mount_point, RTEMS_LIBIO_PERMS_RWX, &loc, TRUE ) == -1 )
    143143      goto cleanup_and_bail;
     
    154154    }
    155155
    156     /* 
     156    /*
    157157     *  Test to see if it is a directory
    158158     */
    159159
    160160    if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
    161       errno = ENOTDIR; 
     161      errno = ENOTDIR;
    162162      goto cleanup_and_bail;
    163163    }
     
    171171      goto cleanup_and_bail;
    172172    }
    173  
     173
    174174    /*
    175175     *  This must be a good mount point, so move the location information
    176176     *  into the allocated mount entry.  Note:  the information that
    177      *  may have been allocated in loc should not be sent to freenode 
     177     *  may have been allocated in loc should not be sent to freenode
    178178     *  until the system is unmounted.  It may be needed to correctly
    179179     *  traverse the tree.
     
    185185    temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry;
    186186
    187     /* 
    188      *  This link to the parent is only done when we are dealing with system 
    189      *  below the base file system 
     187    /*
     188     *  This link to the parent is only done when we are dealing with system
     189     *  below the base file system
    190190     */
    191191
     
    200200  } else {
    201201
    202     /* 
    203      *  This is a mount of the base file system --> The 
    204      *  mt_point_node.node_access will be set to null to indicate that this 
     202    /*
     203     *  This is a mount of the base file system --> The
     204     *  mt_point_node.node_access will be set to null to indicate that this
    205205     *  is the root of the entire file system.
    206206     */
     
    225225
    226226  /*
    227    *  Add the mount table entry to the mount table chain 
     227   *  Add the mount table entry to the mount table chain
    228228   */
    229229
     
    237237
    238238  free( temp_mt_entry );
    239  
     239
    240240  if ( loc_to_free )
    241241    rtems_filesystem_freenode( loc_to_free );
     
    265265 *  mount table chain. For each entry in the mount table chain it will
    266266 *  compare the mount tables root node to the node describing the selected
    267  *  mount point. If any match is found true is returned else false is 
     267 *  mount point. If any match is found true is returned else false is
    268268 *  returned.
    269269 *
     
    277277  rtems_filesystem_mount_table_entry_t *the_mount_entry;
    278278
    279   /* 
    280    * For each mount table entry 
     279  /*
     280   * For each mount table entry
    281281   */
    282282
  • cpukit/libcsupport/src/newlibc.c

    r05279b84 r50f32b11  
    4242 *        Not sure if this is a problem with hpux, newlib, or something else.
    4343 */
    44  
     44
    4545#if defined(RTEMS_UNIX) && !defined(hpux)
    4646#define NEED_SETVBUF
    4747#endif
    48  
     48
    4949#include <stdio.h>
    5050
     
    6666{
    6767  /*
    68    *  In case RTEMS is already down, don't do this.  It could be 
     68   *  In case RTEMS is already down, don't do this.  It could be
    6969   *  dangerous.
    7070   */
     
    8888      _REENT = &libc_global_reent;
    8989  }
    90  
     90
    9191  /*
    9292   * Try to drain output buffers.
     
    101101}
    102102
    103 /* 
     103/*
    104104 * reent struct allocation moved here from libc_start_hook() to avoid
    105105 * mutual exclusion problems when memory is allocated from the start hook.
     
    130130
    131131  if (ptr)
    132   {   
    133  
     132  {
     133
    134134#ifdef __GNUC__
    135135      /* GCC extension: structure constants */
    136136      _REENT_INIT_PTR((ptr));
    137137#else
    138       /* 
    139        *  WARNING: THIS IS VERY DEPENDENT ON NEWLIB!!! 
     138      /*
     139       *  WARNING: THIS IS VERY DEPENDENT ON NEWLIB!!!
    140140       *           Last visual check was against newlib 1.8.2 but last known
    141141       *           use was against 1.7.0.  This is basically an exansion of
     
    172172 * Called for all user TASKS (system tasks are MPCI Receive Server and IDLE)
    173173 */
    174  
     174
    175175#ifdef NEED_SETVBUF
    176176rtems_extension libc_begin_hook(rtems_tcb *current_task)
     
    249249    /*
    250250     *  Just in case there are some buffers lying around.
    251      */ 
     251     */
    252252    _fwalk(ptr, newlib_free_buffers);
    253253#if REENT_MALLOCED
  • cpukit/libcsupport/src/no_posix.c

    r05279b84 r50f32b11  
    5353 *
    5454 *  $Id$
    55  */ 
     55 */
    5656
    5757#include <time.h>
    58 #include <unistd.h> 
     58#include <unistd.h>
    5959
    6060#include <rtems.h>
  • cpukit/libcsupport/src/open.c

    r05279b84 r50f32b11  
    3737 *    EINVAL   - This implementation does not support synchronized IO for this
    3838 *               file.
    39  *    EISDIR   - The named file is a directory and the flags argument 
     39 *    EISDIR   - The named file is a directory and the flags argument
    4040 *               specified write or read/write access.
    4141 *    EMFILE   - Too many file descriptors are in used by this process.
    42  *    ENAMETOOLONG - 
     42 *    ENAMETOOLONG -
    4343 *               The length of the path exceeds PATH_MAX or a pathname
    4444 *               component is longer than NAME_MAX while POSIX_NO_TRUNC
     
    7575
    7676  /*
    77    * Set the Evaluation flags 
     77   * Set the Evaluation flags
    7878   */
    7979
     
    8585    eval_flags |= RTEMS_LIBIO_PERMS_WRITE;
    8686
    87  
     87
    8888  va_start(ap, flags);
    8989
     
    161161  if ( !iop->handlers->open_h ) {
    162162    rc = ENOTSUP;
    163     goto done; 
     163    goto done;
    164164  }
    165165
     
    181181    }
    182182  }
    183    
     183
    184184  /*
    185185   *  Single exit and clean up path.
  • cpukit/libcsupport/src/opendir.c

    r05279b84 r50f32b11  
    44 *  This was copied from Newlib 1.8.0.
    55 *
    6  * 
     6 *
    77 * Copyright (c) 1983 Regents of the University of California.
    88 * All rights reserved.
  • cpukit/libcsupport/src/printk.c

    r05279b84 r50f32b11  
    3232| Global Variables: None.
    3333|        Arguments: num - number to print, base - base used to print the number.
    34 |          Returns: Nothing. 
     34|          Returns: Nothing.
    3535+--------------------------------------------------------------------------*/
    3636static void
     
    4646    if (maxwidth) maxwidth--;
    4747  }
    48  
     48
    4949  count = 0;
    5050  while ((n = num / base) > 0) {
     
    7171| Global Variables: None.
    7272|        Arguments: as in printf: fmt - format string, ... - unnamed arguments.
    73 |          Returns: Nothing. 
     73|          Returns: Nothing.
    7474+--------------------------------------------------------------------------*/
    7575void
     
    8181
    8282  /* _CPU_ISR_Disable(level); */
    83  
     83
    8484  for (; *fmt != '\0'; fmt++)
    8585  {
     
    115115        case 'x': case 'X': base = 16; sign = 0; break;
    116116        case 's':
    117           for (str = va_arg(ap, char *); *str; str++) 
     117          for (str = va_arg(ap, char *); *str; str++)
    118118            BSP_output_char(*str);
    119119          break;
     
    151151{
    152152  va_list  ap;      /* points to each unnamed argument in turn */
    153  
     153
    154154  va_start(ap, fmt); /* make ap point to 1st unnamed arg */
    155155  vprintk(fmt, ap);
  • cpukit/libcsupport/src/privateenv.c

    r05279b84 r50f32b11  
    3939  rtems_user_env_t *env = (rtems_user_env_t*) venv ;
    4040
    41         if (env != &rtems_global_user_env 
     41        if (env != &rtems_global_user_env
    4242#ifdef HAVE_USERENV_REFCNT
    4343                && --env->refcnt <= 0
     
    7777   }
    7878   rtems_current_user_env = tmp;
    79   }; 
     79  };
    8080
    8181  *rtems_current_user_env = rtems_global_user_env; /* get the global values*/
    8282  rtems_current_user_env->task_id=task_id;         /* mark the local values*/
    83  
     83
    8484  /* get a clean root */
    8585  rtems_filesystem_root    = THE_ROOT_FS_LOC;
     
    128128
    129129  if (rtems_current_user_env->task_id==current_task_id) {
    130    /* kill the current user env & task_var*/     
     130   /* kill the current user env & task_var*/
    131131        rtems_user_env_t        *tmp = rtems_current_user_env;
    132132   sc = rtems_task_variable_delete(RTEMS_SELF,(void*)&rtems_current_user_env);
    133133   if (sc != RTEMS_SUCCESSFUL) return sc;
    134    free_user_env(tmp);   
     134   free_user_env(tmp);
    135135  };
    136136
     
    145145  if (sc != RTEMS_SUCCESSFUL)
    146146    goto bailout;
    147  
     147
    148148  /* the current_user_env is the same pointer that remote env */
    149149  rtems_current_user_env = shared_user_env;
  • cpukit/libcsupport/src/readdir.c

    r05279b84 r50f32b11  
    44 *  This was copied from Newlib 1.8.0.
    55 *
    6  * 
     6 *
    77 * Copyright (c) 1983 Regents of the University of California.
    88 * All rights reserved.
     
    6060register DIR *dirp; {
    6161  register struct dirent *dp;
    62  
     62
    6363  if ( !dirp )
    6464    return NULL;
     
    6969                                dirp->dd_buf,
    7070                                dirp->dd_len);
    71      
     71
    7272      if (dirp->dd_size <= 0)
    7373        return NULL;
  • cpukit/libcsupport/src/readlink.c

    r05279b84 r50f32b11  
    3434  if ( result != 0 )
    3535     return -1;
    36  
     36
    3737  if ( !loc.ops->node_type_h ){
    3838    rtems_filesystem_freenode( &loc );
     
    5353
    5454  rtems_filesystem_freenode( &loc );
    55  
     55
    5656  return result;
    5757}
  • cpukit/libcsupport/src/rewinddir.c

    r05279b84 r50f32b11  
    3232
    3333  status = lseek( dirp->dd_fd, 0, SEEK_SET );
    34  
     34
    3535  if( status == -1 )
    3636    return;
  • cpukit/libcsupport/src/rmdir.c

    r05279b84 r50f32b11  
    6969  }
    7070
    71   result =  (*loc.handlers->rmnod_h)( &loc ); 
     71  result =  (*loc.handlers->rmnod_h)( &loc );
    7272
    7373  rtems_filesystem_freenode( &loc );
    74  
     74
    7575  return result;
    7676}
  • cpukit/libcsupport/src/scandir.c

    r05279b84 r50f32b11  
    44 *  This was copied from Newlib 1.8.0.
    55 *
    6  * 
     6 *
    77 * Copyright (c) 1983 Regents of the University of California.
    88 * All rights reserved.
     
    100100        /*
    101101         * estimate the array size by taking the size of the directory file
    102          * and dividing it by a multiple of the minimum size entry. 
     102         * and dividing it by a multiple of the minimum size entry.
    103103         */
    104104        arraysz = (stb.st_size / 24);
     
    146146        if ( dirp )
    147147                closedir( dirp );
    148        
     148
    149149        if ( names ) {
    150150                for (i=0; i < nitems; i++ )
  • cpukit/libcsupport/src/seekdir.c

    r05279b84 r50f32b11  
    3838   */
    3939
    40   if ( status == -1 ) 
     40  if ( status == -1 )
    4141    return;
    4242
  • cpukit/libcsupport/src/stat.c

    r05279b84 r50f32b11  
    6363  if ( status != 0 )
    6464    return -1;
    65  
     65
    6666  if ( !loc.handlers->fstat_h ){
    6767    rtems_filesystem_freenode( &loc );
     
    7979
    8080  rtems_filesystem_freenode( &loc );
    81  
     81
    8282  return status;
    8383}
  • cpukit/libcsupport/src/telldir.c

    r05279b84 r50f32b11  
    11/*
    22 *  telldir() - XXX
    3  * 
     3 *
    44 *  COPYRIGHT (c) 1989-1999.
    55 *  On-Line Applications Research Corporation (OAR).
    6  * 
     6 *
    77 *  The license and distribution terms for this file may be
    88 *  found in the file LICENSE in this distribution or at
    99 *  http://www.rtems.com/license/LICENSE.
    10  * 
     10 *
    1111 */
    1212
     
    3232
    3333  if ( !dirp )
    34     rtems_set_errno_and_return_minus_one( EBADF ); 
     34    rtems_set_errno_and_return_minus_one( EBADF );
    3535
    3636  /*
  • cpukit/libcsupport/src/termios.c

    r05279b84 r50f32b11  
    237237                                   TERMIOS_TXTASK_PRIO,
    238238                                   TERMIOS_TXTASK_STACKSIZE,
    239                                    RTEMS_NO_PREEMPT | RTEMS_NO_TIMESLICE | 
     239                                   RTEMS_NO_PREEMPT | RTEMS_NO_TIMESLICE |
    240240                                   RTEMS_NO_ASR,
    241241                                   RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,
     
    247247                                   TERMIOS_RXTASK_PRIO,
    248248                                   TERMIOS_RXTASK_STACKSIZE,
    249                                    RTEMS_NO_PREEMPT | RTEMS_NO_TIMESLICE | 
     249                                   RTEMS_NO_PREEMPT | RTEMS_NO_TIMESLICE |
    250250                                   RTEMS_NO_ASR,
    251251                                   RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,
     
    253253                        if (sc != RTEMS_SUCCESSFUL)
    254254                                rtems_fatal_error_occurred (sc);
    255                                
     255
    256256                }
    257257                if ((tty->device.pollRead == NULL) ||
     
    317317            if (sc != RTEMS_SUCCESSFUL)
    318318              rtems_fatal_error_occurred (sc);
    319            
     319
    320320            sc = rtems_task_start(tty->txTaskId,
    321321                                  rtems_termios_txdaemon,
     
    377377                        drainOutput (tty);
    378378                }
    379          
    380                 if (tty->device.outputUsesInterrupts 
     379
     380                if (tty->device.outputUsesInterrupts
    381381                    == TERMIOS_TASK_DRIVEN) {
    382382                        /*
     
    441441}
    442442
    443 static void 
     443static void
    444444termios_set_flowctrl(struct rtems_termios_tty *tty)
    445445{
    446446  rtems_interrupt_level level;
    447   /* 
    448    * check for flow control options to be switched off 
     447  /*
     448   * check for flow control options to be switched off
    449449   */
    450450
     
    484484    /* clear related flags in flow_ctrl */
    485485    tty->flow_ctrl &= ~(FL_MDRTS);
    486    
     486
    487487    /* restart remote Tx, if it was stopped */
    488488    if ((tty->flow_ctrl & FL_IRTSOFF) &&
     
    491491    }
    492492    tty->flow_ctrl &= ~(FL_IRTSOFF);
    493   }   
    494  
    495   /* 
    496    * check for flow control options to be switched on 
     493  }
     494
     495  /*
     496   * check for flow control options to be switched on
    497497   */
    498498  /* check for incoming RTS/CTS flow control switched on */
     
    609609                }
    610610                break;
    611         case TIOCGETD: 
     611        case TIOCGETD:
    612612                *(int*)(args->buffer)=tty->t_line;
    613                 break;         
     613                break;
    614614#endif
    615615        case FIONREAD:
     
    673673                  else {
    674674                    /* remember that output has been stopped due to flow ctrl*/
    675                     tty->flow_ctrl |= FL_OSTOP; 
     675                    tty->flow_ctrl |= FL_OSTOP;
    676676                  }
    677677                  tty->rawOutBufState = rob_busy;
     
    10321032                                  || (tty->flow_ctrl & FL_OSTOP))) {
    10331033                            /* XON should be sent now... */
    1034                             (*tty->device.write)(tty->minor, 
     1034                            (*tty->device.write)(tty->minor,
    10351035                                                 &(tty->termios.c_cc[VSTART]),
    10361036                                                 1);
    10371037                          }
    1038                           else if (tty->flow_ctrl & FL_MDRTS) {             
    1039                             tty->flow_ctrl &= ~FL_IRTSOFF;             
     1038                          else if (tty->flow_ctrl & FL_MDRTS) {
     1039                            tty->flow_ctrl &= ~FL_IRTSOFF;
    10401040                            /* activate RTS line */
    10411041                            if (tty->device.startRemoteTx != NULL) {
     
    11451145            linesw[tty->t_line].l_rint(c,tty);
    11461146          }
    1147            
     1147
    11481148          /*
    11491149           * check to see if rcv wakeup callback was set
     
    11601160          /* FIXME: implement IXANY: any character restarts output */
    11611161          /* if incoming XON/XOFF controls outgoing stream: */
    1162           if (tty->flow_ctrl & FL_MDXON) {         
     1162          if (tty->flow_ctrl & FL_MDXON) {
    11631163            /* if received char is V_STOP and V_START (both are equal value) */
    11641164            if (c == tty->termios.c_cc[VSTOP]) {
     
    11971197              rtems_interrupt_enable(level);
    11981198            }
    1199           }     
     1199          }
    12001200          else {
    12011201                newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;
     
    12041204                if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)
    12051205                      % tty->rawInBuf.Size)
    1206                      > tty->highwater) && 
     1206                     > tty->highwater) &&
    12071207                    !(tty->flow_ctrl & FL_IREQXOF)) {
    12081208                  /* incoming data stream should be stopped */
    1209                   tty->flow_ctrl |= FL_IREQXOF; 
    1210                   if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) 
     1209                  tty->flow_ctrl |= FL_IREQXOF;
     1210                  if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))
    12111211                      ==                (FL_MDXOF             ) ){
    1212                     if ((tty->flow_ctrl & FL_OSTOP) || 
     1212                    if ((tty->flow_ctrl & FL_OSTOP) ||
    12131213                        (tty->rawOutBufState == rob_idle)) {
    12141214                      /* if tx is stopped due to XOFF or out of data */
     
    12201220                    }
    12211221                  }
    1222                   else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) 
     1222                  else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF))
    12231223                           ==                (FL_MDRTS             ) ) {
    1224                     tty->flow_ctrl |= FL_IRTSOFF;               
     1224                    tty->flow_ctrl |= FL_IRTSOFF;
    12251225                    /* deactivate RTS line */
    12261226                    if (tty->device.stopRemoteTx != NULL) {
     
    12381238                        tty->rawInBuf.theBuf[newTail] = c;
    12391239                        tty->rawInBuf.Tail = newTail;
    1240            
     1240
    12411241                        /*
    12421242                         * check to see if rcv wakeup callback was set
     
    12461246                          tty->tty_rcvwakeup = 1;
    12471247                        }
    1248                 }               
     1248                }
    12491249          }
    12501250        }
     
    12701270            == (FL_MDXOF | FL_IREQXOF)) {
    12711271          /* XOFF should be sent now... */
    1272           (*tty->device.write)(tty->minor, 
     1272          (*tty->device.write)(tty->minor,
    12731273                               &(tty->termios.c_cc[VSTOP]), 1);
    12741274
     
    12851285          /* XON should be sent now... */
    12861286                /*
    1287                  * FIXME: this .write call will generate another 
     1287                 * FIXME: this .write call will generate another
    12881288                 * dequeue callback. This will advance the "Tail" in the data
    12891289                 * buffer, although the corresponding data is not yet out!
    12901290                 * Therefore the dequeue "length" should be reduced by 1
    12911291                 */
    1292           (*tty->device.write)(tty->minor, 
     1292          (*tty->device.write)(tty->minor,
    12931293                               &(tty->termios.c_cc[VSTART]), 1);
    12941294
     
    13061306             */
    13071307            if (tty->rawOutBufState == rob_wait) {
    1308               /* 
    1309                * this should never happen... 
     1308              /*
     1309               * this should never happen...
    13101310               */
    13111311              rtems_semaphore_release (tty->rawOutBuf.Semaphore);
    13121312            }
    1313             return 0;   
     1313            return 0;
    13141314          }
    13151315
     
    13221322          tty->rawOutBuf.Tail = newTail;
    13231323          if (tty->rawOutBufState == rob_wait) {
    1324             /* 
     1324            /*
    13251325             * wake up any pending writer task
    13261326             */
     
    13331333            tty->rawOutBufState = rob_idle;
    13341334            nToSend = 0;
    1335            
     1335
    13361336            /*
    13371337             * check to see if snd wakeup callback was set
     
    13421342          }
    13431343          /* check, whether output should stop due to received XOFF */
    1344           else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) 
     1344          else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))
    13451345                   ==                (FL_MDXON | FL_ORCVXOF)) {
    13461346                  /* Buffer not empty, but output stops due to XOFF */
     
    13671367            }
    13681368            tty->rawOutBufState = rob_busy; /*apm*/
    1369             (*tty->device.write)(tty->minor, 
    1370                                  (char *)&tty->rawOutBuf.theBuf[newTail], 
     1369            (*tty->device.write)(tty->minor,
     1370                                 (char *)&tty->rawOutBuf.theBuf[newTail],
    13711371                                 nToSend);
    13721372          }
     
    13821382 * The second argument is the number of characters transmitted so far.
    13831383 * This value will always be 1 for devices which generate an interrupt
    1384  * for each transmitted character. 
     1384 * for each transmitted character.
    13851385 * It returns number of characters left to transmit
    13861386 */
     
    14321432                 * wait for rtems event
    14331433                 */
    1434                 rtems_event_receive((TERMIOS_TX_START_EVENT | 
     1434                rtems_event_receive((TERMIOS_TX_START_EVENT |
    14351435                                     TERMIOS_TX_TERMINATE_EVENT),
    14361436                                    RTEMS_EVENT_ANY | RTEMS_WAIT,
     
    14691469                 * wait for rtems event
    14701470                 */
    1471                 rtems_event_receive((TERMIOS_RX_PROC_EVENT | 
     1471                rtems_event_receive((TERMIOS_RX_PROC_EVENT |
    14721472                                     TERMIOS_RX_TERMINATE_EVENT),
    14731473                                    RTEMS_EVENT_ANY | RTEMS_WAIT,
  • cpukit/libcsupport/src/unixlibc.c

    r05279b84 r50f32b11  
    4242
    4343#else
    44  
     44
    4545/* remove ANSI errors.
    4646 *  A program must contain at least one external-declaration
  • cpukit/libcsupport/src/unlink.c

    r05279b84 r50f32b11  
    2121#include <rtems/seterr.h>
    2222
    23 int unlink( 
    24   const char *path 
     23int unlink(
     24  const char *path
    2525)
    2626{
     
    3535  if ( result != 0 )
    3636     return -1;
    37  
     37
    3838  result = rtems_filesystem_evaluate_parent(RTEMS_LIBIO_PERMS_WRITE, &loc );
    3939  if (result != 0){
     
    6060
    6161  rtems_filesystem_freenode( &loc );
    62  
     62
    6363  return result;
    6464}
  • cpukit/libcsupport/src/unmount.c

    r05279b84 r50f32b11  
    22 *  unmount() - Unmount a File System
    33 *
    4  *  This routine is not defined in the POSIX 1003.1b standard but 
     4 *  This routine is not defined in the POSIX 1003.1b standard but
    55 *  in some form is supported on most UNIX and POSIX systems.  This
    66 *  routine is necessary to mount instantiations of a file system
     
    4444);
    4545
    46 rtems_boolean rtems_filesystem_nodes_equal( 
     46rtems_boolean rtems_filesystem_nodes_equal(
    4747  const rtems_filesystem_location_info_t   *loc1,
    4848  const rtems_filesystem_location_info_t   *loc2
     
    6060 *  mount table file system root nodes matches the new file system root node
    6161 *  this indicates that we are trying to mount a file system that has already
    62  *  been mounted. This is not a permitted operation. temp_loc is set to 
     62 *  been mounted. This is not a permitted operation. temp_loc is set to
    6363 *  the root node of the file system being unmounted.
    6464 */
    6565
    66 rtems_boolean file_systems_below_this_mountpoint( 
     66rtems_boolean file_systems_below_this_mountpoint(
    6767  const char                            *path,
    6868  rtems_filesystem_location_info_t      *fs_root_loc,
     
    9292/*
    9393 *  unmount
    94  * 
     94 *
    9595 *  This routine will attempt to unmount the file system that has been
    9696 *  is mounted a path.  If the operation is successful, 0 will
     
    120120  fs_mount_loc = &mt_entry->mt_point_node;
    121121  fs_root_loc  = &mt_entry->mt_fs_root;
    122        
     122
    123123  /*
    124124   * Verify this is the root node for the file system to be unmounted.
     
    168168   *  Run the file descriptor table to determine if there are any file
    169169   *  descriptors that are currently active and reference nodes in the
    170    *  file system that we are trying to unmount 
    171    */
    172 
    173   if ( rtems_libio_is_open_files_in_fs( mt_entry ) == 1 ) 
     170   *  file system that we are trying to unmount
     171   */
     172
     173  if ( rtems_libio_is_open_files_in_fs( mt_entry ) == 1 )
    174174    rtems_set_errno_and_return_minus_one( EBUSY );
    175  
     175
    176176  /*
    177177   * Allow the file system being unmounted on to do its cleanup.
     
    192192   *
    193193   *  NOTE:  Fatal error is called in a case which should never happen
    194    *         This was response was questionable but the best we could 
     194   *         This was response was questionable but the best we could
    195195   *         come up with.
    196196   */
  • cpukit/libcsupport/src/utsname.c

    r05279b84 r50f32b11  
    4747
    4848  strcpy( name->version, "" );
    49  
     49
    5050  sprintf( name->machine, "%s/%s", CPU_NAME, CPU_MODEL_NAME );
    5151
  • cpukit/libcsupport/src/write.c

    r05279b84 r50f32b11  
    2121/*
    2222 * write
    23  * 
     23 *
    2424 * This routine writes count bytes from from buffer pointed to by buffer
    2525 * to the file associated with the open file descriptor, fildes.
  • cpukit/rtems/include/rtems.h

    r05279b84 r50f32b11  
    2727 *  from normal application code.  Defining this crosses a boundary which
    2828 *  is undesirable since it means your application is using RTEMS features
    29  *  which are not included in the formally defined and supported API. 
    30  *  Define this at your own risk. 
     29 *  which are not included in the formally defined and supported API.
     30 *  Define this at your own risk.
    3131 */
    3232
     
    7171 *  The following define the constants which may be used in name searches.
    7272 */
    73  
     73
    7474#define RTEMS_SEARCH_ALL_NODES   OBJECTS_SEARCH_ALL_NODES
    7575#define RTEMS_SEARCH_OTHER_NODES OBJECTS_SEARCH_OTHER_NODES
    7676#define RTEMS_SEARCH_LOCAL_NODE  OBJECTS_SEARCH_LOCAL_NODE
    7777#define RTEMS_WHO_AM_I           OBJECTS_WHO_AM_I
    78  
     78
    7979/*
    8080 * Parameters and return id's for _Objects_Get_next
    8181 */
    82  
     82
    8383#define RTEMS_OBJECT_ID_INITIAL_INDEX        OBJECTS_ID_INITIAL_INDEX
    8484#define RTEMS_OBJECT_ID_FINAL_INDEX          OBJECTS_ID_FINAL_INDEX
    8585#define RTEMS_OBJECT_ID_INITIAL(api, class, node) OBJECTS_ID_INITIAL(api, class, node)
    86  
     86
    8787#define RTEMS_OBJECT_ID_FINAL                OBJECTS_ID_FINAL
    88  
     88
    8989/*
    9090 *  The following constant defines the minimum stack size which every
     
    103103 *  An MPCI must support packets of at least this size.
    104104 */
    105  
     105
    106106#define RTEMS_MINIMUM_PACKET_SIZE  MP_PACKET_MINIMUM_PACKET_SIZE
    107  
     107
    108108/*
    109109 *  The following constant defines the number of uint32_t  's
     
    113113 *  may a user message buffer which is not automatically endian swapped.
    114114 */
    115  
     115
    116116#define RTEMS_MINIMUN_HETERO_CONVERSION  MP_PACKET_MINIMUN_HETERO_CONVERSION
    117117
     
    119119 *  rtems_object_id_to_name
    120120 *
    121  *  This directive returns the name associated with the specified 
     121 *  This directive returns the name associated with the specified
    122122 *  object ID.
    123123 *
  • cpukit/rtems/include/rtems/rtems/cache.h

    r05279b84 r50f32b11  
    1515 *  functions are only meaningful if a data cache is supported. Instruction
    1616 *  cache functions are only meaningful if an instruction cache is supported.
    17  * 
     17 *
    1818 *  The functions below are implemented with CPU dependent support routines
    1919 *  implemented as part of libcpu. In the event that a CPU does not support a
    2020 *  specific function, the CPU dependent routine does nothing (but does exist).
    21  * 
     21 *
    2222 *  At this point, the Cache Manager makes no considerations, and provides no
    2323 *  support for BSP specific issues such as a secondary cache. In such a system,
  • cpukit/rtems/include/rtems/rtems/event.h

    r05279b84 r50f32b11  
    6161 *  This routine performs the initialization necessary for this manager.
    6262 */
    63  
     63
    6464void _Event_Manager_initialization( void );
    6565
  • cpukit/rtems/include/rtems/rtems/intr.h

    r05279b84 r50f32b11  
    3333 *  the vectors.
    3434 */
    35  
     35
    3636typedef ISR_Vector_number rtems_vector_number;
    3737
     
    3939 *  Return type for ISR Handler
    4040 */
    41  
     41
    4242typedef void rtems_isr;
    4343
     
    4545 *  Pointer to an ISR Handler
    4646 */
    47  
     47
    4848typedef rtems_isr ( *rtems_isr_entry )(
    4949                 rtems_vector_number
     
    8989#define rtems_interrupt_disable( _isr_cookie ) \
    9090    _ISR_Disable(_isr_cookie)
    91        
     91
    9292/*
    9393 *  rtems_interrupt_enable
     
    101101#define rtems_interrupt_enable( _isr_cookie ) \
    102102    _ISR_Enable(_isr_cookie)
    103        
     103
    104104/*
    105105 *  rtems_interrupt_flash
     
    124124 *  directives available to an interrupt service routine are restricted.
    125125 */
    126  
     126
    127127#define rtems_interrupt_is_in_progress() \
    128128    _ISR_Is_in_progress()
  • cpukit/rtems/include/rtems/rtems/message.h

    r05279b84 r50f32b11  
    4646 *  in a send or urgent fashion.
    4747 */
    48  
     48
    4949typedef enum {
    5050  MESSAGE_QUEUE_SEND_REQUEST   = 0,
     
    183183 *  This routine implements the rtems_message_queue_broadcast directive.
    184184 *  This directive sends the message buffer to all of the tasks blocked
    185  *  waiting for a message on the message queue indicated by ID. 
     185 *  waiting for a message on the message queue indicated by ID.
    186186 *  If no tasks are waiting, then the message buffer will not be queued.
    187187 */
     
    238238 *
    239239 *  This routine implements the rtems_message_queue_get_number_pending
    240  *  directive.  This directive returns the number of pending 
    241  *  messages for the message queue indicated by ID 
     240 *  directive.  This directive returns the number of pending
     241 *  messages for the message queue indicated by ID
    242242 *  chain.  The number of messages pending is returned in COUNT.
    243243 */
     
    261261 *  which will be inserted at the front of the queue.
    262262 */
    263  
     263
    264264rtems_status_code _Message_queue_Submit(
    265265  Objects_Id                  id,
     
    291291 *  status code specified.
    292292 */
    293  
     293
    294294rtems_status_code _Message_queue_Translate_core_message_queue_return_code (
    295295  uint32_t   the_message_queue_status
     
    306306 *  Output parameters: NONE
    307307 */
    308  
     308
    309309#if defined(RTEMS_MULTIPROCESSING)
    310310void  _Message_queue_Core_message_queue_mp_support (
  • cpukit/rtems/include/rtems/rtems/modes.h

    r05279b84 r50f32b11  
    7575#define RTEMS_INTERRUPT_LEVEL( _mode_set ) \
    7676  ( (_mode_set) & RTEMS_INTERRUPT_MASK )
    77  
     77
    7878
    7979#ifndef __RTEMS_APPLICATION__
  • cpukit/rtems/include/rtems/rtems/ratemon.h

    r05279b84 r50f32b11  
    5656#define RTEMS_PERIOD_STATUS       WATCHDOG_NO_TIMEOUT
    5757
    58 /* 
     58/*
    5959 *  The following defines the period status structure.
    60  */ 
     60 */
    6161
    6262typedef struct {
  • cpukit/rtems/include/rtems/rtems/rtemsapi.h

    r05279b84 r50f32b11  
    1313 *  $Id$
    1414 */
    15  
     15
    1616#ifndef __RTEMS_API_h
    1717#define __RTEMS_API_h
    18  
     18
    1919#include <rtems/config.h>
    2020
     
    2727 *  from the configuration_table.
    2828 */
    29  
     29
    3030void _RTEMS_API_Initialize(
    3131  rtems_configuration_table *configuration_table
  • cpukit/rtems/include/rtems/rtems/sem.h

    r05279b84 r50f32b11  
    196196 *  status code specified.
    197197 */
    198  
     198
    199199rtems_status_code _Semaphore_Translate_core_mutex_return_code (
    200200  uint32_t   the_mutex_status
     
    209209 *  status code specified.
    210210 */
    211  
     211
    212212rtems_status_code _Semaphore_Translate_core_semaphore_return_code (
    213213  uint32_t   the_mutex_status
    214214);
    215  
     215
    216216/*PAGE
    217217 *
     
    238238 *  DESCRIPTION:
    239239 *
    240  *  This function processes the global actions necessary for remote 
     240 *  This function processes the global actions necessary for remote
    241241 *  accesses to a global semaphore based on a core semaphore.  This function
    242242 *  is called by the core.
    243243 */
    244  
     244
    245245void  _Semaphore_Core_semaphore_mp_support (
    246246  Thread_Control *the_thread,
  • cpukit/rtems/include/rtems/rtems/signal.h

    r05279b84 r50f32b11  
    4040 *  This routine performs the initialization necessary for this manager.
    4141 */
    42  
     42
    4343void _Signal_Manager_initialization( void );
    4444
  • cpukit/rtems/include/rtems/rtems/support.h

    r05279b84 r50f32b11  
    3636 *
    3737 */
    38  
     38
    3939#define rtems_build_name( _C1, _C2, _C3, _C4 ) \
    4040  ( (uint32_t  )(_C1) << 24 | (uint32_t  )(_C2) << 16 | (uint32_t  )(_C3) << 8 | (uint32_t  )(_C4) )
    41  
     41
    4242/*
    4343 *  rtems_get_class
     
    4848 *
    4949 */
    50  
     50
    5151#define rtems_get_class( _id ) \
    5252  _Objects_Get_class( _id )
    53  
     53
    5454/*
    5555 *  rtems_get_node
     
    6060 *
    6161 */
    62  
     62
    6363#define rtems_get_node( _id ) \
    6464  _Objects_Get_node( _id )
    65  
     65
    6666/*
    6767 *  rtems_get_index
     
    7272 *
    7373 */
    74  
     74
    7575#define rtems_get_index( _id ) \
    7676  _Objects_Get_index( _id )
  • cpukit/rtems/include/rtems/rtems/tasks.h

    r05279b84 r50f32b11  
    7676 */
    7777
    78 #define RTEMS_CURRENT_PRIORITY      PRIORITY_MINIMUM   
     78#define RTEMS_CURRENT_PRIORITY      PRIORITY_MINIMUM
    7979
    8080/*
    8181 *  Notepads constants (indices into notepad array)
    8282 */
    83  
     83
    8484#define RTEMS_NOTEPAD_FIRST 0             /* lowest numbered notepad */
    8585#define RTEMS_NOTEPAD_0    0              /* notepad location 0  */
     
    100100#define RTEMS_NOTEPAD_15   15             /* notepad location 15 */
    101101#define RTEMS_NOTEPAD_LAST RTEMS_NOTEPAD_15     /* highest numbered notepad */
    102  
     102
    103103#define RTEMS_NUMBER_NOTEPADS  (RTEMS_NOTEPAD_LAST+1)
    104104
     
    112112 *  The following defines the "return type" of an RTEMS task.
    113113 */
    114  
     114
    115115typedef void rtems_task;
    116116
     
    118118 *  The following defines the argument to an RTEMS task.
    119119 */
    120  
     120
    121121typedef uint32_t   rtems_task_argument;
    122122
     
    124124 *  The following defines the type for the entry point of an RTEMS task.
    125125 */
    126  
     126
    127127typedef rtems_task ( *rtems_task_entry )(
    128128                      rtems_task_argument
    129129                   );
    130  
     130
    131131/*
    132132 *  The following records define the Initialization Tasks Table.
     
    135135 *  initialization time.
    136136 */
    137  
     137
    138138typedef struct {
    139139  rtems_name            name;              /* task name */
     
    151151 */
    152152
    153  
     153
    154154typedef struct {
    155155  uint32_t                 Notepads[ RTEMS_NUMBER_NOTEPADS ];
     
    170170 */
    171171
    172 RTEMS_EXTERN rtems_initialization_tasks_table 
     172RTEMS_EXTERN rtems_initialization_tasks_table
    173173               *_RTEMS_tasks_User_initialization_tasks;
    174174RTEMS_EXTERN uint32_t     _RTEMS_tasks_Number_of_initialization_tasks;
     
    181181 *  This routine initializes all Task Manager related data structures.
    182182 */
    183  
     183
    184184void _RTEMS_tasks_Manager_initialization(
    185185  uint32_t                          maximum_tasks,
     
    450450 *  Output parameters:  NONE
    451451 */
    452  
     452
    453453void _RTEMS_tasks_Initialize_user_tasks( void );
    454454
  • cpukit/rtems/include/rtems/rtems/timer.h

    r05279b84 r50f32b11  
    1111 *     + get an ID of a timer
    1212 *     + delete a timer
    13  *     + set timer to fire in context of clock tick 
     13 *     + set timer to fire in context of clock tick
    1414 *        - after a number of ticks have passed
    1515 *        - when a specified date and time has been reached
     
    5959 *  The following types define a pointer to a timer service routine.
    6060 */
    61  
     61
    6262typedef void rtems_timer_service_routine;
    63  
     63
    6464typedef rtems_timer_service_routine ( *rtems_timer_service_routine_entry )(
    6565                 rtems_id,
     
    8282RTEMS_EXTERN Thread_Control *_Timer_Server;
    8383
    84 /* 
     84/*
    8585 *  The following chains contain the list of interval timers that are
    8686 *  executed in the context of the Timer Server.
    8787 *
    8888 *  NOTE: These are extern'ed because they do not have to be in the
    89  *        minimum footprint.  They are only really required when 
     89 *        minimum footprint.  They are only really required when
    9090 *        task-based timers are used.  Since task-based timers can
    9191 *        not be started until the server is initiated, these structures
    9292 *        do not have to be initialized until then.  They are declared
    9393 *        in the same file as _Timer_Server_body.
    94  */   
     94 */
    9595
    9696extern Chain_Control _Timer_Ticks_chain;
     
    312312typedef struct {
    313313  Timer_Classes      the_class;
    314   Watchdog_Interval  initial; 
    315   Watchdog_Interval  start_time; 
    316   Watchdog_Interval  stop_time; 
     314  Watchdog_Interval  initial;
     315  Watchdog_Interval  start_time;
     316  Watchdog_Interval  stop_time;
    317317} rtems_timer_information;
    318318
  • cpukit/rtems/include/rtems/rtems/types.h

    r05279b84 r50f32b11  
    7373
    7474/*
    75  *  Time related 
     75 *  Time related
    7676 */
    7777
     
    8282 *  Define the type for an RTEMS API task mode.
    8383 */
    84  
     84
    8585typedef Modes_Control rtems_mode;
    8686
  • cpukit/rtems/src/dpmemcreate.c

    r05279b84 r50f32b11  
    7070  the_port->length        = length - 1;
    7171
    72   _Objects_Open( 
     72  _Objects_Open(
    7373    &_Dual_ported_memory_Information,
    7474    &the_port->Object,
  • cpukit/rtems/src/event.c

    r05279b84 r50f32b11  
    3030 *  This routine performs the initialization necessary for this manager.
    3131 */
    32  
     32
    3333void _Event_Manager_initialization( void )
    3434{
    3535  _Event_Sync_state = EVENT_SYNC_SYNCHRONIZED;
    36  
     36
    3737  /*
    3838   *  Register the MP Process Packet routine.
    3939   */
    40  
     40
    4141#if defined(RTEMS_MULTIPROCESSING)
    4242  _MPCI_Register_packet_processor( MP_PACKET_EVENT, _Event_MP_Process_packet );
  • cpukit/rtems/src/eventsurrender.c

    r05279b84 r50f32b11  
    6565        api->pending_events =
    6666           _Event_sets_Clear( pending_events, seized_events );
    67         (rtems_event_set) the_thread->Wait.count = 0; 
     67        (rtems_event_set) the_thread->Wait.count = 0;
    6868        *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
    6969
     
    8888      case EVENT_SYNC_SATISFIED:
    8989        break;
    90  
     90
    9191      case EVENT_SYNC_NOTHING_HAPPENED:
    9292      case EVENT_SYNC_TIMEOUT:
     
    9595
    9696        if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
    97           api->pending_events = 
     97          api->pending_events =
    9898               _Event_sets_Clear( pending_events,seized_events );
    9999          *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
  • cpukit/rtems/src/eventtimeout.c

    r05279b84 r50f32b11  
    5050      break;
    5151    case OBJECTS_LOCAL:
    52  
     52
    5353      /*
    5454       *  If the event manager is not synchronized, then it is either
    5555       *  "nothing happened", "timeout", or "satisfied".   If the_thread
    5656       *  is the executing thread, then it is in the process of blocking
    57        *  and it is the thread which is responsible for the synchronization 
     57       *  and it is the thread which is responsible for the synchronization
    5858       *  process.
    5959       *
     
    6666      if ( the_thread->Wait.count ) {  /* verify thread is waiting */
    6767        the_thread->Wait.count = 0;
    68         if ( _Event_Sync_state != EVENT_SYNC_SYNCHRONIZED && 
     68        if ( _Event_Sync_state != EVENT_SYNC_SYNCHRONIZED &&
    6969             _Thread_Is_executing( the_thread ) ) {
    7070          if ( _Event_Sync_state != EVENT_SYNC_SATISFIED ) {
     
    8080      else {
    8181        _ISR_Enable( level );
    82       } 
     82      }
    8383
    8484      _Thread_Unnest_dispatch();
  • cpukit/rtems/src/msgmp.c

    r05279b84 r50f32b11  
    133133       * Copy the data into place if needed
    134134       */
    135      
     135
    136136      if (buffer) {
    137137          the_packet->Buffer.size = *size_p;
     
    167167      _Thread_Executing->Wait.return_argument   = (uint32_t   *)buffer;
    168168      _Thread_Executing->Wait.return_argument_1 = size_p;
    169      
     169
    170170      return (rtems_status_code) _MPCI_Send_request_packet(
    171171        rtems_get_node(message_queue_id),
     
    227227      if (operation == MESSAGE_QUEUE_MP_RECEIVE_RESPONSE)
    228228          the_packet->Prefix.length += the_packet->size;
    229      
     229
    230230      _MPCI_Send_response_packet(
    231231        rtems_get_node( the_packet->Prefix.source_tid ),
     
    319319
    320320      if (the_packet->Prefix.return_code == RTEMS_SUCCESSFUL) {
    321         *(uint32_t   *)the_thread->Wait.return_argument_1 = 
     321        *(uint32_t   *)the_thread->Wait.return_argument_1 =
    322322           the_packet->size;
    323323
  • cpukit/rtems/src/msgqallocate.c

    r05279b84 r50f32b11  
    3636 *
    3737 *  Allocate a message queue and the space for its messages
    38  * 
     38 *
    3939 *  Input parameters:
    4040 *    the_message_queue - the message queue to allocate message buffers
     
    5151)
    5252{
    53   return 
     53  return
    5454    (Message_queue_Control *)_Objects_Allocate(&_Message_queue_Information);
    5555
  • cpukit/rtems/src/msgqbroadcast.c

    r05279b84 r50f32b11  
    9494                      count
    9595                    );
    96                      
     96
    9797      _Thread_Enable_dispatch();
    98       return 
     98      return
    9999        _Message_queue_Translate_core_message_queue_return_code( core_status );
    100100
  • cpukit/rtems/src/msgqcreate.c

    r05279b84 r50f32b11  
    6969
    7070#if defined(RTEMS_MULTIPROCESSING)
    71   if ( (is_global = _Attributes_Is_global( attribute_set ) ) && 
     71  if ( (is_global = _Attributes_Is_global( attribute_set ) ) &&
    7272       !_System_state_Is_multiprocessing )
    7373    return RTEMS_MP_NOT_CONFIGURED;
     
    8787   * and then just send smaller msgs from remote (or all) nodes.
    8888   */
    89  
     89
    9090  if ( is_global && (_MPCI_table->maximum_packet_size < max_message_size) )
    9191    return RTEMS_INVALID_SIZE;
    9292#endif
    9393#endif
    94        
     94
    9595  _Thread_Disable_dispatch();              /* protects object pointer */
    9696
  • cpukit/rtems/src/msgqident.c

    r05279b84 r50f32b11  
    6161    (Objects_Name) name,
    6262    node,
    63     id 
     63    id
    6464  );
    6565
  • cpukit/rtems/src/msgqreceive.c

    r05279b84 r50f32b11  
    6161  Objects_Locations               location;
    6262  boolean                         wait;
    63  
     63
    6464  the_message_queue = _Message_queue_Get( id, &location );
    6565  switch ( location ) {
     
    8585      else
    8686        wait = TRUE;
    87  
     87
    8888      _CORE_message_queue_Seize(
    8989        &the_message_queue->message_queue,
  • cpukit/rtems/src/msgqsubmit.c

    r05279b84 r50f32b11  
    139139      return
    140140        _Message_queue_Translate_core_message_queue_return_code( msg_status );
    141          
     141
    142142  }
    143143  return RTEMS_INTERNAL_ERROR;   /* unreached - only to remove warnings */
  • cpukit/rtems/src/msgqtranslatereturncode.c

    r05279b84 r50f32b11  
    4242 *
    4343 */
    44  
     44
    4545rtems_status_code _Message_queue_Translate_core_return_code_[] = {
    4646  RTEMS_SUCCESSFUL,         /* CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL */
  • cpukit/rtems/src/partcreate.c

    r05279b84 r50f32b11  
    6565
    6666#if defined(RTEMS_MULTIPROCESSING)
    67   if ( _Attributes_Is_global( attribute_set ) && 
     67  if ( _Attributes_Is_global( attribute_set ) &&
    6868       !_System_state_Is_multiprocessing )
    6969    return RTEMS_MP_NOT_CONFIGURED;
  • cpukit/rtems/src/ratemoncancel.c

    r05279b84 r50f32b11  
    4444  the_period = _Rate_monotonic_Get( id, &location );
    4545  switch ( location ) {
    46     case OBJECTS_REMOTE:           
    47       return RTEMS_INTERNAL_ERROR;  /* should never return this */ 
     46    case OBJECTS_REMOTE:
     47      return RTEMS_INTERNAL_ERROR;  /* should never return this */
    4848
    4949    case OBJECTS_ERROR:
  • cpukit/rtems/src/ratemongetstatus.c

    r05279b84 r50f32b11  
    2525 *  rtems_rate_monotonic_get_status
    2626 *
    27  *  This directive allows a thread to obtain status information on a 
     27 *  This directive allows a thread to obtain status information on a
    2828 *  period.
    2929 *
  • cpukit/rtems/src/ratemonperiod.c

    r05279b84 r50f32b11  
    116116          _Thread_Executing->Wait.id = the_period->Object.id;
    117117          _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
    118          
     118
    119119          /*
    120            *  Did the watchdog timer expire while we were actually blocking 
     120           *  Did the watchdog timer expire while we were actually blocking
    121121           *  on it?
    122122           */
  • cpukit/rtems/src/regioncreate.c

    r05279b84 r50f32b11  
    8787  _Thread_queue_Initialize(
    8888    &the_region->Wait_queue,
    89     _Attributes_Is_priority( attribute_set ) ? 
     89    _Attributes_Is_priority( attribute_set ) ?
    9090       THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO,
    9191    STATES_WAITING_FOR_SEGMENT,
  • cpukit/rtems/src/regionreturnsegment.c

    r05279b84 r50f32b11  
    102102
    103103        the_segment = (void **) _Region_Allocate_segment(
    104            the_region, 
     104           the_region,
    105105           the_thread->Wait.count
    106106        );
  • cpukit/rtems/src/rtemsidtoname.c

    r05279b84 r50f32b11  
    2222 *  rtems_object_id_to_name
    2323 *
    24  *  This directive returns the name associated with the specified 
     24 *  This directive returns the name associated with the specified
    2525 *  object ID.
    2626 *
  • cpukit/rtems/src/sem.c

    r05279b84 r50f32b11  
    7676#endif
    7777  );
    78  
     78
    7979  /*
    8080   *  Register the MP Process Packet routine.
    8181   */
    82  
     82
    8383#if defined(RTEMS_MULTIPROCESSING)
    8484  _MPCI_Register_packet_processor(
  • cpukit/rtems/src/semcreate.c

    r05279b84 r50f32b11  
    5757 *    count            - initial count of semaphore
    5858 *    attribute_set    - semaphore attributes
    59  *    priority_ceiling - semaphore's ceiling priority 
     59 *    priority_ceiling - semaphore's ceiling priority
    6060 *    id               - pointer to semaphore id
    6161 *
     
    9191      return RTEMS_NOT_DEFINED;
    9292
    93   } else 
    94 #endif
    95 
    96   if ( _Attributes_Is_inherit_priority( attribute_set ) || 
     93  } else
     94#endif
     95
     96  if ( _Attributes_Is_inherit_priority( attribute_set ) ||
    9797              _Attributes_Is_priority_ceiling( attribute_set ) ) {
    9898
    9999    if ( ! ( (_Attributes_Is_binary_semaphore( attribute_set ) ||
    100100              _Attributes_Is_simple_binary_semaphore( attribute_set )) &&
    101              
     101
    102102             _Attributes_Is_priority( attribute_set ) ) )
    103103      return RTEMS_NOT_DEFINED;
     
    130130
    131131  /*
    132    *  If it is not a counting semaphore, then it is either a 
     132   *  If it is not a counting semaphore, then it is either a
    133133   *  simple binary semaphore or a more powerful mutex style binary
    134134   *  semaphore.
  • cpukit/rtems/src/semdelete.c

    r05279b84 r50f32b11  
    9696        }
    9797        _CORE_mutex_Flush(
    98           &the_semaphore->Core_control.mutex, 
     98          &the_semaphore->Core_control.mutex,
    9999          SEMAPHORE_MP_OBJECT_WAS_DELETED,
    100100          CORE_MUTEX_WAS_DELETED
     
    102102      } else {
    103103        _CORE_semaphore_Flush(
    104           &the_semaphore->Core_control.semaphore, 
     104          &the_semaphore->Core_control.semaphore,
    105105          SEMAPHORE_MP_OBJECT_WAS_DELETED,
    106106          CORE_SEMAPHORE_WAS_DELETED
  • cpukit/rtems/src/semflush.c

    r05279b84 r50f32b11  
    7878
    7979    case OBJECTS_LOCAL:
    80       if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { 
     80      if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) {
    8181        _CORE_mutex_Flush(
    82           &the_semaphore->Core_control.mutex, 
     82          &the_semaphore->Core_control.mutex,
    8383          SEND_OBJECT_WAS_DELETED,
    8484          CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT
     
    8686      } else {
    8787        _CORE_semaphore_Flush(
    88           &the_semaphore->Core_control.semaphore, 
     88          &the_semaphore->Core_control.semaphore,
    8989          SEND_OBJECT_WAS_DELETED,
    9090          CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT
  • cpukit/rtems/src/semident.c

    r05279b84 r50f32b11  
    7171{
    7272  Objects_Name_or_id_lookup_errors  status;
    73  
     73
    7474  status = _Objects_Name_to_id(
    7575    &_Semaphore_Information,
     
    7878    id
    7979  );
    80  
     80
    8181  return _Status_Object_name_errors_to_status[ status ];
    8282}
  • cpukit/rtems/src/semmp.c

    r05279b84 r50f32b11  
    317317 *  Output parameters: NONE
    318318 */
    319  
     319
    320320#if defined(RTEMS_MULTIPROCESSING)
    321321void  _Semaphore_Core_mutex_mp_support (
     
    325325{
    326326  the_thread->receive_packet->return_code = RTEMS_SUCCESSFUL;
    327  
     327
    328328  _Semaphore_MP_Send_response_packet(
    329329     SEMAPHORE_MP_OBTAIN_RESPONSE,
     
    345345 *  Output parameters: NONE
    346346 */
    347  
     347
    348348#if defined(RTEMS_MULTIPROCESSING)
    349349void  _Semaphore_Core_semaphore_mp_support (
     
    353353{
    354354  the_thread->receive_packet->return_code = RTEMS_SUCCESSFUL;
    355  
     355
    356356  _Semaphore_MP_Send_response_packet(
    357357     SEMAPHORE_MP_OBTAIN_RESPONSE,
  • cpukit/rtems/src/semobtain.c

    r05279b84 r50f32b11  
    9797        _CORE_mutex_Seize(
    9898          &the_semaphore->Core_control.mutex,
    99           id, 
     99          id,
    100100          wait,
    101101          timeout,
    102102          level
    103103        );
    104         return _Semaphore_Translate_core_mutex_return_code( 
     104        return _Semaphore_Translate_core_mutex_return_code(
    105105                  _Thread_Executing->Wait.return_code );
    106106      }
     
    114114        &level
    115115      );
    116       return _Semaphore_Translate_core_semaphore_return_code( 
     116      return _Semaphore_Translate_core_semaphore_return_code(
    117117                  _Thread_Executing->Wait.return_code );
    118118  }
  • cpukit/rtems/src/semtranslatereturncode.c

    r05279b84 r50f32b11  
    5757 *
    5858 */
    59  
     59
    6060rtems_status_code _Semaphore_Translate_core_mutex_return_code_[] = {
    6161  RTEMS_SUCCESSFUL,         /* CORE_MUTEX_STATUS_SUCCESSFUL */
     
    7474{
    7575#if defined(RTEMS_MULTIPROCESSING)
    76   if ( the_mutex_status == THREAD_STATUS_PROXY_BLOCKING ) 
     76  if ( the_mutex_status == THREAD_STATUS_PROXY_BLOCKING )
    7777    return RTEMS_PROXY_BLOCKING;
    78   else 
     78  else
    7979#endif
    8080  if ( the_mutex_status > CORE_MUTEX_STATUS_CEILING_VIOLATED )
     
    9595 *
    9696 */
    97  
     97
    9898rtems_status_code _Semaphore_Translate_core_semaphore_return_code_[] = {
    9999  RTEMS_SUCCESSFUL,         /* CORE_SEMAPHORE_STATUS_SUCCESSFUL */
     
    102102  RTEMS_TIMEOUT,            /* CORE_SEMAPHORE_TIMEOUT  */
    103103  RTEMS_INTERNAL_ERROR,     /* CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED */
    104  
     104
    105105};
    106106
     
    110110{
    111111#if defined(RTEMS_MULTIPROCESSING)
    112   if ( the_semaphore_status == THREAD_STATUS_PROXY_BLOCKING ) 
     112  if ( the_semaphore_status == THREAD_STATUS_PROXY_BLOCKING )
    113113    return RTEMS_PROXY_BLOCKING;
    114   else 
     114  else
    115115#endif
    116116  if ( the_semaphore_status > CORE_MUTEX_STATUS_CEILING_VIOLATED )
  • cpukit/rtems/src/signal.c

    r05279b84 r50f32b11  
    3232 *  Output parameters:  NONE
    3333 */
    34  
     34
    3535void _Signal_Manager_initialization( void )
    3636{
     
    3838   *  Register the MP Process Packet routine.
    3939   */
    40  
     40
    4141#if defined(RTEMS_MULTIPROCESSING)
    4242  _MPCI_Register_packet_processor(
  • cpukit/rtems/src/taskcreate.c

    r05279b84 r50f32b11  
    7171  RTEMS_API_Control       *api;
    7272  ASR_Information         *asr;
    73  
     73
    7474
    7575  if ( !rtems_is_name_valid( name ) )
    7676    return RTEMS_INVALID_NAME;
    7777
    78   /* 
     78  /*
    7979   *  Core Thread Initialize insures we get the minimum amount of
    8080   *  stack space.
     
    133133  /*
    134134   *  Disable dispatch for protection
    135    */ 
     135   */
    136136
    137137  _Thread_Disable_dispatch();
     
    172172  status = _Thread_Initialize(
    173173    &_RTEMS_tasks_Information,
    174     the_thread, 
     174    the_thread,
    175175    NULL,
    176176    stack_size,
     
    198198  api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
    199199  asr = &api->Signal;
    200  
     200
    201201  asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? FALSE : TRUE;
    202202
  • cpukit/rtems/src/taskdelete.c

    r05279b84 r50f32b11  
    7575        /* This should never happen if _Thread_Get() works right */
    7676      }
    77  
     77
    7878      _Thread_Close( the_information, the_thread );
    7979
  • cpukit/rtems/src/taskmode.c

    r05279b84 r50f32b11  
    8383
    8484  if ( mask & RTEMS_TIMESLICE_MASK ) {
    85     if ( _Modes_Is_timeslice(mode_set) ) 
     85    if ( _Modes_Is_timeslice(mode_set) )
    8686      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
    8787    else
  • cpukit/rtems/src/tasks.c

    r05279b84 r50f32b11  
    4141
    4242boolean _RTEMS_tasks_Create_extension(
    43   Thread_Control *executing, 
     43  Thread_Control *executing,
    4444  Thread_Control *created
    4545)
     
    5454
    5555  created->API_Extensions[ THREAD_API_RTEMS ] = api;
    56  
     56
    5757  api->pending_events = EVENT_SETS_NONE_PENDING;
    5858  _ASR_Initialize( &api->Signal );
    5959  created->task_variables = NULL;
    6060
    61   for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++) 
     61  for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++)
    6262    api->Notepads[i] = 0;
    6363
     
    7272 *  first time.
    7373 */
    74  
     74
    7575User_extensions_routine _RTEMS_tasks_Start_extension(
    7676  Thread_Control *executing,
     
    8181
    8282  api = started->API_Extensions[ THREAD_API_RTEMS ];
    83  
     83
    8484  api->pending_events = EVENT_SETS_NONE_PENDING;
    8585
     
    9393 *  This extension routine is invoked when a task is deleted.
    9494 */
    95  
     95
    9696User_extensions_routine _RTEMS_tasks_Delete_extension(
    97   Thread_Control *executing, 
     97  Thread_Control *executing,
    9898  Thread_Control *deleted
    9999)
     
    131131 *  This extension routine is invoked at each context switch.
    132132 */
    133  
     133
    134134void _RTEMS_tasks_Switch_extension(
    135135  Thread_Control *executing,
     
    155155    *tvp->ptr = tvp->tval;
    156156    tvp = tvp->next;
    157   } 
     157  }
    158158}
    159159
     
    164164 *  This extension routine is invoked at each context switch.
    165165 */
    166  
     166
    167167void _RTEMS_tasks_Post_switch_extension(
    168168  Thread_Control *executing
     
    182182
    183183  asr = &api->Signal;
    184  
     184
    185185  _ISR_Disable( level );
    186186    signal_set = asr->signals_posted;
    187187    asr->signals_posted = 0;
    188188  _ISR_Enable( level );
    189  
    190  
     189
     190
    191191  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */
    192192    return;
    193  
     193
    194194  asr->nest_level += 1;
    195195  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode );
    196  
     196
    197197  (*asr->handler)( signal_set );
    198198
  • cpukit/rtems/src/taskvariableadd.c

    r05279b84 r50f32b11  
    2020 *  rtems_task_variable_add
    2121 *
    22  *  This directive registers a task variable. 
     22 *  This directive registers a task variable.
    2323 */
    2424
  • cpukit/rtems/src/taskvariabledelete.c

    r05279b84 r50f32b11  
    2020 *  rtems_task_variable_delete
    2121 *
    22  *  This directive removes a task variable. 
     22 *  This directive removes a task variable.
    2323 */
    2424
  • cpukit/rtems/src/taskvariableget.c

    r05279b84 r50f32b11  
    2020 *  rtems_task_variable_get
    2121 *
    22  *  This directive gets the value of a task variable. 
     22 *  This directive gets the value of a task variable.
    2323 */
    2424
  • cpukit/rtems/src/timercancel.c

    r05279b84 r50f32b11  
    5252
    5353    case OBJECTS_LOCAL:
    54       if ( !_Timer_Is_dormant_class( the_timer->the_class ) ) 
     54      if ( !_Timer_Is_dormant_class( the_timer->the_class ) )
    5555        (void) _Watchdog_Remove( &the_timer->Ticker );
    5656      _Thread_Enable_dispatch();
  • cpukit/rtems/src/timergetinfo.c

    r05279b84 r50f32b11  
    3636 *    RTEMS_SUCCESSFUL - if successful
    3737 *    error code       - if unsuccessful
    38  * 
     38 *
    3939 */
    4040
  • cpukit/rtems/src/timerserver.c

    r05279b84 r50f32b11  
    9494
    9595    /*
    96      *  At this point, at least one of the timers this task relies 
     96     *  At this point, at least one of the timers this task relies
    9797     *  upon has fired.  Stop them both while we process any outstanding
    9898     *  timers.  Before we block, we will restart them.
    9999     */
    100  
     100
    101101      _Timer_Server_stop_ticks_timer();
    102102      _Timer_Server_stop_seconds_timer();
    103103
    104104    /*
    105      *  Disable dispatching while processing the timers since we want 
     105     *  Disable dispatching while processing the timers since we want
    106106     *  to mimic the environment that non-task-based TSRs execute in.
    107107     *  This ensures that the primary difference is that _ISR_Nest_level
     
    125125 *
    126126 *  Input parameters:
    127  *    priority         - timer server priority 
     127 *    priority         - timer server priority
    128128 *    stack_size       - stack size in bytes
    129129 *    attribute_set    - timer server attributes
     
    150150
    151151  _priority = priority;
    152   if ( priority == RTEMS_TIMER_SERVER_DEFAULT_PRIORITY ) 
     152  if ( priority == RTEMS_TIMER_SERVER_DEFAULT_PRIORITY )
    153153    _priority = 0;
    154154  else if ( !_RTEMS_tasks_Priority_is_valid( priority ) )
     
    174174   *
    175175   *  We allow the user to override the default priority because the Timer
    176    *  Server can invoke TSRs which must adhere to language run-time or 
     176   *  Server can invoke TSRs which must adhere to language run-time or
    177177   *  other library rules.  For example, if using a TSR written in Ada the
    178178   *  Server should run at the same priority as the priority Ada task.
     
    205205     *  One would expect a call to rtems_task_delete() here to clean up
    206206     *  but there is actually no way (in normal circumstances) that the
    207      *  start can fail.  The id and starting address are known to be 
     207     *  start can fail.  The id and starting address are known to be
    208208     *  be good.  If this service fails, something is weirdly wrong on the
    209209     *  target such as a stray write in an ISR or incorrect memory layout.
     
    233233  _Chain_Initialize_empty( &_Timer_Seconds_chain );
    234234
    235   /* 
    236    *  Initialize the timers that will be used to control when the 
     235  /*
     236   *  Initialize the timers that will be used to control when the
    237237   *  Timer Server wakes up and services the task-based timers.
    238238   */
     
    249249 *  _Timer_Server_process_ticks_chain
    250250 *
    251  *  This routine is responsible for adjusting the list of task-based 
     251 *  This routine is responsible for adjusting the list of task-based
    252252 *  interval timers to reflect the passage of time.
    253253 *
     
    267267  else
    268268     ticks = (0xFFFFFFFF - _Timer_Server_ticks_last_time) + snapshot;
    269  
     269
    270270  _Timer_Server_ticks_last_time = snapshot;
    271271  _Watchdog_Adjust( &_Timer_Ticks_chain, WATCHDOG_FORWARD, ticks );
     
    276276 *  _Timer_Server_process_seconds_chain
    277277 *
    278  *  This routine is responsible for adjusting the list of task-based 
     278 *  This routine is responsible for adjusting the list of task-based
    279279 *  time of day timers to reflect the passage of time.
    280280 *
     
    290290
    291291  /*
    292    *  Process the seconds chain.  Start by checking that the Time 
     292   *  Process the seconds chain.  Start by checking that the Time
    293293   *  of Day (TOD) has not been set backwards.  If it has then
    294294   *  we want to adjust the _Timer_Seconds_chain to indicate this.
     
    305305    _Watchdog_Adjust( &_Timer_Seconds_chain, WATCHDOG_FORWARD, ticks );
    306306
    307   } else if ( snapshot < _Timer_Server_seconds_last_time ) { 
     307  } else if ( snapshot < _Timer_Server_seconds_last_time ) {
    308308     /*
    309309      *  The current TOD is before the last TOD which indicates that
  • cpukit/rtems/src/timerserverfireafter.c

    r05279b84 r50f32b11  
    2626 *  rtems_timer_server_fire_after
    2727 *
    28  *  This directive allows a thread to start a timer which will by 
     28 *  This directive allows a thread to start a timer which will by
    2929 *  executed by the Timer Server when it fires.
    3030 *
  • cpukit/rtems/src/timerserverfirewhen.c

    r05279b84 r50f32b11  
    2626 *  rtems_timer_server_fire_when
    2727 *
    28  *  This directive allows a thread to start a timer which will by 
     28 *  This directive allows a thread to start a timer which will by
    2929 *  executed by the Timer Server when it fires.
    3030 *
Note: See TracChangeset for help on using the changeset viewer.