Re: [PATCH] lib: Make error.c more like error(3)

2021-09-12 Thread Mark Wielaard
Mark >From 7582a0d3e09ee154961bbba9285a224e5d09f407 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Fri, 10 Sep 2021 11:07:16 -0700 Subject: [PATCH] lib: Make error.c more like error(3) Fix some issues with the error reimplementation to make it match the specification for error(3). Flush s

[PATCH] lib: Make error.c more like error(3)

2021-09-10 Thread Colin Cross via Elfutils-devel
Fix some issues with the error reimplementation to make it match the specification for error(3). Flush stdout before printing to stderr. Also flush stderr afterwards, which is not specified in the man page for error(3), but is what bionic does. error(3) prints strerror(errnum) if and only if err