libgtop is a library for portably obtaining information about processes, such as their PID, memory usage, etc.