forked from KolibriOS/kolibrios
newlib: close streams on exit
git-svn-id: svn://kolibrios.org@6664 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -27,7 +27,7 @@ struct app_hdr
|
||||
int __subsystem__;
|
||||
};
|
||||
|
||||
extern void init_reent();
|
||||
extern void init_global_reent();
|
||||
extern void init_stdio();
|
||||
extern void __init_conio();
|
||||
extern void __fini_conio();
|
||||
@@ -173,7 +173,7 @@ __libc_init (void)
|
||||
int argc;
|
||||
|
||||
tls_init();
|
||||
init_reent();
|
||||
init_global_reent();
|
||||
init_stdio();
|
||||
|
||||
if(header->__subsystem__ == 3)
|
||||
|
@@ -37,7 +37,7 @@ struct app_hdr
|
||||
|
||||
extern void _pei386_runtime_relocator (void);
|
||||
extern void init_loader(void *libc_image);
|
||||
extern void init_reent(void);
|
||||
extern void init_global_reent(void);
|
||||
extern void init_stdio(void);
|
||||
|
||||
extern void __init_conio(void);
|
||||
@@ -182,7 +182,7 @@ void libc_crt_startup (void *libc_base)
|
||||
_pei386_runtime_relocator();
|
||||
|
||||
tls_init();
|
||||
init_reent();
|
||||
init_global_reent();
|
||||
init_stdio();
|
||||
|
||||
if(header->__subsystem__ == 3)
|
||||
|
Reference in New Issue
Block a user