Operating System - HP-UX
1825578 Members
1195 Online
109682 Solutions
New Discussion

Re: .sl listing per process

 
sanjay khuntia
Occasional Contributor

.sl listing per process

Hi,
Can anyone please tell me how to fetch .sl files for each process using system calls. i mean i want to get a list of all .sl files loaded for a every process. i read the system calls dlget() and others, but i could not get any clear idea how to fetch the information. please guide me.

Thanks and Regards,
sanjay
2 REPLIES 2
Dennis Handly
Acclaimed Contributor

Re: .sl listing per process

If you use dlget(3)/shl_get(3), you can only get the info for your process.

You basically just loop index from 0 to a big N, until you get an error return.
Laurent Menase
Honored Contributor

Re: .sl listing per process

Hi,
For those which where explicitely linked with the program you can use ldd or chatr.
But if they are loaded programatically, you can use "tusc -s open" to trace your application loads for share libs.