diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-29 21:56:27 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-29 21:57:13 +0100 |
commit | 5145c11fd8fe38162ae85e5ab888553c309eedf8 (patch) | |
tree | ea63e4155f47110e63e715653d23bb9094190e1e /include | |
parent | use pthread_sigmask, not sigprocmask (diff) | |
download | slibc-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 'include')
-rw-r--r-- | include/unistd.h | 27 |
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 |