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