From: Stefano D'A. <zan...@gm...> - 2008-10-26 05:51:43
|
The last problem is a fault of mine... however I noticed that dlsym() sets errno to 131 when not finding some symbol (using strerror I get "Unknown error - 131", but I see it is ENOSYM in errno.h), which is probably fine since the POSIX standard doesn't seem to even mention errno is the dlsym page... however, in case you are interested in that, all other OSes I tried probably don't let dlsym set errno (Windows/MSYS, Linux, BSDs), while the AIX man page for dlsym states: "If the named symbol is found, its address is returned. If the named symbol is not found, NULL is returned and errno is set to 0." Just to let you know ;-) Stefano |