summaryrefslogtreecommitdiff
path: root/bin/ps/ps.c
AgeCommit message (Expand)Author
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
2001-04-15Randomized PIDs uglifies "ps -ax" output since it sorts on tty thenTodd C. Miller
2001-02-05[-] outside bracesTheo de Raadt
2001-02-05extra - in usage tooTheo de Raadt
2000-06-18Mark kernel threads as system processes. Make ps hide them by default,Niklas Hallqvist
2000-04-16correct getoptEric Jackson
1999-06-21stop casting the third argument to kvm_read to char *. it is a void *.Artur Grabowski
1999-04-28Implement -U <username> option from FreeBSD. Original code by Peter Wemm.Alex Feldman
1998-07-08whack kmem gid after kvm_openfiles()Theo de Raadt
1997-08-04toast non-NEWVM code; freebsdTheo de Raadt