freebsd-skq/bin/ps
Edward Tomasz Napierala d7026b9671 Fix kvm_getprocs(3) error reporting in ps(1).
Previously it just didn't work at all - kvm_getprocs(3) doesn't update
the &nentries when it returns NULL.  The end result was that ps(1) showed
garbage data instead of reporting kinfo_proc size mismatch.

Reviewed by:	cem
Obtained from:	CheriBSD
MFC after:	2 weeks
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D12414
2017-10-06 15:09:28 +00:00
..
extern.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
fmt.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
keyword.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
Makefile Explicitly add unmarked bin/ binaries to the runtime package. 2016-02-09 16:58:50 +00:00
Makefile.depend Update dependencies after r291406 added libelf to libkvm. 2015-12-01 05:18:48 +00:00
nlist.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
print.c Make ps(1) flag processes in capsicum(4) capability mode with "C". 2017-09-06 16:34:42 +00:00
ps.1 Hint that the "-o emul" option for ps(1) shows the ABI. 2017-09-07 10:56:50 +00:00
ps.c Fix kvm_getprocs(3) error reporting in ps(1). 2017-10-06 15:09:28 +00:00
ps.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00