summaryrefslogtreecommitdiff
path: root/bin/ps/nlist.c
AgeCommit message (Collapse)Author
2020-08-26Don't rely on the USPACE kernel define as a fallback if the vm.uspacesimonb
sysctl fails. We've got bigger problems if the sysctl fail anyway.
2016-11-28for donlist{,_sysctl}:rin
- obtain log_ccpu = log(ccpu) rather than ccpu itself - use common default values and warn users appropriately when errors occur ok martin
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2006-10-16c99 initializerschristos
2004-08-22Use HW_PHYSMEM64 to avoid problem with > 2GB memory (and >4GB as well)dsl
Fixes PR/23717 and PR/24092
2004-03-27#define<TAB>simonb
2004-03-27KNF, ANSFify, de-__P, unC++ify, white space nits.simonb
2004-02-25donlist_sysctl() was overwriting maxslp with vm.uspace. Changedjrf
it to use uspace. See PR bin/23713, approved by christos@netbsd.org. Thanks to joff@stchome.com for the submission.
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22249, verified by myself.
2003-01-18Merge the nathanw_sa branch.thorpej
2001-07-14Retrieve maxslp & uspace from kernel instead of using defines. Needed formatt
shared arm code.
2000-06-08Fix handling of "ps U<user>" where <user> ended it 't' - now if thesimonb
first argument doesn't start with a '-' and ends in 't', the 't' only gets converted to a 'T' (for listing processes on the current tty) if it doesn't contain any other command line option characters that take an argument. Problem noticed by ITOH Yasufumi on tech-userlevel. If the 'start' format was the last column, the width wouldn't be set and started() output a zero length string instead of a string the right length - fix header width calculations so the the last column is handled the same all others. This only showed up for 'start' because started() knew that the column header is the same width and the field itself... Update copyrights.
2000-05-26Use new sysctl/kvm interfaces. This will stop the "proc size mismatch"simonb
errors when internal kernel structures change size. Also remove the sgid bit - all live kernel data is accessed through the sysctl interface.
1999-12-03Since we have an "extern.h", put all external variable declarations insimonb
that file and not sprinkled around various .c files.
1998-03-27Use the physmem variable to get at the physical memory size (instead of theis
avail_end - avail_start difference which is only correct on machines with contiguous memory).
1998-02-06remove old OLD BSD VM code.mrg
1997-07-20Fix compiler warningschristos
Add WARNS=1
1995-03-21convert to new RCS id conventions.cgd
1994-12-04from James Jegers <jimj@miller.cs.uwm.edu>: quiet -Wall, and squelchcgd
some of the worst style errors.
1994-11-25Format police.mycroft
1994-11-25print %MEM correctlyderaadt
1994-05-09clean up importcgd
1994-05-05update for changed flagscgd
1993-08-01Add RCS identifiers.mycroft
1993-03-23changed "Id" to "Header" for rcsidscgd
1993-03-22added rcs ids to all filescgd
1993-03-21after 0.2.2 "stable" patches appliedcgd
1993-03-21initial import of 386bsd-0.1 sourcescgd