On Linux and other POSIX (?) operating systems - how to get name and parent pid of given (by pid) process? Currently I'm reading /proc but OSX doesn't have it. On OSX I'm using libproc but that doesn't work on Linux:
int ret = proc_pidpath (pid, pathbuf, sizeof(pathbuf));
if ( ret <= 0 ) {
_dbg(" %s\n", strerror(errno));
return false;
}