Changeset 138aa38 in rtems
- Timestamp:
- 05/21/04 20:19:33 (19 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- c984fb3
- Parents:
- 58accdd
- Location:
- cpukit
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/ChangeLog
r58accdd r138aa38 1 2004-05-21 Joel Sherrill <joel@OARcorp.com> 2 3 PR 628/rtems 4 * posix/src/killinfo.c, posix/src/pthreadkill.c, posix/src/ptimer1.c, 5 posix/src/sigaction.c, posix/src/sigaddset.c, posix/src/sigsuspend.c: 6 Signal set of 0 is supposed to return EINVAL. In addition 7 timer_create needed to return an error if the clock was not 8 CLOCK_REALTIME. 9 1 10 2004-05-21 Joel Sherrill <joel@OARcorp.com> 2 11 -
cpukit/posix/src/killinfo.c
r58accdd r138aa38 67 67 68 68 /* 69 * Validate the signal passed if not 0.70 */ 71 72 if ( sig && !is_valid_signo(sig) ) {69 * Validate the signal passed. 70 */ 71 72 if ( !sig ) 73 73 rtems_set_errno_and_return_minus_one( EINVAL ); 74 } 74 75 if ( !is_valid_signo(sig) ) 76 rtems_set_errno_and_return_minus_one( EINVAL ); 75 77 76 78 /* … … 78 80 */ 79 81 80 if ( !sig ||_POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) {82 if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) { 81 83 return 0; 82 84 } -
cpukit/posix/src/pthreadkill.c
r58accdd r138aa38 35 35 Objects_Locations location; 36 36 37 if ( sig && !is_valid_signo(sig) ) 37 if ( !sig ) 38 rtems_set_errno_and_return_minus_one( EINVAL ); 39 40 if ( !is_valid_signo(sig) ) 38 41 rtems_set_errno_and_return_minus_one( EINVAL ); 39 42 -
cpukit/posix/src/ptimer1.c
r58accdd r138aa38 272 272 int timer_pos; /* Position in the table of timers */ 273 273 274 if ( clock_id != CLOCK_REALTIME ) 275 rtems_set_errno_and_return_minus_one( EINVAL ); 276 274 277 /* 275 278 * The data of the structure evp are checked in order to verify if they … … 284 287 rtems_set_errno_and_return_minus_one( EINVAL ); 285 288 } 289 290 if ( !evp->sigev_signo ) 291 rtems_set_errno_and_return_minus_one( EINVAL ); 292 293 if ( !is_valid_signo(evp->sigev_signo) ) 294 rtems_set_errno_and_return_minus_one( EINVAL ); 286 295 } 287 296 -
cpukit/posix/src/sigaction.c
r58accdd r138aa38 44 44 45 45 if ( !sig ) 46 r eturn 0;46 rtems_set_errno_and_return_minus_one( EINVAL ); 47 47 48 48 if ( !is_valid_signo(sig) ) -
cpukit/posix/src/sigaddset.c
r58accdd r138aa38 33 33 34 34 if ( !signo ) 35 r eturn 0;35 rtems_set_errno_and_return_minus_one( EINVAL ); 36 36 37 37 if ( !is_valid_signo(signo) ) -
cpukit/posix/src/sigsuspend.c
r58accdd r138aa38 2 2 * 3.3.7 Wait for a Signal, P1003.1b-1993, p. 75 3 3 * 4 * COPYRIGHT (c) 1989- 1999.4 * COPYRIGHT (c) 1989-2004. 5 5 * On-Line Applications Research Corporation (OAR). 6 6 * … … 22 22 #include <rtems/posix/pthread.h> 23 23 #include <rtems/posix/psignal.h> 24 #include <rtems/seterr.h> 24 25 25 26 int sigsuspend( … … 42 43 (void) sigprocmask( SIG_SETMASK, &saved_signals_blocked, NULL ); 43 44 45 /* 46 * sigtimedwait() returns the signal number while sigsuspend() 47 * is supposed to return -1 and EINTR when a signal is caught. 48 */ 49 if ( status != -1 ) 50 rtems_set_errno_and_return_minus_one( EINTR ); 51 44 52 return status; 45 53 }
Note: See TracChangeset
for help on using the changeset viewer.