title: Get pid by process name on Mac OS X in C/C++
body: <p>I'm porting some linux code to mac os. On linux I was able to read the /proc/[pid]/comm file to get the pid of an process by it's name. However on mac os x is no /proc filesystem. So, how is it done on mac?</p>