Add the BSD version of GetCommandForPid()
commitab9c85a11d43c276ac698fc81981ded4007e5a4f
authorTamas TEVESZ <ice@extreme.hu>
Mon, 22 Mar 2010 14:48:47 +0000 (22 15:48 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 26 Mar 2010 20:08:17 +0000 (26 21:08 +0100)
tree66415e5b4906b7965d9685fb414abc94dc178f83
parent294ea56d8441537b373b3401de2269ce738cd66b
Add the BSD version of GetCommandForPid()

- tested on Net, Free, Open and DragonFly

- fix up the linux version (terminate argv with a null ptr)
- add error handling to file ops in the linux version
- add a stub version for platforms not supported
src/osdep/bsd.c [new file with mode: 0644]
src/osdep/linux.c
src/osdep/stub.c [new file with mode: 0644]
src/osdep/test.c [new file with mode: 0644]