Subject: kern/3772: prototype fur swapctl(2) is missing
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@lyssa.owl.de>
List: netbsd-bugs
Date: 06/22/1997 19:20:48
>Number:         3772
>Category:       kern
>Synopsis:       prototype fur swapctl(2) is missing
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 22 10:35:01 1997
>Last-Modified:
>Originator:     Matthias Scheler
>Organization:
Matthias Scheler                                http://home.pages.de/~tron/
>Release:        970617
>Environment:
System: NetBSD lyssa 1.2G NetBSD 1.2G (LYSSA) #0: Thu Jun 19 20:09:24 MEST 1997 tron@lyssa:/usr/src/sys/arch/i386/compile/LYSSA i386


>Description:
There is no prototype for the new swapctl() syscall in "vm/vm_swap.h" (and
in no other include file, too).

>How-To-Repeat:
Compile XOSView 1.4.1 with the 1.2G patches published on "current-users".

>Fix:
*** src/sys/vm/vm_swap.h.orig	Fri Jun 13 13:26:52 1997
--- src/sys/vm/vm_swap.h	Sun Jun 22 19:15:31 1997
*************** int sys_swapctl __P((struct proc *, void
*** 58,63 ****
--- 58,65 ----
  daddr_t swap_alloc __P((int size));
  void swap_free __P((int size, daddr_t addr));
  void swapinit __P((void));
+ #else
+ int swapctl __P((int, const void *, int));
  #endif
  
  #endif /* _VM_VM_SWAP_H_ */

>Audit-Trail:
>Unformatted: