I need a way to determine the process id so that I can print the contents of /proc/(pid)/maps to logcat (for memory map debugging purposes). Is there a native equivalent of the following Java method:
public static final int android.os.Process.myPid()
Or alternatively, is there a way to somehow call the above method from the native code (through JNI perhaps). I am still pretty new to the NDK, so I apologize if this is super obvious.