Update signal macros after upgrade to snapshot1 (#144)

This should probably have been part of #140 but we don't actually
support signals so this doesn't get much testing I imagine.

The old names like `__WASI_SIGBUS` no longer exist and the new names
look like `__WASI_SIGNAL_BUS`.
This commit is contained in:
Sam Clegg 2019-12-03 11:23:40 -06:00 committed by Dan Gohman
parent 8b3266db92
commit f645f498df
2 changed files with 60 additions and 60 deletions

View File

@ -1583,42 +1583,42 @@
#define SHUT_RD __WASI_SDFLAGS_RD #define SHUT_RD __WASI_SDFLAGS_RD
#define SHUT_RDWR (SHUT_RD | SHUT_WR) #define SHUT_RDWR (SHUT_RD | SHUT_WR)
#define SHUT_WR __WASI_SDFLAGS_WR #define SHUT_WR __WASI_SDFLAGS_WR
#define SIGABRT __WASI_SIGABRT #define SIGABRT __WASI_SIGNAL_ABRT
#define SIGALRM __WASI_SIGALRM #define SIGALRM __WASI_SIGNAL_ALRM
#define SIGBUS __WASI_SIGBUS #define SIGBUS __WASI_SIGNAL_BUS
#define SIGCHLD __WASI_SIGCHLD #define SIGCHLD __WASI_SIGNAL_CHLD
#define SIGCONT __WASI_SIGCONT #define SIGCONT __WASI_SIGNAL_CONT
#define SIGEV_NONE 1 #define SIGEV_NONE 1
#define SIGEV_SIGNAL 0 #define SIGEV_SIGNAL 0
#define SIGEV_THREAD 2 #define SIGEV_THREAD 2
#define SIGFPE __WASI_SIGFPE #define SIGFPE __WASI_SIGNAL_FPE
#define SIGHUP __WASI_SIGHUP #define SIGHUP __WASI_SIGNAL_HUP
#define SIGILL __WASI_SIGILL #define SIGILL __WASI_SIGNAL_ILL
#define SIGINT __WASI_SIGINT #define SIGINT __WASI_SIGNAL_INT
#define SIGIO SIGPOLL #define SIGIO SIGPOLL
#define SIGIOT SIGABRT #define SIGIOT SIGABRT
#define SIGKILL __WASI_SIGKILL #define SIGKILL __WASI_SIGNAL_KILL
#define SIGPIPE __WASI_SIGPIPE #define SIGPIPE __WASI_SIGNAL_PIPE
#define SIGPOLL __WASI_SIGPOLL #define SIGPOLL __WASI_SIGNAL_POLL
#define SIGPROF __WASI_SIGPROF #define SIGPROF __WASI_SIGNAL_PROF
#define SIGPWR __WASI_SIGPWR #define SIGPWR __WASI_SIGNAL_PWR
#define SIGQUIT __WASI_SIGQUIT #define SIGQUIT __WASI_SIGNAL_QUIT
#define SIGSEGV __WASI_SIGSEGV #define SIGSEGV __WASI_SIGNAL_SEGV
#define SIGSTOP __WASI_SIGSTOP #define SIGSTOP __WASI_SIGNAL_STOP
#define SIGSYS __WASI_SIGSYS #define SIGSYS __WASI_SIGNAL_SYS
#define SIGTERM __WASI_SIGTERM #define SIGTERM __WASI_SIGNAL_TERM
#define SIGTRAP __WASI_SIGTRAP #define SIGTRAP __WASI_SIGNAL_TRAP
#define SIGTSTP __WASI_SIGTSTP #define SIGTSTP __WASI_SIGNAL_TSTP
#define SIGTTIN __WASI_SIGTTIN #define SIGTTIN __WASI_SIGNAL_TTIN
#define SIGTTOU __WASI_SIGTTOU #define SIGTTOU __WASI_SIGNAL_TTOU
#define SIGUNUSED SIGSYS #define SIGUNUSED SIGSYS
#define SIGURG __WASI_SIGURG #define SIGURG __WASI_SIGNAL_URG
#define SIGUSR1 __WASI_SIGUSR1 #define SIGUSR1 __WASI_SIGNAL_USR1
#define SIGUSR2 __WASI_SIGUSR2 #define SIGUSR2 __WASI_SIGNAL_USR2
#define SIGVTALRM __WASI_SIGVTALRM #define SIGVTALRM __WASI_SIGNAL_VTALRM
#define SIGWINCH __WASI_SIGWINCH #define SIGWINCH __WASI_SIGNAL_WINCH
#define SIGXCPU __WASI_SIGXCPU #define SIGXCPU __WASI_SIGNAL_XCPU
#define SIGXFSZ __WASI_SIGXFSZ #define SIGXFSZ __WASI_SIGNAL_XFSZ
#define SIG_ATOMIC_MAX INT32_MAX #define SIG_ATOMIC_MAX INT32_MAX
#define SIG_ATOMIC_MIN INT32_MIN #define SIG_ATOMIC_MIN INT32_MIN
#define SIG_BLOCK 0 #define SIG_BLOCK 0

View File

@ -3,36 +3,36 @@
#include <wasi/api.h> #include <wasi/api.h>
#define SIGHUP __WASI_SIGHUP #define SIGHUP __WASI_SIGNAL_HUP
#define SIGINT __WASI_SIGINT #define SIGINT __WASI_SIGNAL_INT
#define SIGQUIT __WASI_SIGQUIT #define SIGQUIT __WASI_SIGNAL_QUIT
#define SIGILL __WASI_SIGILL #define SIGILL __WASI_SIGNAL_ILL
#define SIGTRAP __WASI_SIGTRAP #define SIGTRAP __WASI_SIGNAL_TRAP
#define SIGABRT __WASI_SIGABRT #define SIGABRT __WASI_SIGNAL_ABRT
#define SIGBUS __WASI_SIGBUS #define SIGBUS __WASI_SIGNAL_BUS
#define SIGFPE __WASI_SIGFPE #define SIGFPE __WASI_SIGNAL_FPE
#define SIGKILL __WASI_SIGKILL #define SIGKILL __WASI_SIGNAL_KILL
#define SIGUSR1 __WASI_SIGUSR1 #define SIGUSR1 __WASI_SIGNAL_USR1
#define SIGSEGV __WASI_SIGSEGV #define SIGSEGV __WASI_SIGNAL_SEGV
#define SIGUSR2 __WASI_SIGUSR2 #define SIGUSR2 __WASI_SIGNAL_USR2
#define SIGPIPE __WASI_SIGPIPE #define SIGPIPE __WASI_SIGNAL_PIPE
#define SIGALRM __WASI_SIGALRM #define SIGALRM __WASI_SIGNAL_ALRM
#define SIGTERM __WASI_SIGTERM #define SIGTERM __WASI_SIGNAL_TERM
#define SIGCHLD __WASI_SIGCHLD #define SIGCHLD __WASI_SIGNAL_CHLD
#define SIGCONT __WASI_SIGCONT #define SIGCONT __WASI_SIGNAL_CONT
#define SIGSTOP __WASI_SIGSTOP #define SIGSTOP __WASI_SIGNAL_STOP
#define SIGTSTP __WASI_SIGTSTP #define SIGTSTP __WASI_SIGNAL_TSTP
#define SIGTTIN __WASI_SIGTTIN #define SIGTTIN __WASI_SIGNAL_TTIN
#define SIGTTOU __WASI_SIGTTOU #define SIGTTOU __WASI_SIGNAL_TTOU
#define SIGURG __WASI_SIGURG #define SIGURG __WASI_SIGNAL_URG
#define SIGXCPU __WASI_SIGXCPU #define SIGXCPU __WASI_SIGNAL_XCPU
#define SIGXFSZ __WASI_SIGXFSZ #define SIGXFSZ __WASI_SIGNAL_XFSZ
#define SIGVTALRM __WASI_SIGVTALRM #define SIGVTALRM __WASI_SIGNAL_VTALRM
#define SIGPROF __WASI_SIGPROF #define SIGPROF __WASI_SIGNAL_PROF
#define SIGWINCH __WASI_SIGWINCH #define SIGWINCH __WASI_SIGNAL_WINCH
#define SIGPOLL __WASI_SIGPOLL #define SIGPOLL __WASI_SIGNAL_POLL
#define SIGPWR __WASI_SIGPWR #define SIGPWR __WASI_SIGNAL_PWR
#define SIGSYS __WASI_SIGSYS #define SIGSYS __WASI_SIGNAL_SYS
#define SIGIOT SIGABRT #define SIGIOT SIGABRT
#define SIGIO SIGPOLL #define SIGIO SIGPOLL