summaryrefslogtreecommitdiff
path: root/bin/ps
AgeCommit message (Collapse)Author
2011-04-18Revert the sigacts diff: NFS can apparently retain pointers to processesPhilip Guenthe
until they're zombies and then send them signals (for intr mounts). Until that is untangled, the sigacts change is unsafe. sthen@ was the victim for this one
2011-04-15Correct the sharing of the signal handling state: stuff that shouldPhilip Guenthe
be shared (p_sigignore, p_sigcatch, P_NOCLDSTOP, P_NOCLDWAIT) moves to struct sigacts, wihle stuff that should be per rthread (ps_oldmask, SAS_OLDMASK, ps_sigstk) moves to struct proc. Treat the coredumping state bits (ps_sig, ps_code, ps_type, ps_sigval) as per-rthread until our locking around coredumping is better. Oh, and remove the old SunOS-compat ps_usertramp member. "I like the sound of this" tedu@
2011-04-10Switch back from KERN_PROC2/kinfo_proc2 to KERN_PROC/kinfo_proc nowPhilip Guenthe
that we've got name we want for the API we want "ZAP!" deraadt@
2011-04-03Update the description of the 'flags' keyword, including the known values,Philip Guenthe
aligning the table for easier reading. ok ariane@, millert@, deraadt@
2011-03-12Replace the old, broken KERN_PROC ABI and its matching functionsPhilip Guenthe
in libkvm with the stable-ABI versions that are currently named KERN_PROC2, kvm_get{proc,argv,envv}2(). The latter names and symbols will continue to be supported for a few releases. Committing now that they ports people have had a couple releases to update pkgs that usd the old functions
2010-09-03add an EXIT STATUS section for /bin;Jason McIntyre
2010-07-02ps uses libkvm, so it doesn't need its own copy of the "get process infoPhilip Guenthe
via sysctl" logic. ok millert@
2010-02-14Avoid overflow and wraparound in memory fields by using unsignedPhilip Guenthe
long long arithmetic and formats. Use PTRWIDTH for the column size for various address fields. ok otto@ tedu@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
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
2009-02-08updates to IEEE Std 1003.1-2008;Jason McIntyre
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2009-01-21Do not mention /dev/drum anymore, since we won't use it. With tweaks fromMiod Vallat
jmc@
2008-07-18remove unnessasary cast.Kevin Lo
ok millert@
2008-06-17better description of what ps without arguments does;Jason McIntyre
from Pierre Riteau ok otto
2008-03-24- extern.h is already included by ps.h, so zap it.Jasper Lievisse Adriaanse
from Jacek Masiulaniec, via ray@ ok ray@
2008-03-17better .Nd; from Pierre RiteauJason McIntyre
ok sobrado
2008-03-08Instead of calling donlist() in the format print routines, call itTodd C. Miller
a single time before we print anything, if needed. Uses a flag to specify which formats need the kernel info donlist() provides. OK deraadt@
2008-02-10Use HW_PHYSMEM64.Mark Kettenis
ok krw@
2007-12-28printf field widths are always int, so add a cast to removeCharles Longeau
"warning: field width is not type int" "looks good" otto@
2007-11-06fix format stringCharles Longeau
ok ray@ gilles@
2007-09-01malloc(n * m) -> calloc(n, m); from zinovikTheo de Raadt
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-29- consistent STANDARDS blurbJason McIntyre
- note which options are extensions to POSIX discussed w/ deraadt otto millert
2007-04-13Userland gets 7 chars of wchan, not 6; noticed by thib@Miod Vallat
ok mickey@ otto@
2006-11-29Do not test for processes being swapped out since this can't happen anymore.Miod Vallat
2006-11-02overhaul the keywords section;Jason McIntyre
2006-11-01-.Xr sh 1 ,Jason McIntyre
2006-11-01some minor adjustments to the options list;Jason McIntyre
2006-11-01+.Ex -std psJason McIntyre
2006-11-01- no need for double markupJason McIntyre
- prefer .Sq for single letters
2006-11-01give FILES a bit of space;Jason McIntyre
2006-11-01note that -L may not be specified with other options;Jason McIntyre
2006-11-01simplify synopsis and sync usage();Jason McIntyre
2006-10-16The session field is a pointer and so should be 8 chars forTodd C. Miller
32-bit CPUs and 16 chars for 64-bit ones. Also, left-justify the state field name to match the justification of the state data. OK jmc@
2006-05-02Format nicelevel relative NZERO as other tools do.Hugh Graham
Surely, says millert.
2006-04-25various small lint cleanups; ok ottoTheo de Raadt
2006-03-10add missing break; found by lintMoritz Jodeit
ok deraadt@
2006-03-101.36 and onwards did not print extra spaces, but sometimes skipped spaces.Theo de Raadt
we need a proper flag to keep track of space insert requirements thanks for further testing by millert
2005-09-06make some of the stat utility pages reference each other;Jason McIntyre
idea from a mail to misc@ from simon dassow;
2005-07-06Only print a space separating argv and the real command (in parens)Todd C. Miller
when argv is non-NULL and empty. OK deraadt@ and fgsch@.
2005-07-01use a standard format for EXAMPLES;Jason McIntyre
2005-01-14bring back the space before (cmd); ok millert aaronTheo de Raadt
2005-01-07avoid negative memory sizes, ok deraadt@Otto Moerbeek
2004-12-20Don't print an unnecessary trailing space character at the end of commandAaron Campbell
argument display. This makes it easier to grep ps output for 'foo$', instead of having to use 'foo *$'. millert@ ok
2004-11-24remove obsolete `A' from `state' example;Jason McIntyre
ok millert@
2004-11-24on MP machines, in STAT field, add /# where # is the cpu number so thatTheo de Raadt
you can see processes move around; ok pval millert
2004-11-18handle SONPROC; ok aaron, deraadt, krwMarkus Friedl
2004-09-14remove unused variableTheo de Raadt
2004-09-14rename internal uname() to euname() to avoid libc conflictTheo de Raadt
2004-06-20Fix description of the cpuid keyword. The current wording is misleading sinceAaron Campbell
the CPU ID *can* be 0 on SMP systems (meaning the first processor). miod@ ok