4.104.114.84.95
Last change
on this file since 07d880f4 was
07d880f4,
checked in by Joel Sherrill <joel.sherrill@…>, on 01/31/99 at 20:45:31
|
Split psignal.c into many more files. This reduced the amount of
object code that has to be loaded just for initializing the signal
manager.
|
-
Property mode set to
100644
|
File size:
804 bytes
|
Line | |
---|
1 | /* |
---|
2 | * 3.3.6 Examine Pending Signals, P1003.1b-1993, p. 75 |
---|
3 | * |
---|
4 | * COPYRIGHT (c) 1989-1998. |
---|
5 | * On-Line Applications Research Corporation (OAR). |
---|
6 | * Copyright assigned to U.S. Government, 1994. |
---|
7 | * |
---|
8 | * The license and distribution terms for this file may be |
---|
9 | * found in the file LICENSE in this distribution or at |
---|
10 | * http://www.OARcorp.com/rtems/license.html. |
---|
11 | * |
---|
12 | * $Id$ |
---|
13 | */ |
---|
14 | |
---|
15 | |
---|
16 | #include <signal.h> |
---|
17 | #include <errno.h> |
---|
18 | |
---|
19 | #include <rtems/system.h> |
---|
20 | #include <rtems/posix/pthread.h> |
---|
21 | #include <rtems/posix/psignal.h> |
---|
22 | #include <rtems/posix/seterr.h> |
---|
23 | |
---|
24 | int sigpending( |
---|
25 | sigset_t *set |
---|
26 | ) |
---|
27 | { |
---|
28 | POSIX_API_Control *api; |
---|
29 | |
---|
30 | if ( !set ) |
---|
31 | set_errno_and_return_minus_one( EINVAL ); |
---|
32 | |
---|
33 | api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ]; |
---|
34 | |
---|
35 | *set = api->signals_pending | _POSIX_signals_Pending; |
---|
36 | |
---|
37 | return 0; |
---|
38 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.