blob: 7a6115c7bbc71265929b20c8817d8476ee184b39 [file] [log] [blame]
Rich Felker0b44a032011-02-12 00:22:29 -05001#include <stdlib.h>
Rich Felker0b44a032011-02-12 00:22:29 -05002#include "syscall.h"
3
Rich Felkerc8ea9852012-09-06 23:12:27 -04004_Noreturn void _Exit(int ec)
Rich Felker0b44a032011-02-12 00:22:29 -05005{
Rich Felkerc2cd25b2011-04-06 20:32:53 -04006 __syscall(SYS_exit_group, ec);
Rich Felker0c05bd32012-09-06 23:34:10 -04007 for (;;) __syscall(SYS_exit, ec);
Rich Felker0b44a032011-02-12 00:22:29 -05008}