2007/5/7, James Carlson <[EMAIL PROTECTED]>:

�LU=] Euler Tao writes:
> I'm reading the source code of the ON project (b58) now. Inside the
> dlopen.cfile, some functions call the shl_findsym and shl_load
> functions.
> But I cannot find the defitions of these functions. And I use grep tools
to
> search the whole source tree of ON, b58, and nothing found.
>
> Where do these shl_xxx functions declare and define?

I think you're looking in this file:

usr/src/lib/libsasl/lib/dlopen.c


Yes, I'm reading this file now.

If you look closely, you'll see that this (open source) code is under
"#ifdef __hpux", so the right place to look for those functions is on
an HP/UX system.


err...I think I'm lost in the maze of ON :(((

I'm working on the x86 platform, and it's clearly I should never have touch
the source part of HP/UX .

The problem is:
I'm reading the source code of DTrace, in the function *dt_vopen*, there
exists a function call chain:
dt_vopen -> ctf_create -> ctf_bufopen -> ctf_zopen -> dlsym

inside the source tree of ON, there're 3 ctf_open definitions, they are in
ctf_subr.c, ctf_mod.c and ctf_lib.c. I think the last one is the target file
I should foucs on.
And look into the ctf_zopen in ctf_lib.c, it call dlsym.
Now dlsym also have 2 definitions. One is in kmdb_dl.c (this is used for
kmdb, I think so), the other is in dlopen.c.
Then the final target I think I should foucs on is the file dlopen.c. But as
you've mentioned, the dlsym function defined here is used for HP/UX.

So, finally, it seems I'm lost in this huge maze :(

Are there any artiles to talk about and discribe the source tree of ON?
I need a  beacon now.

Thanks.

--
James Carlson, Solaris Networking              <[EMAIL PROTECTED]>
Sun Microsystems / 1 Network Drive         71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to