newlib: rebuild with the global stdio streams enabled.
This change means that there is only one set of global stdin, stdout, and stderr FILE streams shared by all the threads. This reduces memory usage and avoids having to close these streams before threads exit. These streams still have a lock to synchronise access.
This commit is contained in:
parent
ed1a6cc6f3
commit
f9ae521710
8 changed files with 47 additions and 6 deletions
|
@ -133,6 +133,10 @@ extern int malloc_trim (size_t);
|
|||
extern int _malloc_trim_r (struct _reent *, size_t);
|
||||
#endif
|
||||
|
||||
extern void __malloc_lock(struct _reent *);
|
||||
|
||||
extern void __malloc_unlock(struct _reent *);
|
||||
|
||||
/* A compatibility routine for an earlier version of the allocator. */
|
||||
|
||||
extern void mstats (char *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue