summaryrefslogtreecommitdiffstats
path: root/usr.bin/w/proc_compare.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-2/+2
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* Track whether a process is a zombie or not yet fully built via flagsguenther2014-07-041-2/+2
| | | | | | | | | | | PS_{ZOMBIE,EMBRYO} on the process instead of peeking into the process's thread data. This eliminates the need for the thread-level SDEAD state. Change kvm_getprocs() (both the sysctl() and kvm backends) to report the "most active" scheduler state for the process's threads. tweaks kettenis@ feedback and ok matthew@
* We no longer use struct eproc for kinfo_proc in sysctl.h so theremillert2012-12-181-2/+3
| | | | | | | is no direct need for sys/proc.h or sys/resource.h. Some consumers of kinfo_proc need these for the proc flags and rlimit defines like RLIM_INF so add the appropriate includes to them. OK deraadt@ sthen@
* Switch back from KERN_PROC2/kinfo_proc2 to KERN_PROC/kinfo_proc nowguenther2011-04-101-2/+2
| | | | | | that we've got name we want for the API we want "ZAP!" deraadt@
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-9/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* spacingderaadt2005-04-111-3/+3
|
* handle SONPROC; ok aaron, deraadt, krwmarkus2004-11-181-3/+4
|
* Convert to kinfo_proc2; ok deraadt@millert2004-01-081-4/+4
|
* Minor cleanup. Remove gratuitous use of __CONCAT that was neededmillert2003-11-261-4/+3
| | | | | to avoid SCCS braindamage. Also use ANSI function headers while we are here. Based on a diff from espie@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-031-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* kill more registersmpech2001-11-191-3/+3
| | | | millert@ ok
* Remove ugly empty line.angelos2001-05-141-3/+2
|
* Add rcsid tags.millert1998-01-161-1/+5
| | | | | If program has set argv[0] or argv[0][0] to NUL, print p->p_comm instead. Based on patch from Paul Janzen <pjanzen@foatdi.harvard.edu>
* rcsidderaadt1996-06-261-0/+2
|
* initial import of NetBSD treederaadt1995-10-181-0/+120