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:
Our Air Quality 2018-02-28 23:38:04 +11:00
parent ed1a6cc6f3
commit f9ae521710
8 changed files with 47 additions and 6 deletions

View file

@ -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 *);