diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:21:21 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:21:21 +0000 |
commit | 510ed32cfbffa6148018869f5ade416505a450b3 (patch) | |
tree | 0aafabcf3dfaab7685fa0fcbaa683dafe287807e /src/LYSignal.h | |
parent | Initial commit. (diff) | |
download | lynx-510ed32cfbffa6148018869f5ade416505a450b3.tar.xz lynx-510ed32cfbffa6148018869f5ade416505a450b3.zip |
Adding upstream version 2.9.0rel.0.upstream/2.9.0rel.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/LYSignal.h')
-rw-r--r-- | src/LYSignal.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/LYSignal.h b/src/LYSignal.h new file mode 100644 index 0000000..627edb3 --- /dev/null +++ b/src/LYSignal.h @@ -0,0 +1,31 @@ +#ifndef LYSIGNAL_H +#define LYSIGNAL_H + +#include <signal.h> + +#ifdef __cplusplus +extern "C" { +#endif +#ifdef VMS + extern void VMSsignal(int sig, void (*func) ()); + +#ifdef signal +#undef signal +#endif /* signal */ +#define signal(a,b) VMSsignal(a,b) /* use LYCurses.c routines for interrupts */ +#endif /* VMS */ + +#ifdef HAVE_SIGACTION + typedef void LYSigHandlerFunc_t (int); + +/* implementation in LYUtils.c */ + extern void LYExtSignal(int sig, LYSigHandlerFunc_t *handler); + +#else +#define LYExtSignal(sig,h) signal(sig, h) +#endif + +#ifdef __cplusplus +} +#endif +#endif /* LYSIGNAL_H */ |