CVS commit: src/sbin/swapctl

"YAMAMOTO Takashi" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	yamt
Date:		Tue Mar 24 16:38:12 UTC 2026

Modified Files:
	src/sbin/swapctl: swaplist.c

Log Message:
swapctl(8): do not assume PGSHIFT is available

PGSHIFT might not be available in userland. eg. sparc
use sysconf(_SC_PAGESIZE) to query the kernel instead.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sbin/swapctl/swaplist.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.