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:
@@ -13,7 +13,7 @@ void init_reent()
|
||||
|
||||
ent = user_alloc(sizeof(struct _reent));
|
||||
|
||||
_REENT_INIT_PTR(ent);
|
||||
_REENT_INIT_PTR_ZEROED(ent);
|
||||
|
||||
__asm__ __volatile__(
|
||||
"movl %0, %%fs:16"
|
||||
|
@@ -8,11 +8,8 @@ void init_global_reent()
|
||||
|
||||
ent =_GLOBAL_REENT;
|
||||
|
||||
_REENT_INIT_PTR(ent);
|
||||
|
||||
__asm__ __volatile__(
|
||||
"movl %0, %%fs:16"
|
||||
::"r"(ent));
|
||||
// __sinit(ent);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user