add _Noreturn function attribute, with fallback for pre-C11 GNUC
[musl] / src / exit / _Exit.c
1 #include <stdlib.h>
2 #include "syscall.h"
3
4 _Noreturn void _Exit(int ec)
5 {
6         __syscall(SYS_exit_group, ec);
7         __syscall(SYS_exit, ec);
8 }