Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Use __fpurge when fpurge is undeclared
On Thu, Oct 2, 2025 at 7:41 PM Jun. T <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
>
> I tested on Alpine-3.22 and the test A04 succeeded without calling
> fpurge(). Probably we don't need it on musl-based systems.
>
> fpurge() exists as a weak alias to __fpurge in musl-libc, but it is
> declared nowhere in header files. musl's git log indicates it was
> removed from stdio.h by an old commit
> https://git.musl-libc.org/cgit/musl/commit/?id=a34b0465ba14c70532b8eaba650a9eac228fce57
> but the weak alias was not removed. I guess this is a bug of musl.
Right, I think fpurge was added to musl by mistake, but removing the
symbol may break existing binaries so only the declaration was removed
to prevent new code from using it.
__fpurge still exists and is declared in stdio_ext.h, just like on glibc.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author