• jim warner's avatar
    library: play catchup with a new proc_t 'cgname' field · 5d54dc0d
    jim warner authored
    Since we're about to break the ABI/API anyway, why not
    go ahead and add yet another field to our proc_t which
    the newlib branch has had for awhile. This then allows
    the top program to offer 'control group name' and will
    also permit a few reductions in that ps program logic.
    
    And let's also clean up some unrelated warnings below.
    
    Clang warnings:
    proc/readproc.c:1178:50: warning: address of array 'ent->d_name' will always evaluate to 'true' [-Wpointer-bool-conversion]
        if(unlikely(unlikely(!ent) || unlikely(!ent->d_name))) return 0;
                                               ~~~~~~^~~~~~
    proc/readproc.c:1205:50: warning: address of array 'ent->d_name' will always evaluate to 'true' [-Wpointer-bool-conversion]
        if(unlikely(unlikely(!ent) || unlikely(!ent->d_name))) return 0;
                                               ~~~~~~^~~~~~
    Signed-off-by: jim warner's avatarJim Warner <james.warner@comcast.net>
    5d54dc0d
Name
Last commit
Last update
Documentation Loading commit data...
contrib Loading commit data...
include Loading commit data...
lib Loading commit data...
man-po Loading commit data...
misc Loading commit data...
po Loading commit data...
proc Loading commit data...
ps Loading commit data...
testsuite Loading commit data...
top Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LIB Loading commit data...
ChangeLog Loading commit data...
INSTALL.md Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
create-man-pot.sh Loading commit data...
free.1 Loading commit data...
free.c Loading commit data...
kill.1 Loading commit data...
pgrep.1 Loading commit data...
pgrep.c Loading commit data...
pidof.1 Loading commit data...
pidof.c Loading commit data...
pkill.1 Loading commit data...
pmap.1 Loading commit data...
pmap.c Loading commit data...
pwdx.1 Loading commit data...
pwdx.c Loading commit data...
skill.1 Loading commit data...
skill.c Loading commit data...
slabtop.1 Loading commit data...
slabtop.c Loading commit data...
snice.1 Loading commit data...
sysctl.8 Loading commit data...
sysctl.c Loading commit data...
sysctl.conf Loading commit data...
sysctl.conf.5 Loading commit data...
tload.1 Loading commit data...
tload.c Loading commit data...
translate-man.sh Loading commit data...
uptime.1 Loading commit data...
uptime.c Loading commit data...
vmstat.8 Loading commit data...
vmstat.c Loading commit data...
w.1 Loading commit data...
w.c Loading commit data...
watch.1 Loading commit data...
watch.c Loading commit data...