From: Andrew M. <and...@uk...> - 2010-12-01 09:00:06
|
I cannot find any documentation/examples to show how to use/call sigar_proc_env_get from C/C++ programs. When I try it core dumps. Looking at javasigar.c which makes such a call it looks like sigar_proc_env_get might be designed for use just by the JNI wrapper. It looks like it returns a java hashmap.It also looks like I need to set up the sigar_proc_env_t structure including setting up a function pointer. I don't do this at the moment coz I don't know what to do. Maybe this is why it core dumps. Can someone show me how to get the list of env vars and values using sigar please? I assumed it would be using sigar_proc_env_get but now I am not so sure. Regards, Andrew Marlow |