linux system calls under c

How would I use linux system calls under a c++ program? For example, if I got to the console and type :

myconsole$: cat /proc/$pid/cmdline

where $pid is the pid of a program, I would receive the command line of a program. How would I do this in a c/c++ program? What headers should I include? Thanks

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!