[PATCH 09/11] stdio: Replace _fwalk_reent() with _fwalk_sglue()
Corinna Vinschen
vinschen@redhat.com
Wed May 11 15:56:36 GMT 2022
On May 10 10:09, Matthew Joyce wrote:
> From: Sebastian Huber <sebastian.huber@embedded-brains.de>
>
> Replaced _fwalk_reent() with _fwalk_sglue(). The change adds an
> extra __sglue object as a parameter, which will allow the passing
> of a global __sglue object separate from the __sglue member of
> struct _reent. The global __sglue object will be added in a
> follow-on patch.
> ---
> newlib/libc/stdio/fcloseall.c | 2 +-
> newlib/libc/stdio/fflush.c | 2 +-
> newlib/libc/stdio/findfp.c | 14 ++++++++++----
> newlib/libc/stdio/fwalk.c | 15 ++++++++-------
> newlib/libc/stdio/local.h | 3 ++-
> newlib/libc/stdio/refill.c | 4 ++--
> winsup/cygwin/syscalls.cc | 5 +++--
> 7 files changed, 27 insertions(+), 18 deletions(-)
> [...]
> diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
> index 1cecaa017..5bf6d8fc7 100644
> --- a/winsup/cygwin/syscalls.cc
> +++ b/winsup/cygwin/syscalls.cc
> @@ -3058,7 +3058,8 @@ _cygwin_istext_for_stdio (int fd)
> }
>
> /* internal newlib function */
> -extern "C" int _fwalk_reent (struct _reent *ptr, int (*function) (struct _reent *, FILE *));
> +extern "C" int _fwalk_sglue (struct _reent *ptr,
> + int (*function) (struct _reent *, FILE *), struct _sglue *);
^^^^^^
_glue?
Corinna
More information about the Newlib
mailing list