diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-05-18 17:41:25 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-06-19 10:36:21 -0300 |
commit | 59f17be00b48eadc9ad791788235f8be7c9b4c20 (patch) | |
tree | c82f04750f39699a8573b005f05db0915b6f42eb /io/utimensat.c | |
parent | 6e443c2d7fad5de3e15f55ef479973c7a8655796 (diff) | |
download | glibc-azanella/sig_err-improvements.tar.gz |
string: Add strerrorname and strerrordescazanella/sig_err-improvements
The strerrorname returns error number name (i.g. "EINVAL" for EINVAL)
while strerrordesc returns string describing error number (i.g
"Invalid argument" for EINVAL). Different than strerror, strerrordesc
does not attempt to translate the return description and both functions
return NULL for an invalid error number.
They should be used instead of sys_errlist and sys_nerr and both are
thread and async-signal safe. These functions are GNU extensions.
Checked on x86-64-linux-gnu, i686-linux-gnu, powerpc64le-linux-gnu,
and s390x-linux-gnu.
Diffstat (limited to 'io/utimensat.c')
0 files changed, 0 insertions, 0 deletions