diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-05-03 22:14:41 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-05-03 22:14:41 -0700 |
commit | 90f5aae6185214f77c8566500a94af264015b60b (patch) | |
tree | 54e0085efebb5ed9c777dc836870a4a59bd6743e /share | |
parent | cadecad595dde6766e1883d1c598ffa5dc58999d (diff) | |
download | txr-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