5 #define signal(a,b) /* Signals not supported on this target - make them go away */
8 /* Signal handlers, we set breakpoints in them to make sure that the
9 signals really get delivered. */
112 handle_PIPE (int sig
)
123 handle_ALRM (int sig
)
145 handle_TSTP (int sig
)
156 handle_CONT (int sig
)
167 handle_CHLD (int sig
)
178 handle_TTIN (int sig
)
189 handle_TTOU (int sig
)
211 handle_XCPU (int sig
)
222 handle_XFSZ (int sig
)
233 handle_VTALRM (int sig
)
244 handle_PROF (int sig
)
255 handle_WINCH (int sig
)
266 handle_LOST (int sig
)
277 handle_USR1 (int sig
)
288 handle_USR2 (int sig
)
310 handle_POLL (int sig
)
321 handle_WIND (int sig
)
332 handle_PHONE (int sig
)
343 handle_WAITING (int sig
)
365 handle_DANGER (int sig
)
376 handle_GRANT (int sig
)
387 handle_RETRACT (int sig
)
409 handle_SOUND (int sig
)
431 handle_PRIO (int sig
)
783 handle_TERM (int sig
)
792 /* Functions to send signals. These also serve as markers. */
796 kill (getpid (), SIGABRT
);
804 kill (getpid (), SIGHUP
);
815 kill (getpid (), SIGQUIT
);
826 kill (getpid (), SIGILL
);
837 kill (getpid (), SIGEMT
);
849 /* The intent behind generating SIGFPE this way is to check the mapping
850 from the CPU exception itself to the signals. It would be nice to
851 do the same for SIGBUS, SIGSEGV, etc., but I suspect that even this
852 test might turn out to be insufficiently portable. */
855 /* Loses on the PA because after the signal handler executes we try to
856 re-execute the failing instruction again. Perhaps we could siglongjmp
857 out of the signal handler? */
858 /* The expect script looks for the word "kill"; don't delete it. */
859 return 5 / x
; /* and we both started jumping up and down yelling kill */
861 kill (getpid (), SIGFPE
);
870 kill (getpid (), SIGBUS
);
881 kill (getpid (), SIGSEGV
);
892 kill (getpid (), SIGSYS
);
903 kill (getpid (), SIGPIPE
);
914 kill (getpid (), SIGALRM
);
925 kill (getpid (), SIGURG
);
936 kill (getpid (), SIGTSTP
);
947 kill (getpid (), SIGCONT
);
958 kill (getpid (), SIGCHLD
);
969 kill (getpid (), SIGTTIN
);
980 kill (getpid (), SIGTTOU
);
991 kill (getpid (), SIGIO
);
1002 kill (getpid (), SIGXCPU
);
1013 kill (getpid (), SIGXFSZ
);
1024 kill (getpid (), SIGVTALRM
);
1035 kill (getpid (), SIGPROF
);
1046 kill (getpid (), SIGWINCH
);
1056 #if defined(SIGLOST) && (!defined(SIGABRT) || SIGLOST != SIGABRT)
1057 kill (getpid (), SIGLOST
);
1068 kill (getpid (), SIGUSR1
);
1079 kill (getpid (), SIGUSR2
);
1090 kill (getpid (), SIGPWR
);
1100 #if defined (SIGPOLL) && (!defined (SIGIO) || SIGPOLL != SIGIO)
1101 kill (getpid (), SIGPOLL
);
1112 kill (getpid (), SIGWIND
);
1123 kill (getpid (), SIGPHONE
);
1134 kill (getpid (), SIGWAITING
);
1145 kill (getpid (), SIGLWP
);
1156 kill (getpid (), SIGDANGER
);
1167 kill (getpid (), SIGGRANT
);
1178 kill (getpid (), SIGRETRACT
);
1189 kill (getpid (), SIGMSG
);
1200 kill (getpid (), SIGSOUND
);
1211 kill (getpid (), SIGSAK
);
1222 kill (getpid (), SIGPRIO
);
1233 kill (getpid (), 33);
1244 kill (getpid (), 34);
1255 kill (getpid (), 35);
1266 kill (getpid (), 36);
1277 kill (getpid (), 37);
1288 kill (getpid (), 38);
1299 kill (getpid (), 39);
1310 kill (getpid (), 40);
1321 kill (getpid (), 41);
1332 kill (getpid (), 42);
1343 kill (getpid (), 43);
1354 kill (getpid (), 44);
1365 kill (getpid (), 45);
1376 kill (getpid (), 46);
1387 kill (getpid (), 47);
1398 kill (getpid (), 48);
1409 kill (getpid (), 49);
1420 kill (getpid (), 50);
1431 kill (getpid (), 51);
1442 kill (getpid (), 52);
1453 kill (getpid (), 53);
1464 kill (getpid (), 54);
1475 kill (getpid (), 55);
1486 kill (getpid (), 56);
1497 kill (getpid (), 57);
1508 kill (getpid (), 58);
1519 kill (getpid (), 59);
1530 kill (getpid (), 60);
1541 kill (getpid (), 61);
1552 kill (getpid (), 62);
1563 kill (getpid (), 63);
1573 kill (getpid (), SIGTERM
);
1584 signal (SIGABRT
, handle_ABRT
);
1586 signal (SIGHUP
, handle_HUP
);
1589 signal (SIGQUIT
, handle_QUIT
);
1592 signal (SIGILL
, handle_ILL
);
1595 signal (SIGEMT
, handle_EMT
);
1598 signal (SIGFPE
, handle_FPE
);
1601 signal (SIGBUS
, handle_BUS
);
1604 signal (SIGSEGV
, handle_SEGV
);
1607 signal (SIGSYS
, handle_SYS
);
1610 signal (SIGPIPE
, handle_PIPE
);
1613 signal (SIGALRM
, handle_ALRM
);
1616 signal (SIGURG
, handle_URG
);
1619 signal (SIGTSTP
, handle_TSTP
);
1622 signal (SIGCONT
, handle_CONT
);
1625 signal (SIGCHLD
, handle_CHLD
);
1628 signal (SIGTTIN
, handle_TTIN
);
1631 signal (SIGTTOU
, handle_TTOU
);
1634 signal (SIGIO
, handle_IO
);
1637 signal (SIGXCPU
, handle_XCPU
);
1640 signal (SIGXFSZ
, handle_XFSZ
);
1643 signal (SIGVTALRM
, handle_VTALRM
);
1646 signal (SIGPROF
, handle_PROF
);
1649 signal (SIGWINCH
, handle_WINCH
);
1651 #if defined(SIGLOST) && (!defined(SIGABRT) || SIGLOST != SIGABRT)
1652 signal (SIGLOST
, handle_LOST
);
1655 signal (SIGUSR1
, handle_USR1
);
1658 signal (SIGUSR2
, handle_USR2
);
1661 signal (SIGPWR
, handle_PWR
);
1663 #if defined (SIGPOLL) && (!defined (SIGIO) || SIGPOLL != SIGIO)
1664 signal (SIGPOLL
, handle_POLL
);
1667 signal (SIGWIND
, handle_WIND
);
1670 signal (SIGPHONE
, handle_PHONE
);
1673 signal (SIGWAITING
, handle_WAITING
);
1676 signal (SIGLWP
, handle_LWP
);
1679 signal (SIGDANGER
, handle_DANGER
);
1682 signal (SIGGRANT
, handle_GRANT
);
1685 signal (SIGRETRACT
, handle_RETRACT
);
1688 signal (SIGMSG
, handle_MSG
);
1691 signal (SIGSOUND
, handle_SOUND
);
1694 signal (SIGSAK
, handle_SAK
);
1697 signal (SIGPRIO
, handle_PRIO
);
1700 /* Lynx doesn't seem to have anything in signal.h for this. */
1701 signal (33, handle_33
);
1702 signal (34, handle_34
);
1703 signal (35, handle_35
);
1704 signal (36, handle_36
);
1705 signal (37, handle_37
);
1706 signal (38, handle_38
);
1707 signal (39, handle_39
);
1708 signal (40, handle_40
);
1709 signal (41, handle_41
);
1710 signal (42, handle_42
);
1711 signal (43, handle_43
);
1712 signal (44, handle_44
);
1713 signal (45, handle_45
);
1714 signal (46, handle_46
);
1715 signal (47, handle_47
);
1716 signal (48, handle_48
);
1717 signal (49, handle_49
);
1718 signal (50, handle_50
);
1719 signal (51, handle_51
);
1720 signal (52, handle_52
);
1721 signal (53, handle_53
);
1722 signal (54, handle_54
);
1723 signal (55, handle_55
);
1724 signal (56, handle_56
);
1725 signal (57, handle_57
);
1726 signal (58, handle_58
);
1727 signal (59, handle_59
);
1728 signal (60, handle_60
);
1729 signal (61, handle_61
);
1730 signal (62, handle_62
);
1731 signal (63, handle_63
);
1733 signal (SIGTERM
, handle_TERM
);