martin
b99b0d9adb
Allow unsetting the dump device via "swapctl -D none".
...
For -l (list swap partitions) and -z (list dump device) return a usefull
error status, so scripts can easily decide if swap or dump are configured.
2006-08-22 14:08:36 +00:00
xtraeme
f7f1785232
Kill __P(), use ANSI function declarations, constify; WARNS=3.
...
Reviewed by mrg@.
2005-02-09 05:51:38 +00:00
mrg
9bf440d20b
support "-g" and "-m" as well as "-k" and "-h". swapctl & swaplist code
...
from Martin Weber, adapted for pstat by myself.
2003-12-20 13:31:42 +00:00
mrg
5fd013c40d
add a "-h" (humanize_number(3)) option to swapctl(8) and pstat(8), from
...
Martin Weber in PR#23805.
ps: now we only need someone to do ls(1) :-)
2003-12-20 11:22:25 +00:00
agc
c2a3b5ec84
Add NetBSD RCS Ids.
2003-06-23 11:53:35 +00:00
soren
fac5e7d742
Add space in summary printf.
2000-08-19 21:31:58 +00:00
mrg
3e9d54f492
print the strerror if swapctl fails.
1998-10-08 10:00:31 +00:00
mrg
3d6db0aca3
<vm/vm_swap.h> -> <sys/swap.h>
1998-08-29 17:03:35 +00:00
mrg
b5f69ff667
add a `char se_path[PATH_MAX]' member to struct swapent, that
...
the pathname of the swap device is saved into. add a char *swd_path
member to struct swapdev, that contains a copy of the pathname
(using malloc(9)). rename swapctl(2)'s SWAP_STATS to SWAP_OSTATS,
and add a new SWAP_STATS command (number). make swapctl(SWAP_STATS,
...) [new version] copy the path out. if COMPAT_13, also include
support for SWAP_OSTATS. also fix a minor bug in swapctl(2).
the point of this is that swapfiles are now shown in `swapctl -l'.
1998-08-29 13:27:50 +00:00
ross
8fe1f9c56a
Fix this to correctly do swapctl -l for regions > 2^31 bytes.
...
We include <inttypes.h> in case at some point in the future we do things
the SUSV2 way and originate the 64-bit scalar defs there.
1998-06-17 07:46:35 +00:00
mrg
74f573d85d
remove advertising clause from all my licenses.
1997-10-10 05:39:47 +00:00
mrg
327d42e4ef
free() what you malloc().
1997-07-21 05:05:12 +00:00
mikel
e5ef66b32c
include <err.h> for err*() and warn*() prototypes
...
fix some printf() formats to take long args instead of int
1997-06-25 07:44:12 +00:00
mrg
01a7eafbaa
swapctl program for new swap code.
1997-06-12 13:14:11 +00:00