title: Getting a list of used libraries by a running process on Mac OS
body: <p>I need to find out what libraries a process has loaded and might use throughout it's lifetime. Is this possible and how. Or better yet, i have a library name and i need to find out what processes are using it, is this possible.</p>
  <p>On the same note, is it possible to get notified some how when a unix process is launched and when it is quit. They would not be child processes of my process, i just need to know globally.</p>
  <p><strong>Update:</strong></p>
  <p>I think I didn't give enough information. I was looking for a way to find the loaded libraries a process has and I need to do it in C/C++.</p>