summaryrefslogtreecommitdiff
path: root/bin/ps/ps.c
AgeCommit message (Expand)Author
2015-10-25need "getpw" pledge; spotted by matthieuTheo de Raadt
2015-10-23With new pledge "ps" and "vminfo" requests, ps/top/w become possible.Theo de Raadt
2015-06-29After removing the p_swtime from the kernel, ps always printed 0.0Alexander Bluhm
2015-04-09kflag and wflag don't need to be counters; wflag only needs to know ifOkan Demirmen
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2014-07-08sys/user.h can now be substantially gutted.Theo de Raadt
2014-06-05Add support for COLUMNS env variable, inspired by FreeBSD but with a dashPhilip Guenther
2014-05-07convert calloc to use reallocarray instead. ok millertTed Unangst
2013-11-21add unsigned char casts for specific calls to ctype.h macros.Theo de Raadt
2013-10-31pull in less .h to do the sameTheo de Raadt
2013-10-28add -A (-ax) support; from Lauri Tirkkonen with some option sorting.Okan Demirmen
2013-09-22Stop merging the per-thread and per-process flags when reportingPhilip Guenther
2012-04-21Remove a check made superfluous by the KERN_PROC_SHOW_THREADS flag.Philip Guenthe
2012-04-17Make it optional for kvm_getprocs() (and related sysctl) to returnPaul Irofti
2012-04-12Add per thread accounting, mainly for usage & friends.Paul Irofti
2012-04-04Add "tid" as a formatting keyword. If the -H option is specified, includeJoel Sing
2011-10-13Remove support for systems that lack CPUs. (i.e., stop looking upPhilip Guenthe
2011-09-25Add -H option to show rthreads, hiding them by defaultPhilip Guenthe
2011-04-10Switch back from KERN_PROC2/kinfo_proc2 to KERN_PROC/kinfo_proc nowPhilip Guenthe
2010-07-02ps uses libkvm, so it doesn't need its own copy of the "get process infoPhilip Guenthe
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2008-07-18remove unnessasary cast.Kevin Lo
2008-03-08Instead of calling donlist() in the format print routines, call itTodd C. Miller
2007-12-28printf field widths are always int, so add a cast to removeCharles Longeau
2007-09-01malloc(n * m) -> calloc(n, m); from zinovikTheo de Raadt
2006-11-01simplify synopsis and sync usage();Jason McIntyre
2006-04-25various small lint cleanups; ok ottoTheo de Raadt
2004-11-24on MP machines, in STAT field, add /# where # is the cpu number so thatTheo de Raadt
2004-09-14remove unused variableTheo de Raadt
2004-02-24- `C' before `c'Jason McIntyre
2004-02-08'ps' should not act like 'ps a'. Resolves PR 3676.Otto Moerbeek
2004-02-04(uid_t) -1 is a valid uid, so do not use it as a flag.Otto Moerbeek
2004-01-08Convert to kinfo_proc2. The sort order for -u and -m will be differentTodd C. Miller
2003-07-29spacingTheo de Raadt
2003-06-11ansification, art okTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
2003-04-15mix of tdeval and my string cleaningTheo de Raadt
2002-06-12unused variableArtur Grabowski
2002-06-09Fix the start time on sysctl kvm.Artur Grabowski
2002-06-08Use KVM_NO_FILES and remove the setgid.Artur Grabowski
2002-04-06Fix a typo and sync usage() with man page; Brian PooleTodd C. Miller
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
2002-01-30right, just check more for nulls; from Dan Harnett <danh@wzrd.com>Michael Shalayeff
2002-01-30always check for kvm_openfiles failure; pointed out by juan@coredump.com.ar i...Michael Shalayeff
2001-09-27If kvm_openfiles() fail the systctl() should work.Mike Pechkin
2001-09-06o) __progname aria;Mike Pechkin
2001-06-03Use kern.nprocsAngelos D. Keromytis
2001-06-03Use sysctl to get process information, if kvm has not been initializedAngelos D. Keromytis
2001-04-17Missing bits from last commit here; kstailey@disclosure.comTodd C. Miller
2001-04-17Updated version of last patch from kstailey@disclosure.com.Todd C. Miller