Looking for a function which produces the internationalized description of
an errno value, with the two additional requirements that
- it should be multithread-safe,
- it should be easy to use,
I didn't find any answer in POSIX or gnulib.
https://man7.org/linux/man-pages/man3/strerror.3.html
> Don’t assume sizeof (unsigned long long) == 2 * sizeof (unsigned).
Thanks. Today 'unsigned int' is uint32_t, and 'unsigned long long' is uint64_t,
but who knows whether this will still be the case in 10 years...
Bruno
Hi Paul,
> + if test $gl_cv_func_isnand_no_libm = yes || test "$ISNAND_LIBM"; then
This doesn't look right:
* If $ISNAND_LIBM is empty, it executes
test ''
which is invalid in at least some version of 'test'.
* If $ISNAND_LIBM is -lm, it executes
test -lm
which is always
* m4/totalorder.m4 (gl_FUNC_TOTALORDERF, gl_FUNC_TOTALORDER)
(gl_FUNC_TOTALORDERL): Avoid unnecessary call to AC_SEARCH_LIBS,
since the information is already available in shell vars.
---
ChangeLog| 5 +
m4/totalorder.m4 | 15 +++
2 files changed, 8 insertions(+), 12
* lib/totalorderl.c (LDBL_SIGNBIT_WORD): Define to -1 if not defined.
(totalorderl): Avoid unused local zu by preferring ‘if’ to ‘ifdef’.
Don’t assume sizeof (unsigned long long) == 2 * sizeof (unsigned).
---
ChangeLog | 7 +++
lib/totalorderl.c | 38
* m4/isnand.m4 (gl_FUNC_ISNAND):
* m4/isnanf.m4 (gl_FUNC_ISNANF):
* m4/isnanl.m4 (gl_FUNC_ISNANL):
Slightly simplify shell ‘if’. This should simplify future changes.
---
ChangeLog| 6 ++
m4/isnand.m4 | 5 ++---
m4/isnanf.m4 | 5 ++---
m4/isnanl.m4 | 5 ++---
4 files changed, 12