A doubt in dlopen.c code
biswatosh2001 at yahoo.com
Fri May 26 07:24:14 EDT 2006
One of my folks is getting a crash in dlclose() on
When I see the code for dlopen() and dlclose()
functions in dlopen.c for HP-UX, I get the following
My doubts are:
1) In function dlopen(), why can't we simply call
shl_load() and return?
Why we are defining a shl_t *hp ? And, what we are
trying to do by typecasting
hp to dll_handle and returning that? dll_handle is of
type shl_t whereas hp is of type
shl_t*(which is therefore a double pointer).
2)The reporter of the crash smells problem in the line
return shl_unload(h) in dlclose().
He suggests, it should be rather shl_unload(hp).What
do you guys think? But anyway, I am not getting why
in dlclose(), simply calling shl_unload(h) won't do.
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
More information about the Cyrus-sasl