Files
RomWBW/Source/Images/d_hitechc/u1/SIGNAL.H
Wayne Warthen 0d0360b277 Enhanced Hi-Tech C Compiler Files, Issue #521
Added the enhanced Hi-Tech C Compiler components from @Laci1953 to user area 1 of the Hi-Tech Compiler disk images.

Co-Authored-By: ladislau szilagyi <87603175+Laci1953@users.noreply.github.com>
2025-05-31 15:11:38 -07:00

36 lines
1.3 KiB
C
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#ifndef _HTC_SIGNAL_H
#define _HTC_SIGNAL_H
/*
* Signal definitions for CP/M
*/
#ifdef unix
#define NSIG 17
#define SIGHUP 1 /* hangup (not used by terminal driver) */
#define SIGINT 2 /* interrupt (^C or BREAK) */
#define SIGQUIT 3 /* quit (^\) */
#define SIGILL 4 /* illegal instruction (not reset when caught) */
#define SIGTRAP 5 /* trace trap (not reset when caught) */
#define SIGIOT 6 /* IOT instruction */
#define SIGEMT 7 /* EMT instruction */
#define SIGFPE 8 /* floating point exception */
#define SIGKILL 9 /* kill (cannot be caught or ignored) */
#define SIGBUS 10 /* bus error */
#define SIGSEGV 11 /* segmentation violation */
#define SIGSYS 12 /* bad argument to system call */
#define SIGPIPE 13 /* write on a pipe with no one to read it */
#define SIGALRM 14 /* alarm clock */
#define SIGTERM 15 /* software termination signal from kill */
#else
#define NSIG 1
#define SIGINT 1 /* control-C */
#endif
typedef void* signal_t;
#define SIG_DFL ((signal_t)0) /* default action is to exit */
#define SIG_IGN ((signal_t)1) /* ignore them */
signal_t signal(int sig, signal_t action);
#endif