diff options
| author | BernardXiong <[email protected]> | 2018-03-01 13:36:22 +0800 |
|---|---|---|
| committer | BernardXiong <[email protected]> | 2018-03-01 13:36:22 +0800 |
| commit | 38b9ed3118f7df9fd683b9d3bd4425ab604ee2bc (patch) | |
| tree | 2b7acaf70ec61499d4266d74a8c0551a85260111 /include/rtdef.h | |
| parent | ef668bc3aa99992208ba6808fe430e5d00849b2f (diff) | |
[Kernel] add sigwait implementation
Diffstat (limited to 'include/rtdef.h')
| -rw-r--r-- | include/rtdef.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index f2da3ac7bc..2404f7a364 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -451,8 +451,10 @@ typedef struct rt_timer *rt_timer_t; * @addtogroup Signal */ #ifdef RT_USING_SIGNALS +#include <libc/libc_signal.h> typedef unsigned long rt_sigset_t; typedef void (*rt_sighandler_t)(int signo); +typedef siginfo_t rt_siginfo_t; #define RT_SIG_MAX 32 #endif @@ -481,7 +483,7 @@ typedef void (*rt_sighandler_t)(int signo); #define RT_THREAD_STAT_SIGNAL 0x10 #define RT_THREAD_STAT_SIGNAL_READY (RT_THREAD_STAT_SIGNAL | RT_THREAD_READY) -#define RT_THREAD_STAT_SIGNAL_SUSPEND 0x20 +#define RT_THREAD_STAT_SIGNAL_WAIT 0x20 #define RT_THREAD_STAT_SIGNAL_MASK 0xf0 /** |
