aboutsummaryrefslogtreecommitdiff
path: root/system/include/libc/sys/signal.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-01-04 08:37:16 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-01-04 08:37:16 -0800
commit0086d64c19c523b949589a86398fda85481ddd4a (patch)
tree802a8a0e322741dbae3720ce48fc18bda00177b1 /system/include/libc/sys/signal.h
parent56610cf496a124108701181163492b8961db924d (diff)
misc header improvements for building llvm
Diffstat (limited to 'system/include/libc/sys/signal.h')
-rw-r--r--system/include/libc/sys/signal.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/system/include/libc/sys/signal.h b/system/include/libc/sys/signal.h
index e1c2b34a..543b626e 100644
--- a/system/include/libc/sys/signal.h
+++ b/system/include/libc/sys/signal.h
@@ -14,7 +14,7 @@ extern "C" {
typedef unsigned long sigset_t;
-#if defined(__rtems__)
+#if defined(__rtems__) || defined(EMSCRIPTEN)
#if defined(_POSIX_REALTIME_SIGNALS)
@@ -71,6 +71,8 @@ typedef struct {
#define SA_NOCLDSTOP 1 /* Do not generate SIGCHLD when children stop */
#define SA_SIGINFO 2 /* Invoke the signal catching function with */
/* three arguments instead of one. */
+#define SA_NODEFER 4 /* XXX Emscripten */
+#define SA_RESETHAND 8 /* XXX Emscripten */
/* struct sigaction notes from POSIX:
*
@@ -80,7 +82,7 @@ typedef struct {
* application should not use both simultaneously.
*/
-typedef void (*_sig_func_ptr)();
+typedef void (*_sig_func_ptr)(int); /* XXX Emscripten */
struct sigaction {
int sa_flags; /* Special flags to affect behavior of signal */