2 #include <msvcrt/stdlib.h>
4 #include <msvcrt/fcntl.h>
5 #include <msvcrt/internal/atexit.h>
7 struct __atexit *__atexit_ptr = 0;
15 struct __atexit *a = __atexit_ptr;
16 __atexit_ptr = 0; /* to prevent infinite loops */
23 if (__stdio_cleanup_hook)
24 __stdio_cleanup_hook();
25 for (i=0; i<djgpp_last_dtor-djgpp_first_dtor; i++)
26 djgpp_first_dtor[i]();
28 /* in case the program set it this way */
38 void _exit(int _status)
57 // reset interup vectors