Wednesday, July 03, 2024

Re: async-signal-safe *printf

On Wed, Jul 03, 2024 at 05:16:45PM +0900, Kensuke Matsuzaki wrote:

> Hi,
>
> I'm reading libc source code.
>
> According to man signal(3), dprintf(), vdprintf() etc are
> "async-signal-safe in OpenBSD except when used with floating-point
> arguments or directives".
> However __vfprintf seems to call malloc or wcrtomb when it is called
> with "%ls" or "%lc".
>
> Is it async-signal-safe to call printf family with wide char?
>
> Thank you.
> --
> Kensuke Matsuzaki
>

Hi,

unless I'm missing something this seems to be an omission in the
signal(3) man page.

-Otto

No comments:

Post a Comment