* Richard W. M. Jones:
In libnbd we use sys_errlist[] to make a perror function that is
safe
to call after fork and before exec:
https://github.com/libguestfs/libnbd/blob/a6ba108309d9250e5f7fe0a5d41a996...
It looks as if glibc removed this list, which is annoying. Two
questions:
(1) How can we write a fork-safe perror function?
From the glibc NEWS file:
* The functions strerrorname_np and strerrordesc_np have been added. The
strerroname_np returns error number name (e.g. "EINVAL" for EINVAL) while
strerrordesc_np returns string describing error number
(e.g "Invalid argument" for EINVAL). Different than strerror,
strerrordesc_np does not attempt to translate the return description, both
functions return NULL for an invalid error number.
(2) Why is the configure not working (it detects that sys_errlist is
still available)?
https://github.com/libguestfs/libnbd/blob/a6ba108309d9250e5f7fe0a5d41a996...
The test is broken (two type mismatches), but linking still fails for me
in rawhide.
Thanks,
Florian