Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

Ticket #1388: pr1388_r8.diff

File pr1388_r8.diff, 4.1 KB (added by Joel Sherrill, on 03/02/09 at 15:24:11)

Patch for 4.8

  • cpukit/rtems/src/semcreate.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/semcreate.c,v
    retrieving revision 1.16
    diff -u -r1.16 semcreate.c
     
    1515 *     + acquire a semaphore
    1616 *     + release a semaphore
    1717 *
    18  *  COPYRIGHT (c) 1989-1999.
     18 *  COPYRIGHT (c) 1989-2009.
    1919 *  On-Line Applications Research Corporation (OAR).
    2020 *
    2121 *  The license and distribution terms for this file may be
     
    111111
    112112  }
    113113
     114  if ( _Attributes_Is_inherit_priority( attribute_set ) &&
     115       _Attributes_Is_priority_ceiling( attribute_set ) )
     116    return RTEMS_NOT_DEFINED;
     117
    114118  if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) )
    115119    return RTEMS_INVALID_NUMBER;
    116120
  • testsuites/sptests/sp09/screen05.c

    RCS file: /usr1/CVS/rtems/testsuites/sptests/sp09/screen05.c,v
    retrieving revision 1.14
    diff -u -r1.14 screen05.c
     
    66 *
    77 *  Output parameters:  NONE
    88 *
    9  *  COPYRIGHT (c) 1989-1999.
     9 *  COPYRIGHT (c) 1989-2009.
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *
    1212 *  The license and distribution terms for this file may be
     
    8585    RTEMS_NOT_DEFINED,
    8686    "rtems_semaphore_create of RTEMS_FIFO RTEMS_INHERIT_PRIORITY"
    8787  );
    88   puts( "TA1 - rtems_semaphore_create - RTEMS_NOT_DEFINED" );
     88  puts( "TA1 - rtems_semaphore_create - FIFO and inherit - RTEMS_NOT_DEFINED" );
     89
     90  status = rtems_semaphore_create(
     91    Semaphore_name[ 1 ],
     92    1,
     93    RTEMS_PRIORITY_CEILING | RTEMS_BINARY_SEMAPHORE | RTEMS_FIFO,
     94    RTEMS_NO_PRIORITY,
     95    &Junk_id
     96  );
     97  fatal_directive_status(
     98    status,
     99    RTEMS_NOT_DEFINED,
     100    "rtems_semaphore_create of RTEMS_FIFO RTEMS_CEILING_PRIORITY"
     101  );
     102  puts( "TA1 - rtems_semaphore_create - FIFO and ceiling - RTEMS_NOT_DEFINED" );
     103
     104  status = rtems_semaphore_create(
     105    Semaphore_name[ 1 ],
     106    1,
     107    RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY_CEILING |
     108      RTEMS_BINARY_SEMAPHORE | RTEMS_PRIORITY,
     109    10,
     110    &Junk_id
     111  );
     112  fatal_directive_status(
     113    status,
     114    RTEMS_NOT_DEFINED,
     115    "rtems_semaphore_create of binary with ceiling and inherit"
     116  );
     117  puts(
     118    "TA1 - rtems_semaphore_create - ceiling and inherit - RTEMS_NOT_DEFINED" );
    89119
    90120  status = rtems_semaphore_create(
    91121    Semaphore_name[ 1 ],
  • testsuites/sptests/sp09/screen09.c

    RCS file: /usr1/CVS/rtems/testsuites/sptests/sp09/screen09.c,v
    retrieving revision 1.13
    diff -u -r1.13 screen09.c
     
    66 *
    77 *  Output parameters:  NONE
    88 *
    9  *  COPYRIGHT (c) 1989-1999.
     9 *  COPYRIGHT (c) 1989-2009.
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *
    1212 *  The license and distribution terms for this file may be
  • testsuites/sptests/sp09/sp09.scn

    RCS file: /usr1/CVS/rtems/testsuites/sptests/sp09/sp09.scn,v
    retrieving revision 1.9
    diff -u -r1.9 sp09.scn
     
    6767TA1 - rtems_semaphore_create - 1 - RTEMS_SUCCESSFUL
    6868TA1 - rtems_semaphore_create - 2 - RTEMS_SUCCESSFUL
    6969TA1 - rtems_semaphore_create - 3 - RTEMS_TOO_MANY
    70 TA1 - rtems_semaphore_create - RTEMS_NOT_DEFINED
     70TA1 - rtems_semaphore_create - FIFO and inherit - RTEMS_NOT_DEFINED
     71TA1 - rtems_semaphore_create - FIFO and ceiling - RTEMS_NOT_DEFINED
     72TA1 - rtems_semaphore_create - ceiling and inherit - RTEMS_NOT_DEFINED
    7173TA1 - rtems_semaphore_create - RTEMS_NOT_DEFINED
    7274TA1 - rtems_semaphore_create - RTEMS_INVALID_NUMBER
    7375TA1 - rtems_semaphore_create - RTEMS_MP_NOT_CONFIGURED