Commit Graph

8 Commits

Author SHA1 Message Date
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