Ticket #618: null-cvs.diff

File null-cvs.diff, 53.5 KB (added by Joel Sherrill, on 12/03/06 at 13:31:13)

null-cvs.diff

  • cpukit/rtems/include/rtems/rtems/status.h

    ? cpukit/changes-XXX
    ? cpukit/rtems/src/.taskcreate.c.swp
    RCS file: /usr1/CVS/rtems/cpukit/rtems/include/rtems/rtems/status.h,v
    retrieving revision 1.13
    diff -u -r1.13 status.h
     
    6363
    6464#ifdef RTEMS_API_INIT
    6565rtems_status_code _Status_Object_name_errors_to_status[] = {
    66   RTEMS_SUCCESSFUL,      /* OBJECTS_ID_NAME_OR_ID_LOOKUP_SUCCESSFUL */
     66  RTEMS_SUCCESSFUL,      /* OBJECTS_SUCCESSFUL */
    6767  RTEMS_INVALID_NAME,    /* OBJECTS_INVALID_NAME */
     68  RTEMS_INVALID_ADDRESS, /* OBJECTS_INVALID_ADDRESS */
    6869  RTEMS_INVALID_ID,      /* OBJECTS_INVALID_ID */
    6970  RTEMS_INVALID_NODE     /* OBJECTS_INVALID_NODE */
    7071};
  • cpukit/rtems/src/clockget.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/clockget.c,v
    retrieving revision 1.3
    diff -u -r1.3 clockget.c
     
    4545  ISR_Level      level;
    4646  rtems_interval tmp;
    4747
     48   if ( !time_buffer )
     49     return RTEMS_INVALID_ADDRESS;
     50
    4851  switch ( option ) {
    4952    case RTEMS_CLOCK_GET_TOD:
    5053      if ( !_TOD_Is_set )
  • cpukit/rtems/src/clockset.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/clockset.c,v
    retrieving revision 1.3
    diff -u -r1.3 clockset.c
     
    3939{
    4040  rtems_interval     seconds;
    4141
     42  if ( !time_buffer )
     43    return RTEMS_INVALID_ADDRESS;
     44
    4245  if ( _TOD_Validate( time_buffer ) ) {
    4346    seconds = _TOD_To_seconds( time_buffer );
    4447    _Thread_Disable_dispatch();
  • cpukit/rtems/src/dpmemcreate.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/dpmemcreate.c,v
    retrieving revision 1.7
    diff -u -r1.7 dpmemcreate.c
     
    5252  if ( !rtems_is_name_valid( name) )
    5353    return RTEMS_INVALID_NAME;
    5454
     55  if ( !id )
     56    return RTEMS_INVALID_ADDRESS;
     57
    5558  if ( !_Addresses_Is_aligned( internal_start ) ||
    5659       !_Addresses_Is_aligned( external_start ) )
    5760    return RTEMS_INVALID_ADDRESS;
  • cpukit/rtems/src/dpmemexternal2internal.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/dpmemexternal2internal.c,v
    retrieving revision 1.4
    diff -u -r1.4 dpmemexternal2internal.c
     
    4949  Objects_Locations                    location;
    5050  uint32_t                             ending;
    5151
     52  if ( !internal )
     53    return RTEMS_INVALID_ADDRESS;
     54
    5255  the_port = _Dual_ported_memory_Get( id, &location );
    5356  switch ( location ) {
    5457    case OBJECTS_REMOTE:        /* this error cannot be returned */
  • cpukit/rtems/src/dpmeminternal2external.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/dpmeminternal2external.c,v
    retrieving revision 1.4
    diff -u -r1.4 dpmeminternal2external.c
     
    4949  Objects_Locations                    location;
    5050  uint32_t                             ending;
    5151
     52  if ( !external )
     53    return RTEMS_INVALID_ADDRESS;
     54
    5255  the_port = _Dual_ported_memory_Get( id, &location );
    5356  switch ( location ) {
    5457    case OBJECTS_REMOTE:        /* this error cannot be returned */
  • cpukit/rtems/src/eventmp.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/eventmp.c,v
    retrieving revision 1.11
    diff -u -r1.11 eventmp.c
     
    4040rtems_status_code _Event_MP_Send_request_packet (
    4141  Event_MP_Remote_operations operation,
    4242  Objects_Id                 event_id,
    43   rtems_event_set         event_in
     43  rtems_event_set            event_in
    4444)
    4545{
    4646  Event_MP_Packet *the_packet;
  • cpukit/rtems/src/eventreceive.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/eventreceive.c,v
    retrieving revision 1.3
    diff -u -r1.3 eventreceive.c
     
    4848{
    4949  RTEMS_API_Control       *api;
    5050
     51  if ( !event_out )
     52    return RTEMS_INVALID_ADDRESS;
     53
    5154  api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ];
    5255
    5356  if ( _Event_sets_Is_empty( event_in ) ) {
  • cpukit/rtems/src/eventsend.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/eventsend.c,v
    retrieving revision 1.3
    diff -u -r1.3 eventsend.c
     
    3737 */
    3838
    3939rtems_status_code rtems_event_send(
    40   Objects_Id         id,
    41   rtems_event_set event_in
     40  Objects_Id        id,
     41  rtems_event_set   event_in
    4242)
    4343{
    4444  register Thread_Control *the_thread;
  • cpukit/rtems/src/msgqbroadcast.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/msgqbroadcast.c,v
    retrieving revision 1.5
    diff -u -r1.5 msgqbroadcast.c
     
    6060  Objects_Locations               location;
    6161  CORE_message_queue_Status       core_status;
    6262
     63  if ( !buffer )
     64    return RTEMS_INVALID_ADDRESS;
     65
     66  if ( !count )
     67    return RTEMS_INVALID_ADDRESS;
     68
    6369  the_message_queue = _Message_queue_Get( id, &location );
    6470  switch ( location ) {
    6571    case OBJECTS_REMOTE:
  • cpukit/rtems/src/msgqcreate.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/msgqcreate.c,v
    retrieving revision 1.8
    diff -u -r1.8 msgqcreate.c
     
    6767  if ( !rtems_is_name_valid( name ) )
    6868    return RTEMS_INVALID_NAME;
    6969
     70  if ( !id )
     71    return RTEMS_INVALID_ADDRESS;
     72
    7073#if defined(RTEMS_MULTIPROCESSING)
    7174  if ( (is_global = _Attributes_Is_global( attribute_set ) ) &&
    7275       !_System_state_Is_multiprocessing )
  • cpukit/rtems/src/msgqflush.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/msgqflush.c,v
    retrieving revision 1.4
    diff -u -r1.4 msgqflush.c
     
    5656  register Message_queue_Control *the_message_queue;
    5757  Objects_Locations               location;
    5858
     59  if ( !count )
     60    return RTEMS_INVALID_ADDRESS;
     61
    5962  the_message_queue = _Message_queue_Get( id, &location );
    6063  switch ( location ) {
    6164    case OBJECTS_REMOTE:
  • cpukit/rtems/src/msgqgetnumberpending.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/msgqgetnumberpending.c,v
    retrieving revision 1.4
    diff -u -r1.4 msgqgetnumberpending.c
     
    5454  register Message_queue_Control *the_message_queue;
    5555  Objects_Locations               location;
    5656
     57  if ( !count )
     58    return RTEMS_INVALID_ADDRESS;
     59
    5760  the_message_queue = _Message_queue_Get( id, &location );
    5861  switch ( location ) {
    5962    case OBJECTS_REMOTE:
  • cpukit/rtems/src/msgqreceive.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/msgqreceive.c,v
    retrieving revision 1.8
    diff -u -r1.8 msgqreceive.c
     
    6161  Objects_Locations               location;
    6262  boolean                         wait;
    6363
     64  if ( !buffer )
     65    return RTEMS_INVALID_ADDRESS;
     66
     67  if ( !size )
     68    return RTEMS_INVALID_ADDRESS;
     69
    6470  the_message_queue = _Message_queue_Get( id, &location );
    6571  switch ( location ) {
    6672
  • cpukit/rtems/src/msgqsubmit.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/msgqsubmit.c,v
    retrieving revision 1.10
    diff -u -r1.10 msgqsubmit.c
     
    6969  Objects_Locations                location;
    7070  CORE_message_queue_Status        msg_status;
    7171
     72  if ( !buffer )
     73    return RTEMS_INVALID_ADDRESS;
     74
    7275  the_message_queue = _Message_queue_Get( id, &location );
    7376  switch ( location )
    7477  {
  • cpukit/rtems/src/partcreate.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/partcreate.c,v
    retrieving revision 1.7
    diff -u -r1.7 partcreate.c
     
    3737 *    id               - pointer to partition id
    3838 *
    3939 *  Output parameters:
    40  *    id                - partition id
     40 *    id               - partition id
    4141 *    RTEMS_SUCCESSFUL - if successful
    42  *    error code        - if unsuccessful
     42 *    error code       - if unsuccessful
    4343 */
    4444
    4545rtems_status_code rtems_partition_create(
     
    4747  void               *starting_address,
    4848  uint32_t            length,
    4949  uint32_t            buffer_size,
    50   rtems_attribute  attribute_set,
     50  rtems_attribute     attribute_set,
    5151  Objects_Id         *id
    5252)
    5353{
     
    5555
    5656  if ( !rtems_is_name_valid( name ) )
    5757    return RTEMS_INVALID_NAME;
     58
     59  if ( !starting_address )
     60    return RTEMS_INVALID_ADDRESS;
     61
     62  if ( !id )
     63    return RTEMS_INVALID_ADDRESS;
    5864
    5965  if ( length == 0 || buffer_size == 0 || length < buffer_size ||
    6066         !_Partition_Is_buffer_size_aligned( buffer_size ) )
  • cpukit/rtems/src/partdelete.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/partdelete.c,v
    retrieving revision 1.3
    diff -u -r1.3 partdelete.c
     
    3434 *
    3535 *  Output parameters:
    3636 *    RTEMS_SUCCESSFUL - if successful
    37  *    error code        - if unsuccessful
     37 *    error code       - if unsuccessful
    3838 */
    3939
    4040rtems_status_code rtems_partition_delete(
     
    4242)
    4343{
    4444  register Partition_Control *the_partition;
    45   Objects_Locations                  location;
     45  Objects_Locations           location;
    4646
    4747  the_partition = _Partition_Get( id, &location );
    4848  switch ( location ) {
  • cpukit/rtems/src/partgetbuffer.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/partgetbuffer.c,v
    retrieving revision 1.3
    diff -u -r1.3 partgetbuffer.c
     
    4646  Objects_Locations           location;
    4747  void                       *the_buffer;
    4848
     49  if ( !buffer )
     50    return RTEMS_INVALID_ADDRESS;
     51
    4952  the_partition = _Partition_Get( id, &location );
    5053  switch ( location ) {
    5154    case OBJECTS_REMOTE:
  • cpukit/rtems/src/ratemoncancel.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/ratemoncancel.c,v
    retrieving revision 1.4
    diff -u -r1.4 ratemoncancel.c
     
    3131 *
    3232 *  Output parameters:
    3333 *    RTEMS_SUCCESSFUL - if successful and caller is not the owning thread
    34  *    error code        - if unsuccessful
     34 *    error code       - if unsuccessful
    3535 */
    3636
    3737rtems_status_code rtems_rate_monotonic_cancel(
     
    3939)
    4040{
    4141  Rate_monotonic_Control *the_period;
    42   Objects_Locations              location;
     42  Objects_Locations       location;
    4343
    4444  the_period = _Rate_monotonic_Get( id, &location );
    4545  switch ( location ) {
  • cpukit/rtems/src/ratemoncreate.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/ratemoncreate.c,v
    retrieving revision 1.5
    diff -u -r1.5 ratemoncreate.c
     
    3232 *    id   - pointer to rate monotonic id
    3333 *
    3434 *  Output parameters:
    35  *    id                - rate monotonic id
     35 *    id               - rate monotonic id
    3636 *    RTEMS_SUCCESSFUL - if successful
    37  *    error code        - if unsuccessful
     37 *    error code       - if unsuccessful
    3838 */
    3939
    4040rtems_status_code rtems_rate_monotonic_create(
     
    4646
    4747  if ( !rtems_is_name_valid( name ) )
    4848    return RTEMS_INVALID_NAME;
     49
     50  if ( !id )
     51    return RTEMS_INVALID_ADDRESS;
    4952
    5053  _Thread_Disable_dispatch();            /* to prevent deletion */
    5154
  • cpukit/rtems/src/ratemondelete.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/ratemondelete.c,v
    retrieving revision 1.3
    diff -u -r1.3 ratemondelete.c
     
    3131 *
    3232 *  Output parameters:
    3333 *    RTEMS_SUCCESSFUL - if successful
    34  *    error code        - if unsuccessful
     34 *    error code       - if unsuccessful
    3535 */
    3636
    3737rtems_status_code rtems_rate_monotonic_delete(
     
    3939)
    4040{
    4141  Rate_monotonic_Control *the_period;
    42   Objects_Locations              location;
     42  Objects_Locations       location;
    4343
    4444  the_period = _Rate_monotonic_Get( id, &location );
    4545  switch ( location ) {
  • cpukit/rtems/src/ratemongetstatus.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/ratemongetstatus.c,v
    retrieving revision 1.4
    diff -u -r1.4 ratemongetstatus.c
     
    4545  Objects_Locations              location;
    4646  Rate_monotonic_Control        *the_period;
    4747
    48   if ( status == NULL )
     48  if ( !status )
    4949    return RTEMS_INVALID_ADDRESS;
    5050
    5151  the_period = _Rate_monotonic_Get( id, &location );
  • cpukit/rtems/src/ratemonident.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/ratemonident.c,v
    retrieving revision 1.6
    diff -u -r1.6 ratemonident.c
     
    3232 *    id   - pointer to period id
    3333 *
    3434 *  Output parameters:
    35  *    *id               - region id
     35 *    *id              - region id
    3636 *    RTEMS_SUCCESSFUL - if successful
    37  *    error code        - if unsuccessful
     37 *    error code       - if unsuccessful
    3838 */
    3939
    4040rtems_status_code rtems_rate_monotonic_ident(
  • cpukit/rtems/src/ratemonperiod.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/ratemonperiod.c,v
    retrieving revision 1.5
    diff -u -r1.5 ratemonperiod.c
     
    3232 *
    3333 *  Output parameters:
    3434 *    RTEMS_SUCCESSFUL - if successful
    35  *    error code        - if unsuccessful
     35 *    error code       - if unsuccessful
    3636 */
    3737
    3838rtems_status_code rtems_rate_monotonic_period(
  • cpukit/rtems/src/regioncreate.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/regioncreate.c,v
    retrieving revision 1.7
    diff -u -r1.7 regioncreate.c
     
    3838 *    id               - address of region id to set
    3939 *
    4040 *  Output parameters:
    41  *    id       - region id
     41 *    id               - region id
    4242 *    RTEMS_SUCCESSFUL - if successful
    43  *    error code - if unsuccessful
     43 *    error code       - if unsuccessful
    4444 */
    4545
    4646rtems_status_code rtems_region_create(
     
    4848  void               *starting_address,
    4949  uint32_t            length,
    5050  uint32_t            page_size,
    51   rtems_attribute  attribute_set,
     51  rtems_attribute     attribute_set,
    5252  Objects_Id         *id
    5353)
    5454{
     
    5656
    5757  if ( !rtems_is_name_valid( name ) )
    5858    return RTEMS_INVALID_NAME;
     59
     60  if ( !starting_address )
     61    return RTEMS_INVALID_ADDRESS;
     62
     63  if ( !id )
     64    return RTEMS_INVALID_ADDRESS;
    5965
    6066  if ( !_Addresses_Is_aligned( starting_address ) )
    6167    return RTEMS_INVALID_ADDRESS;
  • cpukit/rtems/src/regiondelete.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/regiondelete.c,v
    retrieving revision 1.4
    diff -u -r1.4 regiondelete.c
     
    3535 *
    3636 *  Output parameters:
    3737 *    RTEMS_SUCCESSFUL - if successful
    38  *    error code - if unsuccessful
     38 *    error code       - if unsuccessful
    3939 */
    4040
    4141rtems_status_code rtems_region_delete(
     
    4343)
    4444{
    4545  register Region_Control *the_region;
    46   Objects_Locations               location;
     46  Objects_Locations        location;
    4747
    4848  _RTEMS_Lock_allocator();
    4949  the_region = _Region_Get( id, &location );
  • cpukit/rtems/src/regionextend.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/regionextend.c,v
    retrieving revision 1.5
    diff -u -r1.5 regionextend.c
     
    5151  Heap_Extend_status  heap_status;
    5252  rtems_status_code   status;
    5353
     54  if ( !starting_address )
     55    return RTEMS_INVALID_ADDRESS;
     56
    5457  status = RTEMS_SUCCESSFUL;
    5558
    5659  _RTEMS_Lock_allocator();                      /* to prevent deletion */
  • cpukit/rtems/src/regiongetsegment.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/regiongetsegment.c,v
    retrieving revision 1.6
    diff -u -r1.6 regiongetsegment.c
     
    5454  Thread_Control          *executing;
    5555  void                    *the_segment;
    5656
     57  if ( !segment )
     58    return RTEMS_INVALID_ADDRESS;
     59
    5760  *segment = NULL;
    5861
    5962  if ( size == 0 )
  • cpukit/rtems/src/regiongetsegmentsize.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/regiongetsegmentsize.c,v
    retrieving revision 1.6
    diff -u -r1.6 regiongetsegmentsize.c
     
    4949  Objects_Locations        location;
    5050  Thread_Control          *executing;
    5151
     52  if ( !segment )
     53    return RTEMS_INVALID_ADDRESS;
     54
     55  if ( !size )
     56    return RTEMS_INVALID_ADDRESS;
     57
    5258  _RTEMS_Lock_allocator();
    5359  executing  = _Thread_Executing;
    5460  the_region = _Region_Get( id, &location );
  • cpukit/rtems/src/regionreturnsegment.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/regionreturnsegment.c,v
    retrieving revision 1.8
    diff -u -r1.8 regionreturnsegment.c
     
    4242 *
    4343 *  Output parameters:
    4444 *    RTEMS_SUCCESSFUL - if successful
    45  *    error code        - if unsuccessful
     45 *    error code       - if unsuccessful
    4646 */
    4747
    4848rtems_status_code rtems_region_return_segment(
  • cpukit/rtems/src/semcreate.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/semcreate.c,v
    retrieving revision 1.13
    diff -u -r1.13 semcreate.c
     
    8181  if ( !rtems_is_name_valid( name ) )
    8282    return RTEMS_INVALID_NAME;
    8383
     84  if ( !id )
     85    return RTEMS_INVALID_ADDRESS;
     86
    8487#if defined(RTEMS_MULTIPROCESSING)
    8588  if ( _Attributes_Is_global( attribute_set ) ) {
    8689
  • cpukit/rtems/src/semdelete.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/semdelete.c,v
    retrieving revision 1.6
    diff -u -r1.6 semdelete.c
     
    5858 *
    5959 *  Output parameters:
    6060 *    RTEMS_SUCCESSFUL - if successful
    61  *    error code        - if unsuccessful
     61 *    error code       - if unsuccessful
    6262 */
    6363
    6464#if defined(RTEMS_MULTIPROCESSING)
  • cpukit/rtems/src/semflush.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/semflush.c,v
    retrieving revision 1.7
    diff -u -r1.7 semflush.c
     
    4848 *
    4949 *  Output parameters:
    5050 *    RTEMS_SUCCESSFUL - if successful
    51  *    error code        - if unsuccessful
     51 *    error code       - if unsuccessful
    5252 */
    5353
    5454#if defined(RTEMS_MULTIPROCESSING)
  • cpukit/rtems/src/semident.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/semident.c,v
    retrieving revision 1.8
    diff -u -r1.8 semident.c
     
    5858 *    id   - pointer to semaphore id
    5959 *
    6060 *  Output parameters:
    61  *    *id      - semaphore id
     61 *    *id              - semaphore id
    6262 *    RTEMS_SUCCESSFUL - if successful
    63  *    error code - if unsuccessful
     63 *    error code       - if unsuccessful
    6464 */
    6565
    6666rtems_status_code rtems_semaphore_ident(
  • cpukit/rtems/src/taskcreate.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/taskcreate.c,v
    retrieving revision 1.8
    diff -u -r1.8 taskcreate.c
     
    7272  ASR_Information         *asr;
    7373
    7474
     75  if ( !id )
     76   return RTEMS_INVALID_ADDRESS;
     77
    7578  if ( !rtems_is_name_valid( name ) )
    7679    return RTEMS_INVALID_NAME;
    7780
  • cpukit/rtems/src/taskgetnote.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/taskgetnote.c,v
    retrieving revision 1.4
    diff -u -r1.4 taskgetnote.c
     
    4141 *    note    - pointer to note
    4242 *
    4343 *  Output parameters:
    44  *    note              - filled in if successful
     44 *    note             - filled in if successful
    4545 *    RTEMS_SUCCESSFUL - if successful
    46  *    error code        - if unsuccessful
     46 *    error code       - if unsuccessful
    4747 */
    4848
    4949rtems_status_code rtems_task_get_note(
     
    5555  register Thread_Control *the_thread;
    5656  Objects_Locations        location;
    5757  RTEMS_API_Control       *api;
     58
     59  if ( !note )
     60    return RTEMS_INVALID_ADDRESS;
    5861
    5962  /*
    6063   *  NOTE:  There is no check for < RTEMS_NOTEPAD_FIRST because that would
  • cpukit/rtems/src/taskmode.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/taskmode.c,v
    retrieving revision 1.5
    diff -u -r1.5 taskmode.c
     
    5858  boolean             needs_asr_dispatching = FALSE;
    5959  rtems_mode          old_mode;
    6060
     61  if ( !previous_mode_set )
     62    return RTEMS_INVALID_ADDRESS;
     63
    6164  executing     = _Thread_Executing;
    6265  api = executing->API_Extensions[ THREAD_API_RTEMS ];
    6366  asr = &api->Signal;
  • cpukit/rtems/src/taskrestart.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/taskrestart.c,v
    retrieving revision 1.4
    diff -u -r1.4 taskrestart.c
     
    4343 *
    4444 *  Output parameters:
    4545 *    RTEMS_SUCCESSFUL - if successful
    46  *    error code        - if unsuccessful
     46 *    error code       - if unsuccessful
    4747 */
    4848
    4949rtems_status_code rtems_task_restart(
  • cpukit/rtems/src/taskresume.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/taskresume.c,v
    retrieving revision 1.4
    diff -u -r1.4 taskresume.c
     
    4040 *
    4141 *  Output parameters:
    4242 *    RTEMS_SUCCESSFUL - if successful
    43  *    error code        - if unsuccessful
     43 *    error code       - if unsuccessful
    4444 */
    4545
    4646rtems_status_code rtems_task_resume(
  • cpukit/rtems/src/tasksetnote.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/tasksetnote.c,v
    retrieving revision 1.4
    diff -u -r1.4 tasksetnote.c
     
    4242 *
    4343 *  Output parameters:
    4444 *    RTEMS_SUCCESSFUL - if successful
    45  *    error code        - if unsuccessful
     45 *    error code       - if unsuccessful
    4646 */
    4747
    4848rtems_status_code rtems_task_set_note(
  • cpukit/rtems/src/tasksuspend.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/tasksuspend.c,v
    retrieving revision 1.4
    diff -u -r1.4 tasksuspend.c
     
    4949)
    5050{
    5151  register Thread_Control *the_thread;
    52   Objects_Locations               location;
     52  Objects_Locations        location;
    5353
    5454  the_thread = _Thread_Get( id, &location );
    5555  switch ( location ) {
  • cpukit/rtems/src/taskvariableadd.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/taskvariableadd.c,v
    retrieving revision 1.9
    diff -u -r1.9 taskvariableadd.c
     
    3232  Objects_Locations      location;
    3333  rtems_task_variable_t *tvp, *new;
    3434
     35  if ( !ptr )
     36    return RTEMS_INVALID_ADDRESS;
     37
    3538  the_thread = _Thread_Get (tid, &location);
    3639  switch (location) {
    3740  case OBJECTS_REMOTE:
  • cpukit/rtems/src/taskvariabledelete.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/taskvariabledelete.c,v
    retrieving revision 1.9
    diff -u -r1.9 taskvariabledelete.c
     
    3131  Objects_Locations      location;
    3232  rtems_task_variable_t *tvp, *prev;
    3333
     34  if ( !ptr )
     35    return RTEMS_INVALID_ADDRESS;
     36
    3437  prev = NULL;
    3538
    3639  the_thread = _Thread_Get (tid, &location);
  • cpukit/rtems/src/taskvariableget.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/taskvariableget.c,v
    retrieving revision 1.4
    diff -u -r1.4 taskvariableget.c
     
    3232  Objects_Locations      location;
    3333  rtems_task_variable_t *tvp;
    3434
     35  if ( !ptr )
     36    return RTEMS_INVALID_ADDRESS;
     37
     38  if ( !result )
     39    return RTEMS_INVALID_ADDRESS;
     40
    3541  the_thread = _Thread_Get (tid, &location);
    3642  switch (location) {
    3743  case OBJECTS_REMOTE:
  • cpukit/rtems/src/taskwakewhen.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/taskwakewhen.c,v
    retrieving revision 1.3
    diff -u -r1.3 taskwakewhen.c
     
    4040 *
    4141 *  Output parameters:
    4242 *    RTEMS_SUCCESSFUL - if successful
    43  *    error code        - if unsuccessful
     43 *    error code       - if unsuccessful
    4444 */
    4545
    4646rtems_status_code rtems_task_wake_when(
    47 rtems_time_of_day *time_buffer
     47  rtems_time_of_day *time_buffer
    4848)
    4949{
    5050  Watchdog_Interval   seconds;
    5151
    5252  if ( !_TOD_Is_set )
    5353    return RTEMS_NOT_DEFINED;
     54
     55  if ( !time_buffer )
     56    return RTEMS_INVALID_ADDRESS;
    5457
    5558  time_buffer->ticks = 0;
    5659
  • cpukit/rtems/src/timercreate.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/timercreate.c,v
    retrieving revision 1.6
    diff -u -r1.6 timercreate.c
     
    4747  if ( !rtems_is_name_valid( name ) )
    4848    return RTEMS_INVALID_NAME;
    4949
     50  if ( !id )
     51    return RTEMS_INVALID_ADDRESS;
     52
    5053  _Thread_Disable_dispatch();         /* to prevent deletion */
    5154
    5255  the_timer = _Timer_Allocate();
  • cpukit/rtems/src/timerdelete.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/timerdelete.c,v
    retrieving revision 1.4
    diff -u -r1.4 timerdelete.c
     
    3939  Objects_Id id
    4040)
    4141{
    42   Timer_Control   *the_timer;
    43   Objects_Locations       location;
     42  Timer_Control     *the_timer;
     43  Objects_Locations  location;
    4444
    4545  the_timer = _Timer_Get( id, &location );
    4646  switch ( location ) {
  • cpukit/rtems/src/timerfireafter.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/timerfireafter.c,v
    retrieving revision 1.4
    diff -u -r1.4 timerfireafter.c
     
    5151  if ( ticks == 0 )
    5252    return RTEMS_INVALID_NUMBER;
    5353
     54  if ( !routine )
     55    return RTEMS_INVALID_ADDRESS;
     56
    5457  the_timer = _Timer_Get( id, &location );
    5558  switch ( location ) {
    5659    case OBJECTS_REMOTE:            /* should never return this */
  • cpukit/rtems/src/timerfirewhen.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/timerfirewhen.c,v
    retrieving revision 1.4
    diff -u -r1.4 timerfirewhen.c
     
    5555  if ( !_TOD_Validate( wall_time ) )
    5656    return RTEMS_INVALID_CLOCK;
    5757
     58  if ( !routine )
     59    return RTEMS_INVALID_ADDRESS;
     60
    5861  seconds = _TOD_To_seconds( wall_time );
    5962  if ( seconds <= _TOD_Seconds_since_epoch )
    6063    return RTEMS_INVALID_CLOCK;
  • cpukit/rtems/src/timerserverfireafter.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/timerserverfireafter.c,v
    retrieving revision 1.5
    diff -u -r1.5 timerserverfireafter.c
     
    5353  if ( !_Timer_Server )
    5454    return RTEMS_INCORRECT_STATE;
    5555
     56  if ( !routine )
     57    return RTEMS_INVALID_ADDRESS;
     58
    5659  if ( ticks == 0 )
    5760    return RTEMS_INVALID_NUMBER;
    5861
  • cpukit/rtems/src/timerserverfirewhen.c

    RCS file: /usr1/CVS/rtems/cpukit/rtems/src/timerserverfirewhen.c,v
    retrieving revision 1.5
    diff -u -r1.5 timerserverfirewhen.c
     
    5757  if ( !_TOD_Is_set )
    5858    return RTEMS_NOT_DEFINED;
    5959
     60  if ( !routine )
     61    return RTEMS_INVALID_ADDRESS;
     62
    6063  if ( !_TOD_Validate( wall_time ) )
    6164    return RTEMS_INVALID_CLOCK;
    6265
  • cpukit/score/include/rtems/score/object.h

    RCS file: /usr1/CVS/rtems/cpukit/score/include/rtems/score/object.h,v
    retrieving revision 1.36
    diff -u -r1.36 object.h
     
    457457typedef enum {
    458458  OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL,
    459459  OBJECTS_INVALID_NAME,
     460  OBJECTS_INVALID_ADDRESS,
    460461  OBJECTS_INVALID_ID,
    461462  OBJECTS_INVALID_NODE
    462463} Objects_Name_or_id_lookup_errors;
  • cpukit/score/src/coretodvalidate.c

    RCS file: /usr1/CVS/rtems/cpukit/score/src/coretodvalidate.c,v
    retrieving revision 1.5
    diff -u -r1.5 coretodvalidate.c
     
    4040{
    4141  uint32_t   days_in_month;
    4242
    43   if ((the_tod->ticks  >= _TOD_Ticks_per_second)  ||
     43  if ((!the_tod)                                  ||
     44      (the_tod->ticks  >= _TOD_Ticks_per_second)  ||
    4445      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||
    4546      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||
    4647      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||
  • cpukit/score/src/objectnametoid.c

    RCS file: /usr1/CVS/rtems/cpukit/score/src/objectnametoid.c,v
    retrieving revision 1.6
    diff -u -r1.6 objectnametoid.c
     
    5656  uint32_t                   name_length;
    5757  Objects_Name_comparators   compare_them;
    5858
     59  if ( !id )
     60    return OBJECTS_INVALID_ADDRESS;
     61
    5962  if ( name == 0 )
    6063    return OBJECTS_INVALID_NAME;
    6164
  • doc/user/clock.t

    RCS file: /usr1/CVS/rtems/doc/user/clock.t,v
    retrieving revision 1.16
    diff -u -r1.16 clock.t
     
    262262
    263263@subheading DIRECTIVE STATUS CODES:
    264264@code{@value{RPREFIX}SUCCESSFUL} - date and time set successfully@*
     265@code{@value{RPREFIX}INVALID_ADDRESS} - @code{time_buffer} is NULL@*
    265266@code{@value{RPREFIX}INVALID_TIME_OF_DAY} - invalid time of day
    266267
    267268@subheading DESCRIPTION:
     
    320321
    321322@subheading DIRECTIVE STATUS CODES:
    322323@code{@value{RPREFIX}SUCCESSFUL} - current time obtained successfully@*
    323 @code{@value{RPREFIX}NOT_DEFINED} - system date and time is not set
     324@code{@value{RPREFIX}NOT_DEFINED} - system date and time is not set@*
     325@code{@value{RPREFIX}INVALID_ADDRESS} - @code{time_buffer} is NULL
    324326
    325327@subheading DESCRIPTION:
    326328
     
    414416@end ifset
    415417
    416418@subheading DIRECTIVE STATUS CODES:
    417 @code{@value{RPREFIX}SUCCESSFUL} - current time obtained successfully
     419@code{@value{RPREFIX}SUCCESSFUL} - clock tick processed successfully
    418420
    419421@subheading DESCRIPTION:
    420422
  • doc/user/dpmem.t

    RCS file: /usr1/CVS/rtems/doc/user/dpmem.t,v
    retrieving revision 1.11
    diff -u -r1.11 dpmem.t
     
    139139@code{@value{RPREFIX}SUCCESSFUL} - port created successfully@*
    140140@code{@value{RPREFIX}INVALID_NAME} - invalid task name@*
    141141@code{@value{RPREFIX}INVALID_ADDRESS} - address not on four byte boundary@*
     142@code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@*
    142143@code{@value{RPREFIX}TOO_MANY} - too many DP memory areas created
    143144
    144145@subheading DESCRIPTION:
     
    195196
    196197@subheading DIRECTIVE STATUS CODES:
    197198@code{@value{RPREFIX}SUCCESSFUL} - port identified successfully@*
     199@code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@*
    198200@code{@value{RPREFIX}INVALID_NAME} - port name not found
    199201
    200202@subheading DESCRIPTION:
     
    291293@end ifset
    292294
    293295@subheading DIRECTIVE STATUS CODES:
    294 @code{@value{RPREFIX}SUCCESSFUL} -  always successful
     296@code{@value{RPREFIX}INVALID_ADDRESS} - @code{internal} is NULL@*
     297@code{@value{RPREFIX}SUCCESSFUL} - successful conversion
    295298
    296299@subheading DESCRIPTION:
    297300
     
    341344@end ifset
    342345
    343346@subheading DIRECTIVE STATUS CODES:
    344 @code{@value{RPREFIX}SUCCESSFUL} -  always successful
     347@code{@value{RPREFIX}INVALID_ADDRESS} - @code{external} is NULL@*
     348@code{@value{RPREFIX}SUCCESSFUL} - successful conversion
    345349
    346350@subheading DESCRIPTION:
    347351
  • doc/user/event.t

    RCS file: /usr1/CVS/rtems/doc/user/event.t,v
    retrieving revision 1.16
    diff -u -r1.16 event.t
     
    295295@subheading DIRECTIVE STATUS CODES:
    296296@code{@value{RPREFIX}SUCCESSFUL} - event received successfully@*
    297297@code{@value{RPREFIX}UNSATISFIED} - input event not satisfied (@code{@value{RPREFIX}NO_WAIT})@*
     298@code{@value{RPREFIX}INVALID_ADDRESS} - @code{event_out} is NULL@*
    298299@code{@value{RPREFIX}TIMEOUT} - timed out waiting for event
    299300
    300301@subheading DESCRIPTION:
  • doc/user/msg.t

    RCS file: /usr1/CVS/rtems/doc/user/msg.t,v
    retrieving revision 1.16
    diff -u -r1.16 msg.t
     
    255255@subheading DIRECTIVE STATUS CODES:
    256256@code{@value{RPREFIX}SUCCESSFUL} - queue created successfully@*
    257257@code{@value{RPREFIX}INVALID_NAME} - invalid task name@*
     258@code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@*
    258259@code{@value{RPREFIX}INVALID_NUMBER} - invalid message count@*
    259260@code{@value{RPREFIX}INVALID_SIZE} - invalid message size@*
    260261@code{@value{RPREFIX}TOO_MANY} - too many queues created@*
     
    341342
    342343@subheading DIRECTIVE STATUS CODES:
    343344@code{@value{RPREFIX}SUCCESSFUL} - queue identified successfully@*
     345@code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@*
    344346@code{@value{RPREFIX}INVALID_NAME} - queue name not found@*
    345347@code{@value{RPREFIX}INVALID_NODE} - invalid node id
    346348
     
    473475@code{@value{RPREFIX}SUCCESSFUL} - message sent successfully@*
    474476@code{@value{RPREFIX}INVALID_ID} - invalid queue id@*
    475477@code{@value{RPREFIX}INVALID_SIZE} - invalid message size@*
     478@code{@value{RPREFIX}INVALID_ADDRESS} - @code{buffer} is NULL@*
    476479@code{@value{RPREFIX}UNSATISFIED} - out of message buffers@*
    477480@code{@value{RPREFIX}TOO_MANY} - queue's limit has been reached
    478481
     
    537540@code{@value{RPREFIX}SUCCESSFUL} - message sent successfully@*
    538541@code{@value{RPREFIX}INVALID_ID} - invalid queue id@*
    539542@code{@value{RPREFIX}INVALID_SIZE} - invalid message size@*
     543@code{@value{RPREFIX}INVALID_ADDRESS} - @code{buffer} is NULL@*
    540544@code{@value{RPREFIX}UNSATISFIED} - out of message buffers@*
    541545@code{@value{RPREFIX}TOO_MANY} - queue's limit has been reached
    542546
     
    603607@subheading DIRECTIVE STATUS CODES:
    604608@code{@value{RPREFIX}SUCCESSFUL} - message broadcasted successfully@*
    605609@code{@value{RPREFIX}INVALID_ID} - invalid queue id@*
     610@code{@value{RPREFIX}INVALID_ADDRESS} - @code{buffer} is NULL@*
     611@code{@value{RPREFIX}INVALID_ADDRESS} - @code{count} is NULL@*
    606612@code{@value{RPREFIX}INVALID_SIZE} - invalid message size
    607613
    608614@subheading DESCRIPTION:
     
    674680@subheading DIRECTIVE STATUS CODES:
    675681@code{@value{RPREFIX}SUCCESSFUL} - message received successfully@*
    676682@code{@value{RPREFIX}INVALID_ID} - invalid queue id@*
     683@code{@value{RPREFIX}INVALID_ADDRESS} - @code{buffer} is NULL@*
     684@code{@value{RPREFIX}INVALID_ADDRESS} - @code{count} is NULL@*
    677685@code{@value{RPREFIX}UNSATISFIED} - queue is empty@*
    678686@code{@value{RPREFIX}TIMEOUT} - timed out waiting for message@*
    679687@code{@value{RPREFIX}OBJECT_WAS_DELETED} - queue deleted while waiting
     
    759767
    760768@subheading DIRECTIVE STATUS CODES:
    761769@code{@value{RPREFIX}SUCCESSFUL} - number of messages pending returned successfully@*
     770@code{@value{RPREFIX}INVALID_ADDRESS} - @code{count} is NULL@*
    762771@code{@value{RPREFIX}INVALID_ID} - invalid queue id
    763772
    764773@subheading DESCRIPTION:
     
    807816
    808817@subheading DIRECTIVE STATUS CODES:
    809818@code{@value{RPREFIX}SUCCESSFUL} - message queue flushed successfully@*
     819@code{@value{RPREFIX}INVALID_ADDRESS} - @code{count} is NULL@*
    810820@code{@value{RPREFIX}INVALID_ID} - invalid queue id
    811821
    812822@subheading DESCRIPTION:
  • doc/user/part.t

    RCS file: /usr1/CVS/rtems/doc/user/part.t,v
    retrieving revision 1.13
    diff -u -r1.13 part.t
     
    173173@code{@value{RPREFIX}INVALID_NAME} - invalid task name@*
    174174@code{@value{RPREFIX}TOO_MANY} - too many partitions created@*
    175175@code{@value{RPREFIX}INVALID_ADDRESS} - address not on four byte boundary@*
     176@code{@value{RPREFIX}INVALID_ADDRESS} - @code{starting_address} is NULL@*
     177@code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@*
    176178@code{@value{RPREFIX}INVALID_SIZE} - length or buffer size is 0@*
    177179@code{@value{RPREFIX}INVALID_SIZE} - length is less than the buffer size@*
    178180@code{@value{RPREFIX}INVALID_SIZE} - buffer size not a multiple of 4@*
     
    257259
    258260@subheading DIRECTIVE STATUS CODES:
    259261@code{@value{RPREFIX}SUCCESSFUL} - partition identified successfully@*
     262@code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@*
    260263@code{@value{RPREFIX}INVALID_NAME} - partition name not found@*
    261264@code{@value{RPREFIX}INVALID_NODE} - invalid node id
    262265
     
    376379
    377380@subheading DIRECTIVE STATUS CODES:
    378381@code{@value{RPREFIX}SUCCESSFUL} - buffer obtained successfully@*
     382@code{@value{RPREFIX}INVALID_ADDRESS} - @code{buffer} is NULL@*
    379383@code{@value{RPREFIX}INVALID_ID} - invalid partition id@*
    380384@code{@value{RPREFIX}UNSATISFIED} - all buffers are allocated
    381385
     
    430434
    431435@subheading DIRECTIVE STATUS CODES:
    432436@code{@value{RPREFIX}SUCCESSFUL} - buffer returned successfully@*
     437@code{@value{RPREFIX}INVALID_ADDRESS} - @code{buffer} is NULL@*
    433438@code{@value{RPREFIX}INVALID_ID} - invalid partition id@*
    434439@code{@value{RPREFIX}INVALID_ADDRESS} - buffer address not in partition
    435440
  • doc/user/region.t

    RCS file: /usr1/CVS/rtems/doc/user/region.t,v
    retrieving revision 1.14
    diff -u -r1.14 region.t
     
    263263
    264264@code{@value{RPREFIX}SUCCESSFUL} - region created successfully@*
    265265@code{@value{RPREFIX}INVALID_NAME} - invalid task name@*
     266@code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@*
     267@code{@value{RPREFIX}INVALID_ADDRESS} - @code{starting_address} is NULL@*
    266268@code{@value{RPREFIX}INVALID_ADDRESS} - address not on four byte boundary@*
    267269@code{@value{RPREFIX}TOO_MANY} - too many regions created@*
    268270@code{@value{RPREFIX}INVALID_SIZE} - invalid page size
     
    339341@subheading DIRECTIVE STATUS CODES:
    340342
    341343@code{@value{RPREFIX}SUCCESSFUL} - region identified successfully@*
     344@code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@*
    342345@code{@value{RPREFIX}INVALID_NAME} - region name not found
    343346
    344347@subheading DESCRIPTION:
     
    439442@subheading DIRECTIVE STATUS CODES:
    440443
    441444@code{@value{RPREFIX}SUCCESSFUL} - region extended successfully@*
     445@code{@value{RPREFIX}INVALID_ADDRESS} - @code{starting_address} is NULL@*
    442446@code{@value{RPREFIX}INVALID_ID} - invalid region id@*
    443447@code{@value{RPREFIX}INVALID_ADDRESS} - invalid address of area to add
    444448
     
    494498@subheading DIRECTIVE STATUS CODES:
    495499
    496500@code{@value{RPREFIX}SUCCESSFUL} - segment obtained successfully@*
     501@code{@value{RPREFIX}INVALID_ADDRESS} - @code{segment} is NULL@*
    497502@code{@value{RPREFIX}INVALID_ID} - invalid region id@*
    498503@code{@value{RPREFIX}INVALID_SIZE} - request is for zero bytes or exceeds
    499504the size of maximum segment which is possible for this region@*
     
    581586@subheading DIRECTIVE STATUS CODES:
    582587
    583588@code{@value{RPREFIX}SUCCESSFUL} - segment returned successfully@*
     589@code{@value{RPREFIX}INVALID_ADDRESS} - @code{segment} is NULL@*
    584590@code{@value{RPREFIX}INVALID_ID} - invalid region id@*
    585591@code{@value{RPREFIX}INVALID_ADDRESS} - segment address not in region
    586592
     
    642648@subheading DIRECTIVE STATUS CODES:
    643649
    644650@code{@value{RPREFIX}SUCCESSFUL} - segment obtained successfully@*
     651@code{@value{RPREFIX}INVALID_ADDRESS} - @code{segment} is NULL@*
     652@code{@value{RPREFIX}INVALID_ADDRESS} - @code{size} is NULL@*
    645653@code{@value{RPREFIX}INVALID_ID} - invalid region id@*
    646654@code{@value{RPREFIX}INVALID_ADDRESS} - segment address not in region
    647655
  • doc/user/sem.t

    RCS file: /usr1/CVS/rtems/doc/user/sem.t,v
    retrieving revision 1.20
    diff -u -r1.20 sem.t
     
    409409@subheading DIRECTIVE STATUS CODES:
    410410@code{@value{RPREFIX}SUCCESSFUL} - semaphore created successfully@*
    411411@code{@value{RPREFIX}INVALID_NAME} - invalid task name@*
     412@code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@*
    412413@code{@value{RPREFIX}TOO_MANY} - too many semaphores created@*
    413414@code{@value{RPREFIX}NOT_DEFINED} - invalid attribute set@*
    414415@code{@value{RPREFIX}INVALID_NUMBER} - invalid starting count for binary semaphore@*
  • doc/user/task.t

    RCS file: /usr1/CVS/rtems/doc/user/task.t,v
    retrieving revision 1.30
    diff -u -r1.30 task.t
     
    712712
    713713@subheading DIRECTIVE STATUS CODES:
    714714@code{@value{RPREFIX}SUCCESSFUL} - task created successfully@*
     715@code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@*
    715716@code{@value{RPREFIX}INVALID_NAME} - invalid task name@*
    716717@code{@value{RPREFIX}INVALID_SIZE} - stack too small@*
    717718@code{@value{RPREFIX}INVALID_PRIORITY} - invalid task priority@*
     
    819820
    820821@subheading DIRECTIVE STATUS CODES:
    821822@code{@value{RPREFIX}SUCCESSFUL} - task identified successfully@*
     823@code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@*
    822824@code{@value{RPREFIX}INVALID_NAME} - invalid task name@*
    823825@code{@value{RPREFIX}INVALID_NODE} - invalid node id
    824826
     
    12601262
    12611263@ifset is-Ada
    12621264@example
    1263 procedure Task_Delete (
     1265procedure Task_Mode (
    12641266   Mode_Set          : in     RTEMS.Mode;
    12651267   Mask              : in     RTEMS.Mode;
    12661268   Previous_Mode_Set : in     RTEMS.Mode;
     
    12701272@end ifset
    12711273
    12721274@subheading DIRECTIVE STATUS CODES:
    1273 @code{@value{RPREFIX}SUCCESSFUL} - task mode set successfully
     1275@code{@value{RPREFIX}SUCCESSFUL} - task mode set successfully@*
     1276@code{@value{RPREFIX}INVALID_ADDRESS} - @code{previous_mode_set} is NULL
    12741277
    12751278@subheading DESCRIPTION:
    12761279This directive manipulates the execution mode of the calling
     
    14311434
    14321435@subheading DIRECTIVE STATUS CODES:
    14331436@code{@value{RPREFIX}SUCCESSFUL} - note obtained successfully@*
     1437@code{@value{RPREFIX}INVALID_ADDRESS} - @code{note} is NULL@*
    14341438@code{@value{RPREFIX}INVALID_ID} - invalid task id@*
    14351439@code{@value{RPREFIX}INVALID_NUMBER} - invalid notepad location
    14361440
     
    15891593
    15901594@subheading DIRECTIVE STATUS CODES:
    15911595@code{@value{RPREFIX}SUCCESSFUL} - awakened at date/time successfully@*
     1596@code{@value{RPREFIX}INVALID_ADDRESS} - @code{time_buffer} is NULL@*
    15921597@code{@value{RPREFIX}INVALID_TIME_OF_DAY} - invalid time buffer@*
    15931598@code{@value{RPREFIX}NOT_DEFINED} - system date and time is not set
    15941599
     
    16181623@example
    16191624rtems_status_code rtems_task_variable_add(
    16201625  rtems_id  tid,
    1621   void    **ptr,
     1626  void    **task_variable,
    16221627  void    (*dtor)(void *)
    16231628);
    16241629@end example
     
    16411646
    16421647@subheading DIRECTIVE STATUS CODES:
    16431648@code{@value{RPREFIX}SUCCESSFUL} - per task variable added successfully@*
     1649@code{@value{RPREFIX}INVALID_ADDRESS} - @code{task_variable} is NULL@*
    16441650@code{@value{RPREFIX}INVALID_ID} - invalid task id@*
    16451651@code{@value{RPREFIX}NO_MEMORY} - invalid task id@*
    16461652@code{@value{RPREFIX}ILLEGAL_ON_REMOTE_OBJECT} - not supported on remote tasks@*
     
    16801686@example
    16811687rtems_status_code rtems_task_variable_get(
    16821688  rtems_id  tid,
    1683   void    **ptr,
    1684   void    **result
     1689  void    **task_variable,
     1690  void    **task_variable_value
    16851691);
    16861692@end example
    16871693@end ifset
     
    16991705
    17001706@subheading DIRECTIVE STATUS CODES:
    17011707@code{@value{RPREFIX}SUCCESSFUL} - per task variable added successfully@*
    1702 @code{@value{RPREFIX}INVALID_ID} - invalid task id@*
     1708@code{@value{RPREFIX}INVALID_ADDRESS} - @code{task_variable} is NULL@*
     1709@code{@value{RPREFIX}INVALID_ADDRESS} - @code{task_variable_value} is NULL@*
     1710@code{@value{RPREFIX}INVALID_ADDRESS} - @code{task_variable} is not found@*
    17031711@code{@value{RPREFIX}NO_MEMORY} - invalid task id@*
    17041712@code{@value{RPREFIX}ILLEGAL_ON_REMOTE_OBJECT} - not supported on remote tasks@*
    17051713
     
    17111719
    17121720@subheading NOTES:
    17131721
    1714 If you change memory which @code{result} points to, remember to declare that
    1715 memory as volatile, so that the compiler will optimize it correctly.  In this
    1716 case both the pointer @code{result} and data referenced by @code{result}
     1722If you change memory which @code{task_variable_value} points to,
     1723remember to declare that memory as volatile, so that the compiler
     1724will optimize it correctly.  In this case both the pointer
     1725@code{task_variable_value} and data referenced by @code{task_variable_value}
    17171726should be considered volatile.
    17181727
    17191728@page
     
    17311740@example
    17321741rtems_status_code rtems_task_variable_delete(
    17331742  rtems_id  tid,
    1734   void    **ptr
     1743  void    **task_variable
    17351744);
    17361745@end example
    17371746@end ifset
     
    17501759@code{@value{RPREFIX}SUCCESSFUL} - per task variable added successfully@*
    17511760@code{@value{RPREFIX}INVALID_ID} - invalid task id@*
    17521761@code{@value{RPREFIX}NO_MEMORY} - invalid task id@*
     1762@code{@value{RPREFIX}INVALID_ADDRESS} - @code{task_variable} is NULL@*
    17531763@code{@value{RPREFIX}ILLEGAL_ON_REMOTE_OBJECT} - not supported on remote tasks@*
    17541764
    17551765@subheading DESCRIPTION:
  • doc/user/timer.t

    RCS file: /usr1/CVS/rtems/doc/user/timer.t,v
    retrieving revision 1.16
    diff -u -r1.16 timer.t
     
    233233
    234234@subheading DIRECTIVE STATUS CODES:
    235235@code{@value{RPREFIX}SUCCESSFUL} - timer created successfully@*
     236@code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@*
    236237@code{@value{RPREFIX}INVALID_NAME} - invalid timer name@*
    237238@code{@value{RPREFIX}TOO_MANY} - too many timers created
    238239
     
    281282
    282283@subheading DIRECTIVE STATUS CODES:
    283284@code{@value{RPREFIX}SUCCESSFUL} - timer identified successfully@*
     285@code{@value{RPREFIX}INVALID_ADDRESS} - @code{id} is NULL@*
    284286@code{@value{RPREFIX}INVALID_NAME} - timer name not found
    285287
    286288@subheading DESCRIPTION:
     
    422424
    423425@subheading DIRECTIVE STATUS CODES:
    424426@code{@value{RPREFIX}SUCCESSFUL} - timer initiated successfully@*
     427@code{@value{RPREFIX}INVALID_ADDRESS} - @code{routine} is NULL@*
    425428@code{@value{RPREFIX}INVALID_ID} - invalid timer id@*
    426429@code{@value{RPREFIX}INVALID_NUMBER} - invalid interval
    427430
     
    475478
    476479@subheading DIRECTIVE STATUS CODES:
    477480@code{@value{RPREFIX}SUCCESSFUL} - timer initiated successfully@*
     481@code{@value{RPREFIX}INVALID_ADDRESS} - @code{routine} is NULL@*
     482@code{@value{RPREFIX}INVALID_ADDRESS} - @code{wall_time} is NULL@*
    478483@code{@value{RPREFIX}INVALID_ID} - invalid timer id@*
    479484@code{@value{RPREFIX}NOT_DEFINED} - system date and time is not set@*
    480485@code{@value{RPREFIX}INVALID_CLOCK} - invalid time of day
     
    583588
    584589@subheading DIRECTIVE STATUS CODES:
    585590@code{@value{RPREFIX}SUCCESSFUL} - timer initiated successfully@*
     591@code{@value{RPREFIX}INVALID_ADDRESS} - @code{routine} is NULL@*
    586592@code{@value{RPREFIX}INVALID_ID} - invalid timer id@*
    587593@code{@value{RPREFIX}INVALID_NUMBER} - invalid interval@*
    588594@code{@value{RPREFIX}INCORRECT_STATE} - Timer Server not initiated
     
    639645
    640646@subheading DIRECTIVE STATUS CODES:
    641647@code{@value{RPREFIX}SUCCESSFUL} - timer initiated successfully@*
     648@code{@value{RPREFIX}INVALID_ADDRESS} - @code{routine} is NULL@*
     649@code{@value{RPREFIX}INVALID_ADDRESS} - @code{wall_time} is NULL@*
    642650@code{@value{RPREFIX}INVALID_ID} - invalid timer id@*
    643651@code{@value{RPREFIX}NOT_DEFINED} - system date and time is not set@*
    644652@code{@value{RPREFIX}INVALID_CLOCK} - invalid time of day@*