Igor Robul wrote:

Sorry,
I have reread manual page for dlerror() and found that it need clear error state after call, but
dlerror() in src/libc/gen/dlfcn.c does not do this:

#pragma weak dlerror
const char *
dlerror(void)
{
   return sorry;
}

So error is in FreeBSD libc, if I understand this correctly. I'll do PR.

Bad day for me :-(.

Above code is from src/libc/gen/dlfcn.c, but real dlerror for dynamicaly linked executables is in rtdl.c, and it works as described in manual page (clears error status).

So problem is somewhere else. Sorry for false info.

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to