From 5145c11fd8fe38162ae85e5ab888553c309eedf8 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 29 Dec 2015 21:56:27 +0100 Subject: halt + hcf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/unistd.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'include/unistd.h') 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 -- cgit v1.2.3-70-g09d2