summaryrefslogtreecommitdiffstats
path: root/usr/include/klibc/diverr.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr/include/klibc/diverr.h')
-rw-r--r--usr/include/klibc/diverr.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/usr/include/klibc/diverr.h b/usr/include/klibc/diverr.h
new file mode 100644
index 0000000..e70887e
--- /dev/null
+++ b/usr/include/klibc/diverr.h
@@ -0,0 +1,15 @@
+/*
+ * klibc/diverr.h
+ */
+
+#ifndef _KLIBC_DIVERR_H
+#define _KLIBC_DIVERR_H
+
+#include <signal.h>
+
+static __inline__ void __divide_error(void)
+{
+ raise(SIGFPE);
+}
+
+#endif /* _KLIBC_DIVERR_H */