FreeBSD Bugzilla – Attachment 225202 Details for
Bug 256105
dlerror(3) returns an empty string
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
dlerror-return.c
dlerror-return.c (text/plain), 412 bytes, created by
Yuri Victorovich
on 2021-05-23 18:18:07 UTC
(
hide
)
Description:
dlerror-return.c
Filename:
MIME Type:
Creator:
Yuri Victorovich
Created:
2021-05-23 18:18:07 UTC
Size:
412 bytes
patch
obsolete
>#include <dlfcn.h> >#include <stdio.h> > >int main() { > const char *filename = "/usr/lib/libutil.so"; > void * dlhandle; > const char * dlerr; > > if ((dlhandle = dlopen (filename, RTLD_NOW | RTLD_GLOBAL)) == NULL) { > printf("dlopen failed"); > return -1; > } > > if ((dlerr = dlerror ()) != NULL) > printf("after dlopen of '%s' dlerror: p=%p s='%s' s[0]=%d\n", filename, dlerr, dlerr, (unsigned)dlerr[0]); > > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 256105
: 225202