ref: 38c7097175035acfa9408b3826c2c8306e20349a
dir: /src/libc/stdlib/exit.c/
#include <stdlib.h>
#include "../libc.h"
#undef exit
void (*_exitf[_ATEXIT_MAX])(void);
unsigned _exitn;
void
exit(int status)
{
while (_exitn > 0)
(*_exitf[--_exitn])();
_Exit(status);
}