This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/1814] dlopen/dlsym clear dlerror flag


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]