This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/1814] dlopen/dlsym clear dlerror flag
- From: "fnevgeny at weizmann dot ac dot il" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 8 Nov 2005 06:27:34 -0000
- Subject: [Bug libc/1814] dlopen/dlsym clear dlerror flag
- References: <20051106082719.1814.fnevgeny@weizmann.ac.il>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From fnevgeny at weizmann dot ac dot il 2005-11-08 06:27 -------
> It's unclear whether it should change or if the
> standard should make this unspecified.
Well, the way it's declared now (I don't have the POSIX manual, only judging
from the man pages) is consistent with e.g. errno behavior (no library function
should change it). So, probably, should be the case with dlopen/dlsym with
regard to dlerror. In any case, the library and the man page should be made in
sync (and mention explicitly deviation from the standard and/or other OS's).
BTW, AIX suggests avoiding dlerror() in most cases:
http://publib16.boulder.ibm.com/pseries/en_US/libs/basetrf1/dlerror.htm, and
when discussing dlsym() it's even not mentioned at all as a way to check for an
error...
--
http://sourceware.org/bugzilla/show_bug.cgi?id=1814
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.