Kernels such as Linux and the kernels of the BSDs provide four (relevant) pieces of information about a process, via files in
- its program image short name, a.k.a. the short name used for process accounting;
- its argument strings, initialized by
execve()and modifiable at runtime;
- its environment strings, initialized by
execve()and modifiable at runtime; and
- the full pathname of its executable program image file.
Which file in
/proc (and which arguments to
sysctl()) provide each of the four pieces of information?