Changeset 290d2b79 in rtems


Ignore:
Timestamp:
Jun 29, 2009, 11:19:28 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
85e525a
Parents:
89c3f84
Message:

2009-06-29 Joel Sherrill <joel.sherrill@…>

  • posix/src/killinfo.c, posix/src/mutexinit.c, posix/src/psignal.c, posix/src/psignalchecksignal.c, posix/src/pthread.c, posix/src/pthreadexit.c, posix/src/pthreadinitthreads.c: Remove includes of <assert.h> where possible. Make other uses conditional on ifdef RTEMS_DEBUG.
Location:
cpukit
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r89c3f84 r290d2b79  
     12009-06-29      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * posix/src/killinfo.c, posix/src/mutexinit.c, posix/src/psignal.c,
     4        posix/src/psignalchecksignal.c, posix/src/pthread.c,
     5        posix/src/pthreadexit.c, posix/src/pthreadinitthreads.c: Remove
     6        includes of <assert.h> where possible. Make other uses conditional on
     7        ifdef RTEMS_DEBUG.
     8
    192009-06-24      Joel Sherrill <joel.sherrill@oarcorp.com>
    210
  • cpukit/posix/src/killinfo.c

    r89c3f84 r290d2b79  
    1919#include <signal.h>
    2020#include <errno.h>
    21 #include <assert.h>
    2221
    2322#include <rtems/system.h>
  • cpukit/posix/src/mutexinit.c

    r89c3f84 r290d2b79  
    1414#endif
    1515
    16 #include <assert.h>
    1716#include <errno.h>
    1817#include <pthread.h>
     
    5150
    5251  /* Check for NULL mutex */
    53 
    5452  if ( !mutex )
    5553    return EINVAL;
     
    9997
    10098  /*
    101    *  XXX: Be careful about attributes when global!!!
     99   *  We only support process private mutexes.
    102100   */
    103 
    104   assert( the_attr->process_shared == PTHREAD_PROCESS_PRIVATE );
    105 
    106101  if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )
    107102    return ENOSYS;
     103
     104  if ( the_attr->process_shared != PTHREAD_PROCESS_PRIVATE )
     105    return EINVAL;
    108106
    109107  /*
    110108   *  Determine the discipline of the mutex
    111109   */
    112 
    113110  switch ( the_attr->protocol ) {
    114111    case PTHREAD_PRIO_NONE:
     
    128125    return EINVAL;
    129126
     127  /*
     128   *  Enter a dispatching critical section and begin to do the real work.
     129   */
    130130  _Thread_Disable_dispatch();
    131131
     
    153153   *  Must be initialized to unlocked.
    154154   */
    155 
    156155  _CORE_mutex_Initialize(
    157156    &the_mutex->Mutex,
  • cpukit/posix/src/psignal.c

    r89c3f84 r290d2b79  
    1414#endif
    1515
    16 #include <assert.h>
     16#if defined(RTEMS_DEBUG)
     17  #include <assert.h>
     18#endif
    1719#include <errno.h>
    1820#include <pthread.h>
     
    173175   */
    174176
    175   assert(
    176    sizeof(_POSIX_signals_Vectors) == sizeof(_POSIX_signals_Default_vectors)
    177   );
     177  #if defined(RTEMS_DEBUG)
     178    assert(
     179     sizeof(_POSIX_signals_Vectors) == sizeof(_POSIX_signals_Default_vectors)
     180    );
     181  #endif
    178182
    179183  memcpy(
     
    186190   *  Initialize the set of pending signals for the entire process
    187191   */
    188 
    189192  sigemptyset( &_POSIX_signals_Pending );
    190193
     
    192195   *  Initialize the queue we use to block for signals
    193196   */
    194 
    195197  _Thread_queue_Initialize(
    196198    &_POSIX_signals_Wait_queue,
     
    205207   *  Allocate the siginfo pools.
    206208   */
    207 
    208209  for ( signo=1 ; signo<= SIGRTMAX ; signo++ )
    209210    _Chain_Initialize_empty( &_POSIX_signals_Siginfo[ signo ] );
  • cpukit/posix/src/psignalchecksignal.c

    r89c3f84 r290d2b79  
    1414#endif
    1515
    16 #include <assert.h>
     16#if defined(RTEMS_DEBUG)
     17  #include <assert.h>
     18#endif
    1719#include <errno.h>
    1820#include <pthread.h>
  • cpukit/posix/src/pthread.c

    r89c3f84 r290d2b79  
    1414#endif
    1515
    16 #include <assert.h>
    1716#include <errno.h>
    1817#include <pthread.h>
  • cpukit/posix/src/pthreadexit.c

    r89c3f84 r290d2b79  
    2020#include <pthread.h>
    2121#include <errno.h>
    22 #include <assert.h>
    2322
    2423#include <rtems/system.h>
  • cpukit/posix/src/pthreadinitthreads.c

    r89c3f84 r290d2b79  
    1414#endif
    1515
    16 #include <assert.h>
    1716#include <errno.h>
    1817#include <pthread.h>
Note: See TracChangeset for help on using the changeset viewer.