Changeset 6368214 in rtems


Ignore:
Timestamp:
Aug 3, 2009, 1:05:55 AM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
8960aa54
Parents:
b6585b8
Message:

2009-08-02 Joel Sherrill <joel.sherrill@…>

  • posix/src/psignal.c: Simplify implementation to ease coverage analysis.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rb6585b8 r6368214  
     12009-08-02      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * posix/src/psignal.c: Simplify implementation to ease coverage
     4        analysis.
     5
    162009-08-02      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • cpukit/posix/src/psignal.c

    rb6585b8 r6368214  
    113113
    114114  api = the_thread->API_Extensions[ THREAD_API_POSIX ];
    115   if ( !api )
     115
     116  /*
     117   * api cannot be NULL or we would not have registered this API extension.
     118   */
     119  #if defined(RTEMS_DEBUG)
     120    if ( !api )
    116121    return;
     122  #endif
    117123
    118124  /*
     
    125131   */
    126132  while (1) {
    127   restart:
    128133    _ISR_Disable( level );
    129134      if ( !(~api->signals_blocked &
     
    135140
    136141    for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {
    137 
    138       if ( _POSIX_signals_Check_signal( api, signo, false ) )
    139         goto restart;
    140 
    141       if ( _POSIX_signals_Check_signal( api, signo, true ) )
    142         goto restart;
    143 
     142      _POSIX_signals_Check_signal( api, signo, false );
     143      _POSIX_signals_Check_signal( api, signo, true );
    144144    }
    145 
    146     /* XXX - add __SIGFIRSTNOTRT or something like that to newlib signal .h */
     145    /* Unfortunately - nothing like __SIGFIRSTNOTRT in newlib signal .h */
    147146
    148147    for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {
    149 
    150       if ( _POSIX_signals_Check_signal( api, signo, false ) )
    151         goto restart;
    152 
    153       if ( _POSIX_signals_Check_signal( api, signo, true ) )
    154         goto restart;
    155 
     148      _POSIX_signals_Check_signal( api, signo, false );
     149      _POSIX_signals_Check_signal( api, signo, true );
    156150    }
    157151  }
    158   return;
    159152}
    160153
Note: See TracChangeset for help on using the changeset viewer.