I want to call the 'stat' system call dynamically.
In other words, I want to use the dlopen to dynamically load a shared
library and bind to the stat function using dlsym. I want to be able
to do this on Linux (Ubuntu) and Mac OS X.
My questions are:
0) Given a function name, how can I fiund out if it is available in a
shared library (.so) or only in a static library(.a)?
1) Given a function name, how can I find which shared library (.so)
exports that function?
2) Is the stat system call available as an exported function in a
shared library?
Thanks,
gopan