Subject: lib/4015: Man page link swapon.2 -> swapctl.2 not installed
To: None <gnats-bugs@gnats.netbsd.org>
From: maximum entropy <entropy@tardis.bernstein.com>
List: netbsd-bugs
Date: 08/19/1997 06:57:51
>Number:         4015
>Category:       lib
>Synopsis:       Man page link swapon.2 -> swapctl.2 not installed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 19 04:05:01 1997
>Last-Modified:
>Originator:     maximum entropy
>Organization:
	
>Release:        <NetBSD-current source date> 19970818
>Environment:
	
Any NetBSD-current system
System: NetBSD tardis.bernstein.com 1.2G NetBSD 1.2G (C466DE) #0: Mon Aug 11 13:29:35 EDT 1997 entropy@tardis.bernstein.com:/usr/src/sys/arch/i386/compile/C466DE i386


>Description:
	
After the recent swap modifications in -current, the swapctl(2) interface
superseded the swapon(2) interface.  The swapon.2 man page was replaced
by the swapctl.2 page which also describes the deprecated swapon(2)
interface.  However any old system upgraded from source will still have
the old swapon.2 man page installed unless explicitly cleaned up by the
administrator.

"man 2 swapon" should direct the user to the new swapctl.2 man page.
>How-To-Repeat:
	
On a system recently upgraded to -current:
man 2 swapon
>Fix:
	

--- /usr/src/lib/libc/sys/Makefile.inc.orig	Fri Jun 13 07:15:36 1997
+++ /usr/src/lib/libc/sys/Makefile.inc	Tue Aug 19 05:35:26 1997
@@ -198,6 +198,7 @@
 MLINKS+=shmat.2 shmdt.2
 MLINKS+=stat.2 fstat.2 stat.2 lstat.2
 MLINKS+=statfs.2 fstatfs.2
+MLINKS+=swapctl.2 swapon.2
 MLINKS+=syscall.2 __syscall.2
 MLINKS+=truncate.2 ftruncate.2
 MLINKS+=utimes.2 futimes.2
>Audit-Trail:
>Unformatted: