Changeset 0a81a58 in rtems


Ignore:
Timestamp:
Dec 9, 2016, 5:51:44 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
3a659b04
Parents:
279d5260
git-author:
Sebastian Huber <sebastian.huber@…> (12/09/16 05:51:44)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/12/16 07:03:29)
Message:

Add INTERNAL_ERROR_POSIX_INIT_THREAD_CREATE_FAILED

Update #2825.

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/pthreadinitthreads.c

    r279d5260 r0a81a58  
    103103      NULL
    104104    );
    105     if ( eno )
    106       _POSIX_Fatal_error( POSIX_FD_PTHREAD, eno );
     105    if ( eno != 0 ) {
     106      _Terminate(
     107        INTERNAL_ERROR_CORE,
     108        INTERNAL_ERROR_POSIX_INIT_THREAD_CREATE_FAILED
     109      );
     110    }
    107111  }
    108112}
  • cpukit/sapi/src/interrtext.c

    r279d5260 r0a81a58  
    6060  "INTERNAL_ERROR_BAD_THREAD_DISPATCH_DISABLE_LEVEL",
    6161  "INTERNAL_ERROR_BAD_THREAD_DISPATCH_ENVIRONMENT",
    62   "INTERNAL_ERROR_RTEMS_INIT_TASK_CREATE_FAILED"
     62  "INTERNAL_ERROR_RTEMS_INIT_TASK_CREATE_FAILED",
     63  "INTERNAL_ERROR_POSIX_INIT_THREAD_CREATE_FAILED"
    6364};
    6465
  • cpukit/score/include/rtems/score/interr.h

    r279d5260 r0a81a58  
    173173  INTERNAL_ERROR_BAD_THREAD_DISPATCH_DISABLE_LEVEL = 30,
    174174  INTERNAL_ERROR_BAD_THREAD_DISPATCH_ENVIRONMENT = 31,
    175   INTERNAL_ERROR_RTEMS_INIT_TASK_CREATE_FAILED = 32
     175  INTERNAL_ERROR_RTEMS_INIT_TASK_CREATE_FAILED = 32,
     176  INTERNAL_ERROR_POSIX_INIT_THREAD_CREATE_FAILED = 33
    176177} Internal_errors_Core_list;
    177178
  • testsuites/psxtests/psxfatal02/testcase.h

    r279d5260 r0a81a58  
    3333#define FATAL_ERROR_DESCRIPTION \
    3434        "POSIX API Init thread create failure -- no memory for stack"
    35 #define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_POSIX_API
    36 #define FATAL_ERROR_EXPECTED_ERROR       ((POSIX_FD_PTHREAD << 8) | EAGAIN)
     35#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_CORE
     36#define FATAL_ERROR_EXPECTED_ERROR       INTERNAL_ERROR_POSIX_INIT_THREAD_CREATE_FAILED
    3737
    3838void force_error(void)
  • testsuites/sptests/spinternalerror02/init.c

    r279d5260 r0a81a58  
    3737
    3838  rtems_test_assert(
    39     error - 3 == INTERNAL_ERROR_RTEMS_INIT_TASK_CREATE_FAILED
     39    error - 3 == INTERNAL_ERROR_POSIX_INIT_THREAD_CREATE_FAILED
    4040  );
    4141}
Note: See TracChangeset for help on using the changeset viewer.