Changeset cfc43898 in rtems
- Timestamp:
- 05/21/04 20:16:39 (19 years ago)
- Children:
- 01c96bfb
- Parents:
- 0732eb4
- Location:
- cpukit/posix
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/posix/ChangeLog
r0732eb4 rcfc43898 1 2004-05-21 Joel Sherrill <joel@OARcorp.com> 2 3 PR 628/rtems 4 * src/killinfo.c, src/pthreadkill.c, src/ptimer1.c, src/sigaction.c, 5 src/sigaddset.c, src/sigsuspend.c: Signal set of 0 is supposed to 6 return EINVAL. In addition timer_create needed to return an error 7 if the clock was not CLOCK_REALTIME. 8 1 9 2004-05-21 Joel Sherrill <joel@OARcorp.com> 2 10 -
cpukit/posix/src/killinfo.c
r0732eb4 rcfc43898 67 67 68 68 /* 69 * Validate the signal passed if not 0.69 * Validate the signal passed. 70 70 */ 71 71 72 if ( sig && !is_valid_signo(sig) ) {72 if ( !sig ) 73 73 rtems_set_errno_and_return_minus_one( EINVAL ); 74 75 if ( !is_valid_signo(sig) ) { 76 rtems_set_errno_and_return_minus_one( EINVAL ); 74 77 } 75 78 … … 78 81 */ 79 82 80 if ( !sig ||_POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) {83 if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) { 81 84 return 0; 82 85 } -
cpukit/posix/src/pthreadkill.c
r0732eb4 rcfc43898 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
r0732eb4 rcfc43898 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 } 286 } 287 288 /* 289 * A timer is created using the primitive rtems_timer_create 290 */ 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 ); 295 } 296 297 /* 298 * A timer is created using the primitive rtems_timer_create 299 */ 291 300 292 301 return_v = rtems_timer_create ( clock_id, &timer_id ); -
cpukit/posix/src/sigaction.c
r0732eb4 rcfc43898 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
r0732eb4 rcfc43898 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
r0732eb4 rcfc43898 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.