summaryrefslogtreecommitdiff
path: root/bin/ps/ps.c
AgeCommit message (Collapse)Author
2004-09-14remove unused variableTheo de Raadt
2004-02-24- `C' before `c'Jason McIntyre
- replace `<' and `>' - sync usage()
2004-02-08'ps' should not act like 'ps a'. Resolves PR 3676.Otto Moerbeek
ok tdeval@ millert@
2004-02-04(uid_t) -1 is a valid uid, so do not use it as a flag.Otto Moerbeek
From Joris Vink <nimadeus at pandora dot be> with tweaks from me. ok tdeval@ hshoexer@ henning@
2004-01-08Convert to kinfo_proc2. The sort order for -u and -m will be differentTodd C. Miller
due to a bug fix in the sort routine.
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
rescinded 22 July 1999. Proofed by myself and Theo.
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
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
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 ↵Michael Shalayeff
in pr/2362
2001-09-27If kvm_openfiles() fail the systctl() should work.Mike Pechkin
Spotted by: mike <mike@gravitino.net> Patch from millert@
2001-09-06o) __progname aria;Mike Pechkin
millert@ ok.
2001-06-03Use kern.nprocsAngelos D. Keromytis
2001-06-03Use sysctl to get process information, if kvm has not been initializedAngelos D. Keromytis
(which is still not the case).
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
We should always save the user area since we are sorting on start time (which lives there).
2001-04-15Randomized PIDs uglifies "ps -ax" output since it sorts on tty thenTodd C. Miller
PID and it makes no sense to sort on a strong random number. This patch changes the default to be the start time so output looks logical to a human. From kstailey@disclosure.com
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
show them with -k. Do not try to show RSS based values for them as they mess up column alignment. vmstat -f now shows kernel threads separately from rforks too.
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
1997-06-13return 1 if the process does not exist.michaels
1996-12-22Deal with _POSIX_SAVED_IDS when relinquishing privilegesThorsten Lockert
1996-12-14-Wall'ing.Michael Shalayeff
1996-08-06_POSIX2_LINE_MAX errbuf for kvm_openfiles()Theo de Raadt
1996-08-02zap getopt() case of -?, come on, it is the default!Theo de Raadt
1996-06-23update rcsidTheo de Raadt
1996-06-16allocate large enough buffer; netbsd pr#2550; gsstark@mit.eduTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt