title: Display all process using a posix function
body: <p>I am trying to display currently running process in Ubuntu.</p>
  
  <p>Right now I am using system() function to print running process in the terminal. Code:</p>
  
  <pre><code>system("ps -A");
  </code></pre>
  
  <p>This function displays all running process in the terminal.</p>
  
  <p>But I want to this functionality using a POSIX function. I am not looking for a ready made code. </p>
  
  <p>Can some one point me to the function name or any manual ?</p>