[PATCH v2 00/11] Decouple global file object list from _GLOBAL_REENT
Matthew Joyce <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
From: Matt Joyce <[email protected]> Hello Corinna, Per your comments, please see version 2. 1) stdio_atexit is now called stdio_exit_handler 2) declarations for stdio_exit_handler() and _fwalk_sglue() are moved to sys/reent.h Thanks! Matt Matt Joyce (9): Remove duplicate stdio initializations Remove duplicate sglue initializations Add two __sglue initialization macros Remove __sinit_locks / __sinit_recursive_mutex Move __sglue initializations to __sfp() Add CLEANUP_FILE define Add stdio_exit_handler() Add global __sglue object for all configurations Remove __sglue member for one configuration Sebastian Huber (2): Declare global __sf[] only once stdio: Replace _fwalk_reent() with _fwalk_sglue() newlib/libc/include/sys/reent.h | 26 ++++++-- newlib/libc/reent/reent.c | 6 +- newlib/libc/stdio/fcloseall.c | 9 ++- newlib/libc/stdio/fflush.c | 2 +- newlib/libc/stdio/findfp.c | 112 +++++++++++++++++--------------- newlib/libc/stdio/fwalk.c | 16 ++--- newlib/libc/stdio/local.h | 3 - newlib/libc/stdio/refill.c | 4 +- newlib/libc/stdlib/exit.c | 5 +- winsup/cygwin/signal.cc | 5 +- winsup/cygwin/syscalls.cc | 6 +- 11 files changed, 110 insertions(+), 84 deletions(-) -- 2.31.1