diff options
author | jsing <> | 2015-08-27 15:26:50 +0000 |
---|---|---|
committer | jsing <> | 2015-08-27 15:26:50 +0000 |
commit | d621690a38473c22a65b4be34c24680f5148cd42 (patch) | |
tree | d2c2a8c6fc1b8da3c4117997a97ab03f0ac74f21 /src/lib/libc/string/strcoll.c | |
parent | ec56fcd75da47203f2a92e4a7ac2df5ec3da32be (diff) | |
download | openbsd-d621690a38473c22a65b4be34c24680f5148cd42.tar.gz openbsd-d621690a38473c22a65b4be34c24680f5148cd42.tar.bz2 openbsd-d621690a38473c22a65b4be34c24680f5148cd42.zip |
Improve libtls error messages.
The tls_set_error() function previously stored the errno but did nothing
with it. Change tls_set_error() to append the strerror(3) of the stored
errno so that we include useful information regarding failures.
Provide a tls_set_errorx() function that does not store the errno or
include strerror(3) in the error message. Call this function instead of
tls_set_error() for errors where the errno value has no useful meaning.
With feedback from and ok doug@
Diffstat (limited to 'src/lib/libc/string/strcoll.c')
0 files changed, 0 insertions, 0 deletions