ref: 3264efeca8c41b909a8fca2c57785f936fb55f80
dir: /src/libc/stdlib/exit.c/
#include <stdlib.h> #include "../libc.h" #include "../syscall.h" #undef exit void (*_flushall)(void); void (*_atexithdl)(void); void exit(int status) { if (_atexithdl) (*_atexithdl)(); if (_flushall) (*_flushall)(); _exit(status); }