title: Is there a way to list all the current running processes in C
body: <p>So I am building my own shell, and one of the features is to list all background running jobs, their name, PID, job number similar to bash with it's status i.e is it suspended or running. I have to also print the exit status code of background jobs which just ended. Now I was wondering if there is a system call that will do this for me, or a C api call, once they are running in the back ground, or do I have to write my own job function that will do what I just mention? Thanks. I am doing this in C using Linux.</p>