Switch C dialect from c99 to gnu11
params: collect PID/UID/GID/etc information
params: reindent code
params: add more context info, reorg code