summaryrefslogtreecommitdiff
path: root/src/libstddjb/sigsegv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/sigsegv.c')
-rw-r--r--src/libstddjb/sigsegv.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libstddjb/sigsegv.c b/src/libstddjb/sigsegv.c
new file mode 100644
index 0000000..80c963c
--- /dev/null
+++ b/src/libstddjb/sigsegv.c
@@ -0,0 +1,9 @@
+/* ISC license. */
+
+#include <signal.h>
+#include <skalibs/segfault.h>
+
+int sigsegv (void)
+{
+ return raise(SIGSEGV) == 0 ;
+}