ReactOS 0.4.15-dev-8102-g108db8f
_exit.c File Reference
#include <precomp.h>
Include dependency graph for _exit.c:

Go to the source code of this file.

Functions

void _cexit (void)
 
void _c_exit (void)
 
void _exit (int exitcode)
 
void exit (int exitcode)
 

Function Documentation

◆ _c_exit()

void _c_exit ( void  )

Definition at line 17 of file _exit.c.

18{
19 /* All cleanup is done on DLL detach; Return to caller */
20}

◆ _cexit()

void _cexit ( void  )

Definition at line 7 of file _exit.c.

8{
12}
#define LOCK_EXIT
Definition: atexit.h:8
void __call_atexit(void)
Definition: atonexit.c:30
#define UNLOCK_EXIT
Definition: atexit.h:9

Referenced by exit().

◆ _exit()

void _exit ( int  exitcode)

Definition at line 25 of file _exit.c.

26{
27 ExitProcess(exitcode);
28}
VOID WINAPI ExitProcess(IN UINT uExitCode)
Definition: proc.c:1487

Referenced by _amsg_exit(), _CrtHandleDbgReport(), _default_handler(), _Exit(), abort(), do_spawnT(), fork_helper(), parse_object_parts(), START_TEST(), subprocess(), and Test__aexit_rtn().

◆ exit()

void exit ( int  exitcode)

Definition at line 33 of file _exit.c.

34{
35#if 0
37 static const WCHAR mscoreeW[] = {'m','s','c','o','r','e','e',0};
38 void (WINAPI *pCorExitProcess)(int);
39#endif
40 WARN("exit(%d) called\n",exitcode);
41 _cexit();
42#if 0
44
45 if (hmscoree)
46 {
47 pCorExitProcess = (void*)GetProcAddress(hmscoree, "CorExitProcess");
48
49 if (pCorExitProcess)
50 pCorExitProcess(exitcode);
51 }
52#endif
53 ExitProcess(exitcode);
54
55}
void _cexit(void)
Definition: _exit.c:7
#define WARN(fmt,...)
Definition: debug.h:115
#define GetProcAddress(x, y)
Definition: compat.h:753
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
Definition: loader.c:838
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
static HMODULE hmscoree
Definition: fusion.c:24
static const WCHAR mscoreeW[]
Definition: actctx.c:739
#define WINAPI
Definition: msvc.h:6
__wchar_t WCHAR
Definition: xmlstorage.h:180