The NetBSD Project

CVS log for src/sbin/swapctl/swaplist.c

[BACK] Up to [cvs.NetBSD.org] / src / sbin / swapctl

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Dec 11 12:47:24 2023 UTC (11 months, 3 weeks ago) by mlelstv
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +4 -3 lines
Avoid overflow of totals.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue May 31 09:34:25 2016 UTC (8 years, 6 months ago) by pgoyette
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -4 lines
Minor formatting change in swapctl -l as noted in my PR bin/51155

Revision 1.15.4.1: download - view: text, markup, annotated - select for diffs
Wed May 13 19:19:06 2009 UTC (15 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +3 -3 lines
Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Apr 6 12:38:35 2009 UTC (15 years, 7 months ago) by lukem
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-premerge-20091211, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3 lines
redo previous to fix amd64 build

Revision 1.16: download - view: text, markup, annotated - select for diffs
Mon Apr 6 12:27:01 2009 UTC (15 years, 7 months ago) by lukem
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -4 lines
fix sign-compare issue

Revision 1.14.22.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:30:00 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14: +2 -4 lines
Sync w/ -current. 34 merge conflicts to follow.

Revision 1.14.20.1: download - view: text, markup, annotated - select for diffs
Wed Jun 4 02:04:37 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14: +2 -4 lines
sync with head

Revision 1.14.18.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:21:24 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14: +2 -4 lines
Sync with HEAD.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu May 29 14:51:25 2008 UTC (16 years, 6 months ago) by mrg
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Branch point for: jym-xensuspend
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -4 lines
remove clause #3 from my license where there are no other
copyright holders involved.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Aug 22 14:08:36 2006 UTC (18 years, 3 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base2, yamt-pf42-base, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-devfs-base, mjf-devfs, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: yamt-pf42, wrstuden-revivesa, mjf-devfs2
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +6 -4 lines
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.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed Feb 9 05:51:38 2005 UTC (19 years, 9 months ago) by xtraeme
Branches: MAIN
CVS tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +4 -10 lines
Kill __P(), use ANSI function declarations, constify; WARNS=3.

Reviewed by mrg@.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Dec 20 13:31:43 2003 UTC (20 years, 11 months ago) by mrg
Branches: MAIN
CVS tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +52 -21 lines
support "-g" and "-m" as well as "-k" and "-h".  swapctl & swaplist code
from Martin Weber, adapted for pstat by myself.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Dec 20 11:22:25 2003 UTC (20 years, 11 months ago) by mrg
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +75 -20 lines
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) :-)

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Jun 23 11:53:45 2003 UTC (21 years, 5 months ago) by agc
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +7 -1 lines
Add NetBSD RCS Ids.

Revision 1.8.10.1: download - view: text, markup, annotated - select for diffs
Sun Sep 3 22:46:35 2000 UTC (24 years, 3 months ago) by soren
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +2 -2 lines
Pull up rev 1.9:
> date: 2000/08/19 21:31:58;  author: soren;  state: Exp;  lines: +2 -2
> Add space in summary printf.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Aug 19 21:31:58 2000 UTC (24 years, 3 months ago) by soren
Branches: MAIN
CVS tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, fvdl_fs64_base
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2 lines
Add space in summary printf.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Oct 8 10:00:31 1998 UTC (26 years, 2 months ago) by mrg
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, netbsd-1-5-ALPHA2, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, minoura-xpg4dl-base, minoura-xpg4dl, comdex-fall-1999-base, comdex-fall-1999
Branch point for: netbsd-1-5
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2 lines
print the strerror if swapctl fails.

Revision 1.4.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 25 17:27:44 1998 UTC (26 years, 2 months ago) by cgd
Branches: netbsd-1-3
CVS tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +2 -2 lines
Pull up part of rev 1.6 ("test correct return value", mrg)

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Aug 29 17:03:35 1998 UTC (26 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -3 lines
<vm/vm_swap.h> -> <sys/swap.h>

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Aug 29 13:27:51 1998 UTC (26 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +18 -12 lines
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'.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Jun 17 07:46:35 1998 UTC (26 years, 5 months ago) by ross
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +18 -14 lines
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.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Oct 10 05:39:55 1997 UTC (27 years, 1 month ago) by mrg
Branches: MAIN
CVS tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Branch point for: netbsd-1-3
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -6 lines
remove advertising clause from all my licenses.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Jul 21 05:05:12 1997 UTC (27 years, 4 months ago) by mrg
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +5 -3 lines
free() what you malloc().

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Jun 25 07:44:12 1997 UTC (27 years, 5 months ago) by mikel
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +5 -4 lines
include <err.h> for err*() and warn*() prototypes
fix some printf() formats to take long args instead of int

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Thu Jun 12 13:14:11 1997 UTC (27 years, 5 months ago) by mrg
Branches: mrg
CVS tags: mrg-970612
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
swapctl program for new swap code.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Jun 12 13:14:11 1997 UTC (27 years, 5 months ago) by mrg
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>