summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat/swap.c
Commit message (Collapse)AuthorAgeFilesLines
* remove __Pimp2002-03-221-2/+2
|
* WARNS=2 fixes with NO_WERROR set, as there are some header issuesmarkm2001-12-121-13/+13
| | | | with namelists. use __FBSDID().
* Mark error() as __printflike() and fix a non-exploitable format stringkris2001-05-251-1/+1
| | | | | | error. MFC after: 1 week
* Get rid of setgid kmem for systat, and while being there, fix some bugstmm2001-03-231-4/+1
| | | | | | | | | | | and compiler warnings. The data for network statistics are still obtained via the kvm interface if systat was started with the needed privileges, otherwise sysctls are used. The reason for this is that with really many open sockets, the sysctl method is probably slower, but it systat -netstat is probably not really usable in either mode under these conditions. Approved by: rwatson
* Quick Fix: swap.c doesn't appear to actually need <sys/conf.h>, so removepeter2000-08-241-1/+0
| | | | | it to try and get world building again. (sys/conf.h now depends on sys/types.h)
* Don't include <sys/buf.h>phk2000-05-051-1/+0
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Tidy up references to <sys/rlist.h> and support for the old swap managementpeter1999-05-111-2/+1
| | | | that went away in January.
* Be nice when no swap is configured in systemdillon1999-02-061-1/+11
|
* Fix labeling bugdillon1999-01-221-1/+3
|
* Make systat -swap use new kvm_swapinfo() functiondillon1999-01-221-137/+57
|
* Quiet many compiler warnings.obrien1998-10-081-3/+6
|
* o Use snprintf rather than sprintfimp1998-06-091-5/+10
| | | | | | | | | | | o Add more checks for buffer overflows o Use snprintf rather than strcat/cpy and have better checks for max length exceeded. Most of these changes are not exploitable buffer overruns, but it never hurts to be safe. Inspired by and obtained from: OpenBSD
* Merge from Lite2 (print "??" instead NULL if devname() fails). Morebde1997-07-061-5/+9
| | | | faithful stealing from pstat would have given this already.
* Fix the following old problem:joerg1997-01-121-79/+79
| | | | | | | date: 1994/10/09 07:37:18; author: davidg; state: Exp; lines: +7 -1 #if 0'd out the meat of the swap code until I get a chance to rewrite it. ...mainly by stealing the code from pstat(8).
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
* #if 0'd out the meat of the swap code until I get a chance to rewrite it.dg1994-10-091-1/+7
|
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+257
OpenPOWER on IntegriCloud