Skip to content

lib: posix: support for perror() #46100

@cfriedt

Description

@cfriedt

Is your enhancement proposal related to a problem? Please describe.
The perror() function is helpful shorthand for printing an error message in POSIX applications.

It's fairly trivial to implement when relying on strerror() and consumes very little space.

OTOH, it's a major annoyance to #ifdef-out perror in 3rd-party libraries.

Describe the solution you'd like

A perror() implementaiton.

Describe alternatives you've considered
#ifdef-ing out code ad-infinitum

Additional context

Metadata

Metadata

Assignees

Labels

EnhancementChanges/Updates/Additions to existing featuresarea: POSIXPOSIX API Library

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions