diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-11-20 21:52:19 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-11-20 21:52:19 +0000 |
commit | d05ab3519a2b742b0eed656995ac9ea0e6d5699e (patch) | |
tree | e305211aec78c752f4f7545afde6136e0c603b42 /cpukit/posix/include/rtems/posix/psignal.h | |
parent | 2008-11-20 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-d05ab3519a2b742b0eed656995ac9ea0e6d5699e.tar.bz2 |
2008-11-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/Makefile.am, posix/include/rtems/posix/psignal.h: Add stubs for
gettimer() and setitimer().
* posix/src/getitimer.c, posix/src/setitimer.c: New files.
Diffstat (limited to '')
-rw-r--r-- | cpukit/posix/include/rtems/posix/psignal.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/cpukit/posix/include/rtems/posix/psignal.h b/cpukit/posix/include/rtems/posix/psignal.h index 66c6bd1bc3..2d5a450e91 100644 --- a/cpukit/posix/include/rtems/posix/psignal.h +++ b/cpukit/posix/include/rtems/posix/psignal.h @@ -23,9 +23,14 @@ */ #define SIGNAL_EMPTY_MASK 0x00000000 -#define SIGNAL_ALL_MASK 0xffffffff - -#define signo_to_mask( _sig ) (1 << ((_sig) - 1)) +#define SIGNAL_ALL_MASK 0xffffffffL + +static inline sigset_t signo_to_mask( + uint32_t sig +) +{ + return (1 << sig) - 1; +} #define is_valid_signo( _sig ) \ ((_sig) >= 1 && (_sig) <= 32 ) |