aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-29 21:56:27 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-29 21:57:13 +0100
commit5145c11fd8fe38162ae85e5ab888553c309eedf8 (patch)
treeea63e4155f47110e63e715653d23bb9094190e1e /include
parentuse pthread_sigmask, not sigprocmask (diff)
downloadslibc-5145c11fd8fe38162ae85e5ab888553c309eedf8.tar.gz
slibc-5145c11fd8fe38162ae85e5ab888553c309eedf8.tar.bz2
slibc-5145c11fd8fe38162ae85e5ab888553c309eedf8.tar.xz
halt + hcf
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--include/unistd.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index dc8e5d5..bb077c1 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -1354,6 +1354,33 @@ ssize_t pwriten(int, const void*, size_t);
#endif
+#if defined(__SLIBC_SOURCE)
+/**
+ * Halt the process in definitely.
+ * This function never returns.
+ *
+ * This is a slibc extension.
+ *
+ * @etymology (Halt)!
+ *
+ * @since Always.
+ */
+__noreturn void halt(void);
+
+/**
+ * Halt and catch fire!
+ * This function never returns.
+ *
+ * This is a slibc extension.
+ *
+ * @etymology (H)alt and (c)atch (f)rie!
+ *
+ * @since Always.
+ */
+__noreturn void hcf(void);
+#endif
+
+
#endif