#include #include #include /* XXX: * if we are here, we are in charge, call exit syscalls * think of better way to encapsulate these syscalls? */ static noreturn void rt·shutdown(int code) { if(rt·context.fini) rt·context.fini(); if(rt·context.exit) rt·context.exit(); _syscall1(·ExitGroup, code); for(;;) _syscall1(·Exit, code); } weakalias(rt·shutdown, exit); noreturn void rt·exit(int code) { rt·shutdown(code); }