ReactOS  0.4.11-dev-721-g95bc44e
_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

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 }
void _cexit ( void  )

Definition at line 7 of file _exit.c.

Referenced by __declspec(), and exit().

8 {
9  LOCK_EXIT;
10  __call_atexit();
12 }
#define LOCK_EXIT
Definition: atexit.h:8
void __call_atexit(void)
Definition: atexit.c:9
#define UNLOCK_EXIT
Definition: atexit.h:9
void _exit ( int  exitcode)

Definition at line 25 of file _exit.c.

Referenced by _aexit_rtn(), _amsg_exit(), _default_handler(), _Exit(), abort(), do_spawnT(), fork_helper(), parse_object_parts(), subprocess(), and system_icmp().

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

Definition at line 33 of file _exit.c.

Referenced by __declspec(), _Dispatch_type_(), aargh(), alloc_handle(), assign_file_addresses(), ata_bblk(), ata_get_bblist_regh(), AtapiDmaReinit(), BackToTop(), BvectorTest::bvec1(), BZ2_bz__AssertH__fail(), cache_rebuild_bmpcache_linked_list(), CallPxe(), cf2_arrstack_setNumElements(), cf2_doStems(), cf2_getGlyphOutline(), cf2_interpT2CharString(), check_enc(), check_option(), CheckTestFile(), cldap_openA(), cldap_openW(), cleanup(), cleanUpAndFail(), comexit(), compare_export_(), configError(), copyFileName(), copyfont(), count_blocks(), CreateTestDir(), CreateTestFile(), directedLine::cutoffPolygon(), delete_registry_key(), Deletehost(), die(), disk_create(), DlgThreadProc(), do_import(), do_test(), DoDESCRIPTIONS(), DoKBD(), DoKEYNAME(), DoLANGUAGENAMES(), DoLAYOUT(), DoParsing(), DRIVER_TryOpenDriver32(), DwExecIntruction(), endnetpath(), EnumColorProfilesA(), EnumColorProfilesW(), error(), error_exit(), error_loc(), error_loc_info(), error_unknown_switch(), Slicer::evalStream(), ExecuteTest(), exit_on_signal(), export_registry_key(), fatal_error(), file_add(), find_or_create_directory(), FindFonts(), fnIMultiLanguage3_ConvertStringInIStream(), fs_open(), FTC_MruNode_Prepend(), FTC_MruNode_Remove(), FTC_MruNode_Up(), GdipCreateTextureIA(), Generate(), generate_joliet_path_tables(), generate_path_tables(), get_file_handle(), get_file_name(), get_graft(), get_key(), GetActualAddress(), getCharacterInfo(), GetContentsOfDialog(), GetDirectoryStructure(), getnetconfig(), GetPreviousParamString(), gl_error(), gluNurbsSurface(), guiFatal(), heap_xalloc(), heap_xrealloc(), init(), init_leases_list(), init_test(), InitConnectionInfo(), InitDirComponents(), insert_3f_xyw_err(), is_valid_handle(), isohybrid_error(), Jobs(), kbd_c(), kbd_h(), ldap_add_ext_sA(), ldap_add_ext_sW(), ldap_add_extA(), ldap_add_extW(), ldap_add_sA(), ldap_add_sW(), ldap_addA(), ldap_addW(), ldap_bind_sA(), ldap_bind_sW(), ldap_bindA(), ldap_bindW(), ldap_compare_ext_sA(), ldap_compare_ext_sW(), ldap_compare_extA(), ldap_compare_extW(), ldap_compare_sA(), ldap_compare_sW(), ldap_compareA(), ldap_compareW(), ldap_delete_ext_sA(), ldap_delete_ext_sW(), ldap_delete_extA(), ldap_delete_extW(), ldap_extended_operation_sA(), ldap_extended_operation_sW(), ldap_extended_operationA(), ldap_extended_operationW(), ldap_initA(), ldap_initW(), ldap_modify_ext_sA(), ldap_modify_ext_sW(), ldap_modify_extA(), ldap_modify_extW(), ldap_modify_sA(), ldap_modify_sW(), ldap_modifyA(), ldap_modifyW(), ldap_modrdn2_sA(), ldap_modrdn2_sW(), ldap_modrdn2A(), ldap_modrdn2W(), ldap_modrdn_sA(), ldap_modrdn_sW(), ldap_modrdnA(), ldap_modrdnW(), ldap_openA(), ldap_openW(), ldap_rename_ext_sA(), ldap_rename_ext_sW(), ldap_rename_extA(), ldap_rename_extW(), ldap_sasl_bind_sA(), ldap_sasl_bind_sW(), ldap_sasl_bindA(), ldap_sasl_bindW(), ldap_search_ext_sA(), ldap_search_ext_sW(), ldap_search_extA(), ldap_search_extW(), ldap_search_sA(), ldap_search_stA(), ldap_search_stW(), ldap_search_sW(), ldap_searchA(), ldap_searchW(), ldap_simple_bind_sA(), ldap_simple_bind_sW(), ldap_simple_bindA(), ldap_simple_bindW(), ldap_sslinitW(), ldap_start_tls_sA(), ldap_start_tls_sW(), linear_vari_process(), lookup_handle(), main(), mallocFail(), MC_sweepY(), mount_vol(), MSACM_OpenLocalDriver(), names_dump(), nanox_event(), NtGdiEqualRgn(), NtUserPostThreadMessage(), open_file(), open_log_files(), OutOfMemory(), panic(), parse_file(), parse_switches(), parseAndPrintFile(), pdie(), PerformRegAction(), Ping(), pp_internal_error(), PreInit(), prepare_raid5_write(), prepare_raid6_write(), print_help(), PrintNameTable(), PrintStrangeMenu(), PrintUsage(), process_arguments(), process_directory(), ProcessCmdLine(), ProcessMessages(), processRegLinesA(), processRegLinesW(), proclog(), ProtocolSink_ReportResult(), qFatal(), query_info(), quit(), quitnow(), rdp2vnc_connect(), read_data(), read_fat(), read_file(), read_input_file(), read_stdin(), readError(), RegisterDefaultAcceptHeaders(), registerNode(), REGPROC_open_export_file(), REGPROC_print_error(), release_handle(), RPC_ExecuteCall(), RPCRT4_io_thread(), RunBatch(), RunBookmarkEditor(), runProg(), ScanExports(), select_transform(), ServeOneClient(), Server(), ServiceMain(), ServiceStart(), SetStartupURL(), SetupInstallFileA(), shell(), ShellCmd(), ShowTcpTable(), ShowUdpTable(), susage(), sweepY(), sync_read_phys(), test(), test_TreatAsClass(), textFatal(), thread_main(), TIM_SORT_RESIZE(), tls1_prf(), TMStubImpl_Invoke(), TOOLBAR_SaveRestoreA(), tooManyBlocks(), TranslateFunctionName(), ui_draw_text(), UniataEnumBusMasterController__(), Usage(), usage(), userlist(), verr(), verrx(), WhoamiAllocTable(), WhoamiGetTokenInfo(), WhoamiPrintTable(), WhoamiSetTable(), WinHttpCrackUrl(), WinMain(), wpp_default_error(), write_data_phys(), write_file(), write_JPEG_file(), write_packet(), write_stdout(), writeError(), wWinMain(), xCall(), xmalloc(), xrealloc(), xsltApplyTemplates(), xsltAttrTemplateValueProcessNode(), xsltChoose(), xsltCopyText(), xsltForEach(), xsltInitCtxtKey(), xsltTestCompMatch(), xstrdup(), and yy_fatal_error().

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
43  hmscoree = GetModuleHandleW(mscoreeW);
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 }
__wchar_t WCHAR
Definition: xmlstorage.h:180
static HMODULE hmscoree
Definition: assembly.c:44
#define WARN(fmt,...)
Definition: debug.h:111
VOID WINAPI ExitProcess(IN UINT uExitCode)
Definition: proc.c:1517
void _cexit(void)
Definition: _exit.c:7
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:47
#define WINAPI
Definition: msvc.h:20
static const WCHAR mscoreeW[]
Definition: actctx.c:634
HANDLE HMODULE
Definition: typedefs.h:75
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
Definition: loader.c:845
#define GetProcAddress(x, y)
Definition: compat.h:410
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:29