/* kcore/stop.fn.c - kstop() * ~ lexi hale * this file defines a function that prematurely exits from * a running libk program with an appropriate exit status. */ #include #include // so we know what system this is #include #ifdef KFenv_posix # define STOPFN kio_posix_exit extern void STOPFN(int); #else Knoimpl(kstop) #endif noreturn void kstop (longstat code) { STOPFN(code); }