How do I programmatically generate something like /proc/pid/maps ?
Is there an API which can get me the same data as in /proc/pid/maps ?
Parsing text can be a bit flaky.
How do I programmatically generate something like /proc/pid/maps ? Is there an API which
Share
/proc/$pid/mapsis the API. If you’re using C, you can reliably parse lines in this file using thescanfformat:(source)