replace /proc scanning code by more versatile one.
authorDenis Vlasenko <vda.linux@googlemail.com>
Sun, 5 Nov 2006 00:43:51 +0000 (00:43 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sun, 5 Nov 2006 00:43:51 +0000 (00:43 -0000)
commit459e4d6cf77940977a064edab60c7162731554fb
tree5deb7d2b82c280440761cceb4281738867d5631a
parentfa07680091d20f9da1f8fa2c145dd92b5d62ae09
replace /proc scanning code by more versatile one.
Use it where appropriate.
Stop scanning /etc/passwd *for every process*!!! (uid->username)
top: reduce memory usage - we won't save unneeded fields
from /proc info anymore. Downside: ~+250 bytes of code
include/libbb.h
libbb/find_pid_by_name.c
libbb/procps.c
procps/kill.c
procps/ps.c
procps/top.c