X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fsignal.h;h=bfc9888276e14d2426d810049e5dab110de38cc2;hb=ac3f809c3c10347c110fac3db93af0954eda98bb;hp=21f70e40e0a020d2254f2a7cbcaaa1a9b560efa0;hpb=1e221deb9ee725a14b3656f94e2763f8faeb18dc;p=pdclib diff --git a/includes/signal.h b/includes/signal.h index 21f70e4..bfc9888 100644 --- a/includes/signal.h +++ b/includes/signal.h @@ -4,12 +4,34 @@ // Public Domain C Library - http://pdclib.sourceforge.net // This code is Public Domain. Use, modify, and redistribute at will. // ---------------------------------------------------------------------------- -// TODO +// Signal handling // ---------------------------------------------------------------------------- #ifndef __SIGNAL_H #define __SIGNAL_H __SIGNAL_H -// TODO +// ---------------------------------------------------------------------------- +// MACROS + +#define SIGABRT // TODO +#define SIGFPE // TODO +#define SIGILL // TODO +#define SIGINT // TODO +#define SIGSEGV // TODO +#define SIGTERM // TODO +#define SIG_DFL // TODO +#define SIG_ERR // TODO +#define SIG_IGN // TODO + +// ---------------------------------------------------------------------------- +// TYPEDEFS + +typedef sig_atomic_t; // TODO + +// ---------------------------------------------------------------------------- +// FUNCTIONS + +int raise( int sig ); // TODO +void ( * signal( int sig, void ( *func )( int ) ) ) ( int ); // TODO #endif // __SIGNAL_H