4.104.115
Last change
on this file since 3bacb250 was
b2bf0e4,
checked in by Joel Sherrill <joel.sherrill@…>, on 08/05/09 at 15:39:59
|
2009-08-05 Joel Sherrill <joel.sherrill@…>
- posix/include/rtems/posix/psignal.h, posix/src/mqueuecreatesupp.c,
posix/src/psignalclearprocesssignals.c,
posix/src/psignalclearsignals.c: Minor rework to ease coverage
analysis.
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 1989-2007. |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.com/license/LICENSE. |
---|
8 | * |
---|
9 | * $Id$ |
---|
10 | */ |
---|
11 | |
---|
12 | #if HAVE_CONFIG_H |
---|
13 | #include "config.h" |
---|
14 | #endif |
---|
15 | |
---|
16 | #include <errno.h> |
---|
17 | #include <pthread.h> |
---|
18 | #include <signal.h> |
---|
19 | |
---|
20 | #include <rtems/system.h> |
---|
21 | #include <rtems/score/isr.h> |
---|
22 | #include <rtems/score/thread.h> |
---|
23 | #include <rtems/score/tqdata.h> |
---|
24 | #include <rtems/score/wkspace.h> |
---|
25 | #include <rtems/seterr.h> |
---|
26 | #include <rtems/posix/threadsup.h> |
---|
27 | #include <rtems/posix/psignal.h> |
---|
28 | #include <rtems/posix/pthread.h> |
---|
29 | #include <rtems/posix/time.h> |
---|
30 | #include <stdio.h> |
---|
31 | |
---|
32 | /*PAGE |
---|
33 | * |
---|
34 | * _POSIX_signals_Clear_process_signals |
---|
35 | */ |
---|
36 | |
---|
37 | void _POSIX_signals_Clear_process_signals( |
---|
38 | int signo |
---|
39 | ) |
---|
40 | { |
---|
41 | sigset_t mask; |
---|
42 | bool clear_signal; |
---|
43 | |
---|
44 | clear_signal = true; |
---|
45 | mask = signo_to_mask( signo ); |
---|
46 | |
---|
47 | ISR_Level level; |
---|
48 | |
---|
49 | _ISR_Disable( level ); |
---|
50 | if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { |
---|
51 | if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) ) |
---|
52 | clear_signal = false; |
---|
53 | } |
---|
54 | if ( clear_signal ) { |
---|
55 | _POSIX_signals_Pending &= ~mask; |
---|
56 | if ( !_POSIX_signals_Pending ) |
---|
57 | _Thread_Do_post_task_switch_extension--; |
---|
58 | } |
---|
59 | _ISR_Enable( level ); |
---|
60 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.