summaryrefslogtreecommitdiffstats
path: root/bin/ps/ps.c
AgeCommit message (Expand)AuthorFilesLines
2019-12-16Delete tests for P_THREAD that predate the existence ofguenther1-3/+1
2019-03-24detect -t argument being too long, rather than truncatingderaadt1-5/+8
2019-02-05Let ps(1) work in single user mode where /var/run does not exist.florian1-3/+3
2018-09-16Use uid_from_user(3) and gid_from_group(3) in utilities thatmillert1-6/+2
2018-08-08unveil dev.db "r" for devname(), /dev "r", and in the non-sysctl casederaadt1-1/+14
2016-09-23Attempt to use stdout, stderr, or stdin terminal widths if they exist.bentley1-2/+5
2016-03-17Switch (non-curses, non-ksh) programs that use COLUMNS to a single idiom.bentley1-17/+9
2016-01-10UTF-8 support:schwarze1-1/+4
2015-11-11fix pledge error messagederaadt1-2/+2
2015-10-25need "getpw" pledge; spotted by matthieuderaadt1-2/+2
2015-10-23With new pledge "ps" and "vminfo" requests, ps/top/w become possible.deraadt1-1/+4
2015-06-29After removing the p_swtime from the kernel, ps always printed 0.0bluhm1-6/+4
2015-04-09kflag and wflag don't need to be counters; wflag only needs to know ifokan1-3/+3
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt1-3/+4
2014-07-08sys/user.h can now be substantially gutted.deraadt1-2/+1
2014-06-05Add support for COLUMNS env variable, inspired by FreeBSD but with a dashguenther1-9/+18
2014-05-07convert calloc to use reallocarray instead. ok millerttedu1-2/+2
2013-11-21add unsigned char casts for specific calls to ctype.h macros.deraadt1-3/+4
2013-10-31pull in less .h to do the samederaadt1-1/+2
2013-10-28add -A (-ax) support; from Lauri Tirkkonen with some option sorting.okan1-6/+10
2013-09-22Stop merging the per-thread and per-process flags when reportingguenther1-2/+2
2012-04-21Remove a check made superfluous by the KERN_PROC_SHOW_THREADS flag.guenther1-3/+1
2012-04-17Make it optional for kvm_getprocs() (and related sysctl) to returnpirofti1-1/+3
2012-04-12Add per thread accounting, mainly for usage & friends.pirofti1-1/+5
2012-04-04Add "tid" as a formatting keyword. If the -H option is specified, includejsing1-3/+8
2011-10-13Remove support for systems that lack CPUs. (i.e., stop looking upguenther1-12/+2
2011-09-25Add -H option to show rthreads, hiding them by defaultguenther1-5/+10
2011-04-10Switch back from KERN_PROC2/kinfo_proc2 to KERN_PROC/kinfo_proc nowguenther1-5/+5
2010-07-02ps uses libkvm, so it doesn't need its own copy of the "get process infoguenther1-30/+6
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt1-15/+1
2008-07-18remove unnessasary cast.kevlo1-3/+3
2008-03-08Instead of calling donlist() in the format print routines, call itmillert1-3/+9
2007-12-28printf field widths are always int, so add a cast to removechl1-3/+3
2007-09-01malloc(n * m) -> calloc(n, m); from zinovikderaadt1-3/+3
2006-11-01simplify synopsis and sync usage();jmc1-4/+3
2006-04-25various small lint cleanups; ok ottoderaadt1-5/+5
2004-11-24on MP machines, in STAT field, add /# where # is the cpu number so thatderaadt1-2/+10
2004-09-14remove unused variablederaadt1-4/+4
2004-02-24- `C' before `c'jmc1-4/+4
2004-02-08'ps' should not act like 'ps a'. Resolves PR 3676.otto1-3/+5
2004-02-04(uid_t) -1 is a valid uid, so do not use it as a flag.otto1-8/+8
2004-01-08Convert to kinfo_proc2. The sort order for -u and -m will be differentmillert1-77/+56
2003-07-29spacingderaadt1-7/+7
2003-06-11ansification, art okderaadt1-13/+8
2003-06-02Remove the advertising clause in the UCB license which Berkeleymillert1-7/+3
2003-04-15mix of tdeval and my string cleaningderaadt1-4/+6
2002-06-12unused variableart1-3/+2
2002-06-09Fix the start time on sysctl kvm.art1-16/+8
2002-06-08Use KVM_NO_FILES and remove the setgid.art1-14/+9
2002-04-06Fix a typo and sync usage() with man page; Brian Poolemillert1-4/+4