This new flagflag will now obtainsn and show the processor number on which a process is running.
Key parts of code and manual were borrowed from topThis change was inspired by PR129965. Initially I didn't think that the patch attached to it was correct -- it sacrificed ki_estcpu use in "cpu" for ki_lastcpu and I thought that the old functionality should be kept and the new one added to it. But I've since discovered that ki_estcpu is sched_4bsd-specific. What's worse, it represents the same thing as ki_pctcpu, except ki_pctcpu is universal -- so "%cpu" has been using it successfully. Therefore, I've decided to replace information based on ki_estcpu with information based on ki_oncpu/ki_lastcpu.
This change was inspired by PR129965. Initially I didn't think that the patch attached to it was correct -- it sacrificed ki_estcpu use for ki_lastcpu and I thought that the old functionality should be kept and the new one added to it. But I've since discovered that ki_estcpu is sched_4bsd-specific. It represents the same thing as ki_pctcpu, except ki_pctcpu is universal -- so "%cpu" uses it successfullyKey parts of code and manual were borrowed from top(1).
```
%# ps -ocomm,cpu,cpu#,%cpu
COMMAND CPU C %CPU
tcsh 0 1 0getty 3 0.0
ps 0 0 0getty 3 0.0
tcsh getty 0 1 0 0.0
tcsh 0 0 0getty 3 0.0
make getty 0 1 0 0.0
make 0 0 0getty 1 0.0
sh 0getty 3 0.0
gmake 0 2 0getty 0 0.0
gmakeps 0 3 0.0
cc su 0 1 0 0.0
cc csh 0 2 0 0.0
```