History log of /openbsd-current/usr.bin/systat/swap.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.28 28-Jun-2019 deraadt

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.27 20-Aug-2015 deraadt

Do not cast result of malloc/calloc/realloc* if stdlib.h is in scope
ok krw millert


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.26 16-Jan-2015 deraadt

first batch of programs adapting to the namespace cleanup
(pfvar.h nameser.h proc.h ucred.h)
ok guenther millert, and some review from doug as well.


# 1.25 23-Nov-2014 guenther

<sys/buf.h> isn't actually needed here

ok tedu@


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.24 05-Dec-2012 deraadt

Remove excessive sys/cdefs.h inclusion
ok guenther millert kettenis


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.23 02-Mar-2011 jasper

- use a common FIELD_ADDR macro, instead of rolling 78 identical copies.

ok canacar@


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.22 07-Dec-2008 canacar

Warning cleanup including unused variables and shadowed names


Revision tags: OPENBSD_4_4_BASE
# 1.21 12-Jun-2008 canacar

New display engine for systat, based on pftop. Adds new views for pf
(status, state, rule, queue). While all displays work, some keyboard
comands are not implemented yet. Other features include better handling
of display resize and scrolling for long views. Committing now to fix
the remaining issues in the tree.
Testing and comments by otto@ and harding@, ok deraadt@


Revision tags: OPENBSD_4_3_BASE
# 1.20 01-Sep-2007 deraadt

malloc(n * m) -> calloc(n, m); from zinovik


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.19 25-Feb-2007 deraadt

use the 1 line load line from 'systat vm' on all the other displays, giving
them more room. much cleaner, and it is less code too; ok deanna


Revision tags: OPENBSD_4_0_BASE
# 1.18 31-Mar-2006 deraadt

fairly simple cleanup, lots of testing done


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.17 03-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.16 18-Jun-2002 deraadt

ANSI


Revision tags: OPENBSD_3_1_BASE
# 1.15 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


# 1.14 07-Dec-2001 deraadt

move back. pvalchev -- the bug was quite obscure


# 1.13 07-Dec-2001 pvalchev

back out latest changes which cause problems on alpha/sparc64 until
they are fixed


# 1.12 23-Nov-2001 deraadt

fix signal races. use sysctl() instead of kvm where possible, and then KNF
the hell out of it; checked by miod


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.11 22-May-1999 weingart

Merge for new vmswap code largely from netbsd.


Revision tags: OPENBSD_2_5_BASE
# 1.10 22-Nov-1998 kstailey

now "Total" column can shrink


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE
# 1.9 23-Jun-1997 millert

Cleanup by Theo and myself. CMDLINE changed to long to make
command line work on 64bit platforms. This is somewhat bogus
and is really just a temporary workaround (there may be a curses bug).


Revision tags: OPENBSD_2_1_BASE
# 1.8 01-Apr-1997 deraadt

zap extra XXX if swap goes down; paul@wit387304.student.utwente.nl


# 1.7 31-Jan-1997 deraadt

stop crash from walking off end of malloc'd page. i hunted this bug before
and didn't find it. fix from paul@wit387304.student.utwente.nl


Revision tags: OPENBSD_2_0_BASE
# 1.6 06-Aug-1996 deraadt

whoops


# 1.5 06-Aug-1996 deraadt

avoid buf oflows


# 1.4 26-Jun-1996 deraadt

rcsid


# 1.3 22-May-1996 deraadt

libutil


# 1.2 19-Apr-1996 mickey

Fix a bit, so it's now compiles.
needs more work to do disk stats the way vmstat do.


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.27 20-Aug-2015 deraadt

Do not cast result of malloc/calloc/realloc* if stdlib.h is in scope
ok krw millert


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.26 16-Jan-2015 deraadt

first batch of programs adapting to the namespace cleanup
(pfvar.h nameser.h proc.h ucred.h)
ok guenther millert, and some review from doug as well.


# 1.25 23-Nov-2014 guenther

<sys/buf.h> isn't actually needed here

ok tedu@


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.24 05-Dec-2012 deraadt

Remove excessive sys/cdefs.h inclusion
ok guenther millert kettenis


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.23 02-Mar-2011 jasper

- use a common FIELD_ADDR macro, instead of rolling 78 identical copies.

ok canacar@


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.22 07-Dec-2008 canacar

Warning cleanup including unused variables and shadowed names


Revision tags: OPENBSD_4_4_BASE
# 1.21 12-Jun-2008 canacar

New display engine for systat, based on pftop. Adds new views for pf
(status, state, rule, queue). While all displays work, some keyboard
comands are not implemented yet. Other features include better handling
of display resize and scrolling for long views. Committing now to fix
the remaining issues in the tree.
Testing and comments by otto@ and harding@, ok deraadt@


Revision tags: OPENBSD_4_3_BASE
# 1.20 01-Sep-2007 deraadt

malloc(n * m) -> calloc(n, m); from zinovik


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.19 25-Feb-2007 deraadt

use the 1 line load line from 'systat vm' on all the other displays, giving
them more room. much cleaner, and it is less code too; ok deanna


Revision tags: OPENBSD_4_0_BASE
# 1.18 31-Mar-2006 deraadt

fairly simple cleanup, lots of testing done


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.17 03-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.16 18-Jun-2002 deraadt

ANSI


Revision tags: OPENBSD_3_1_BASE
# 1.15 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


# 1.14 07-Dec-2001 deraadt

move back. pvalchev -- the bug was quite obscure


# 1.13 07-Dec-2001 pvalchev

back out latest changes which cause problems on alpha/sparc64 until
they are fixed


# 1.12 23-Nov-2001 deraadt

fix signal races. use sysctl() instead of kvm where possible, and then KNF
the hell out of it; checked by miod


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.11 22-May-1999 weingart

Merge for new vmswap code largely from netbsd.


Revision tags: OPENBSD_2_5_BASE
# 1.10 22-Nov-1998 kstailey

now "Total" column can shrink


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE
# 1.9 23-Jun-1997 millert

Cleanup by Theo and myself. CMDLINE changed to long to make
command line work on 64bit platforms. This is somewhat bogus
and is really just a temporary workaround (there may be a curses bug).


Revision tags: OPENBSD_2_1_BASE
# 1.8 01-Apr-1997 deraadt

zap extra XXX if swap goes down; paul@wit387304.student.utwente.nl


# 1.7 31-Jan-1997 deraadt

stop crash from walking off end of malloc'd page. i hunted this bug before
and didn't find it. fix from paul@wit387304.student.utwente.nl


Revision tags: OPENBSD_2_0_BASE
# 1.6 06-Aug-1996 deraadt

whoops


# 1.5 06-Aug-1996 deraadt

avoid buf oflows


# 1.4 26-Jun-1996 deraadt

rcsid


# 1.3 22-May-1996 deraadt

libutil


# 1.2 19-Apr-1996 mickey

Fix a bit, so it's now compiles.
needs more work to do disk stats the way vmstat do.


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision