Skip to content

Commit a5f24ab

Browse files
committed
Add more signal codes to constant map
1 parent 53583b8 commit a5f24ab

File tree

1 file changed

+35
-4
lines changed

1 file changed

+35
-4
lines changed

src/vm/moar/QAST/QASTOperationsMAST.nqp

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1877,10 +1877,41 @@ my %const_map := nqp::hash(
18771877
'STAT_PLATFORM_BLOCKSIZE', -6,
18781878
'STAT_PLATFORM_BLOCKS', -7,
18791879

1880-
'SIG_INT', 1,
1881-
'SIG_BREAK', 2,
1882-
'SIG_HUP', 3,
1883-
'SIG_WINCH', 4,
1880+
'SIG_HUP', 1,
1881+
'SIG_INT', 2,
1882+
'SIG_QUIT', 3,
1883+
'SIG_ILL', 4,
1884+
'SIG_TRAP', 5,
1885+
'SIG_ABRT', 6,
1886+
'SIG_EMT', 7,
1887+
'SIG_FPE', 8,
1888+
'SIG_KILL', 9,
1889+
'SIG_BUS', 10,
1890+
'SIG_SEGV', 11,
1891+
'SIG_SYS', 12,
1892+
'SIG_PIPE', 13,
1893+
'SIG_ALRM', 14,
1894+
'SIG_TERM', 15,
1895+
'SIG_URG', 16,
1896+
'SIG_STOP', 17,
1897+
'SIG_TSTP', 18,
1898+
'SIG_CONT', 19,
1899+
'SIG_CHLD', 20,
1900+
'SIG_TTIN', 21,
1901+
'SIG_TTOU', 22,
1902+
'SIG_IO', 23,
1903+
'SIG_XCPU', 24,
1904+
'SIG_XFSZ', 25,
1905+
'SIG_VTALRM', 26,
1906+
'SIG_PROF', 27,
1907+
'SIG_WINCH', 28,
1908+
'SIG_INFO', 29,
1909+
'SIG_USR1', 30,
1910+
'SIG_USR2', 31,
1911+
'SIG_THR', 32,
1912+
'SIG_STKFLT', 116,
1913+
'SIG_PWR', 130,
1914+
'SIG_BREAK', 221,
18841915
);
18851916
QAST::MASTOperations.add_core_op('const', -> $qastcomp, $op {
18861917
if nqp::existskey(%const_map, $op.name) {

0 commit comments

Comments
 (0)