Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: Leverage errno everywhere, like libmnl, and use err() and warn() helper functions #2

Closed
wants to merge 1 commit into from

Conversation

troglobit
Copy link
Collaborator

This is a proposal to leverage errno more and propagate errors back to the user with the classic err() and warn() family of BSD functions. They format error/warn messages as: "progname: your formatted string: %s", your args, strerror(errno), thus providing a consistent error or warning style to the program.

Note: this patch overlaps overlaps with the previous segfault patch submitted earlier.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
@troglobit
Copy link
Collaborator Author

Superseded by PR #4.

@troglobit troglobit closed this Jun 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant