HomeFreeBSD

libc: only append exterr herald and text if exterr was recorded

Description

libc: only append exterr herald and text if exterr was recorded

__uexterr_format: return empty string on no error, instead of "No error"
err(): check for the first symbol of the exterr to decide if there is
anything to print.

Requested and reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D51204

Details

Provenance
kibAuthored on Jul 8 2025, 2:01 PM
Differential Revision
D51204: libc: only append exterr herald and text if exterr was recorded
Parents
rG9911028f53d5: libc: mkostemp(3) should support O_CLOFORK
Branches
Unknown
Tags
Unknown