Changeset 948721c in rtems


Ignore:
Timestamp:
08/15/96 16:24:44 (26 years ago)
Author:
Mark Johannes <Mark.Johannes@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
de45ddc
Parents:
48e685c
Message:

pthread_kill: moved check for SA_SIGINFO to allow for validation of all
parameters. Also changed returns to macro of -1 and errno set.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/src/psignal.c

    r48e685c r948721c  
    12551255   */
    12561256
    1257   if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO )
    1258     return ENOSYS;
    1259 
    12601257  the_thread = _POSIX_Threads_Get( thread, &location );
    12611258  switch ( location ) {
    12621259    case OBJECTS_ERROR:
    12631260    case OBJECTS_REMOTE:
    1264       return ESRCH;
     1261      set_errno_and_return_minus_one( ESRCH );
    12651262    case OBJECTS_LOCAL:
    12661263      /*
     
    12721269      if ( sig ) {
    12731270
     1271        if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO )
     1272          set_errno_and_return_minus_one( ENOSYS );
     1273
    12741274        /* XXX critical section */
    12751275
     
    12771277
    12781278        (void) _POSIX_signals_Unblock_thread( the_thread, sig, NULL );
    1279     }
    1280     _Thread_Enable_dispatch();
    1281     return 0;
     1279      }
     1280      _Thread_Enable_dispatch();
     1281      return 0;
    12821282  }
    12831283
  • cpukit/posix/src/psignal.c

    r48e685c r948721c  
    12551255   */
    12561256
    1257   if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO )
    1258     return ENOSYS;
    1259 
    12601257  the_thread = _POSIX_Threads_Get( thread, &location );
    12611258  switch ( location ) {
    12621259    case OBJECTS_ERROR:
    12631260    case OBJECTS_REMOTE:
    1264       return ESRCH;
     1261      set_errno_and_return_minus_one( ESRCH );
    12651262    case OBJECTS_LOCAL:
    12661263      /*
     
    12721269      if ( sig ) {
    12731270
     1271        if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO )
     1272          set_errno_and_return_minus_one( ENOSYS );
     1273
    12741274        /* XXX critical section */
    12751275
     
    12771277
    12781278        (void) _POSIX_signals_Unblock_thread( the_thread, sig, NULL );
    1279     }
    1280     _Thread_Enable_dispatch();
    1281     return 0;
     1279      }
     1280      _Thread_Enable_dispatch();
     1281      return 0;
    12821282  }
    12831283
Note: See TracChangeset for help on using the changeset viewer.