Hi all! Is there any other way to get it programmatically, like a special flag somewhere in /proc/<pid>/, etc.??
edit:
OK, I have ended up parsing process executable (/proc/<pid>/exe or /proc/<pid>/cmdline)
the 5th byte in ELF header can be 1 if compiled as 32 bit or 2 for 64
Last edited by xakup; 08-13-2010 at 06:49 AM.
|