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