For a CPP application in linux, I need the running processes list, their PID , The port they are running on, and the location of the .exe file where it is started from.
I can use PS command, But I want it in a CPP application. Using System command and parsing the output is not recommended.
Does Linux store these information somewhere from where I can read or is there some native API's which I can make use of like win32 api's in windows.