This is a somewhat complicated question.
Is there anyway for a currently running process to identify the full path to the binary file that launched it?
Basically, I have this binary file which can be installed anywhere in the UNIX file system, and it creates a running process. I need to be able to find the binary file that created the process. Because it can be anywhere, I can't hard code the path. Because this is a C program, I can't use a shell command like "find". So it has to be a C API call or something like that. Does anyone know of such a function?