summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-05-03 22:14:41 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-05-03 22:14:41 -0700
commit90f5aae6185214f77c8566500a94af264015b60b (patch)
tree54e0085efebb5ed9c777dc836870a4a59bd6743e /share
parentcadecad595dde6766e1883d1c598ffa5dc58999d (diff)
downloadtxr-90f5aae6185214f77c8566500a94af264015b60b.tar.gz
txr-90f5aae6185214f77c8566500a94af264015b60b.tar.bz2
txr-90f5aae6185214f77c8566500a94af264015b60b.zip
dlopen: add error reporting via dlerror()
* sysif.c (dlopen_wrap): Call dlerror() to clear the error string. Then if the call returns null, call dlerror() again and use the string in the exception if available. (dlsym_error): New static function. (dlsym_checked, dlvsym_checked): Clear error string by calling dlerror(). Afer the call, if the pointer is null call dlsym_error to report.
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions