summaryrefslogtreecommitdiffstats
path: root/openbsd
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2020-10-03 17:53:15 +0200
committercgzones <cgzones@googlemail.com>2020-10-12 13:06:12 +0200
commit601480003ffdee444d8e48aed4222ad8dd23bb59 (patch)
tree73e7cd76630a3d16c920c07afa4a5b5fa973f15e /openbsd
parentb47bc667a254c1b1a8d6b5a635ca73f6c91c2e1a (diff)
Centralise fault handling
This should be done as all platforms essentially did the same anyway and there was nothing platform specific.
Diffstat (limited to 'openbsd')
-rw-r--r--openbsd/OpenBSDCRT.c22
-rw-r--r--openbsd/OpenBSDCRT.h15
2 files changed, 0 insertions, 37 deletions
diff --git a/openbsd/OpenBSDCRT.c b/openbsd/OpenBSDCRT.c
deleted file mode 100644
index 88cb8e23..00000000
--- a/openbsd/OpenBSDCRT.c
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
-htop - OpenBSDCRT.c
-(C) 2014 Hisham H. Muhammad
-(C) 2015 Michael McConville
-Released under the GNU GPLv2, see the COPYING file
-in the source distribution for its full text.
-*/
-
-#include "config.h"
-#include "OpenBSDCRT.h"
-#include "CRT.h"
-#include <stdio.h>
-#include <stdlib.h>
-
-void CRT_handleSIGSEGV(int sgn) {
- (void) sgn;
- CRT_done();
- fprintf(stderr, "\n\nhtop " VERSION " aborting.\n");
- fprintf(stderr, "\nUnfortunately, you seem to be using an unsupported platform!");
- fprintf(stderr, "\nPlease contact your platform package maintainer!\n\n");
- abort();
-}
diff --git a/openbsd/OpenBSDCRT.h b/openbsd/OpenBSDCRT.h
deleted file mode 100644
index 6259b78c..00000000
--- a/openbsd/OpenBSDCRT.h
+++ /dev/null
@@ -1,15 +0,0 @@
-#ifndef HEADER_OpenBSDCRT
-#define HEADER_OpenBSDCRT
-/*
-htop - OpenBSDCRT.h
-(C) 2014 Hisham H. Muhammad
-(C) 2015 Michael McConville
-Released under the GNU GPLv2, see the COPYING file
-in the source distribution for its full text.
-*/
-
-#include "Macros.h"
-
-void CRT_handleSIGSEGV(int sgn) ATTR_NORETURN;
-
-#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy