Subject: lib/10450: minherit(2) inherit types not defined
To: None <>
From: Dieter Baron <>
List: netbsd-bugs
Date: 06/26/2000 06:34:11
>Number:         10450
>Category:       lib
>Synopsis:       minherit(2) inherit types not defined
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 26 06:35:00 PDT 2000
>Originator:     Dieter Baron
>Release:        1.4.2
System: NetBSD danbala 1.4.2 NetBSD 1.4.2 (DANBALA) #0: Wed Jan 1 04:30:28 MET 1997 root@:/usr/src/sys/arch/i386/compile/DANBALA i386

The man page for minherit(2) lists sys/types.h and sys/mman.h
as required include files, but the types of inheritance (VM_INHERIT_*)
are defined in neither.  grepping in /usr/inlucde reveales, that it is
defined in vm/vm_inherit.h, which is included by vm/vm.h.  However,
including either results in compile errors.

the following piece of code results in a compile error (replace [ with
<; I don't know how to prevent send-pr from removing <):

#include [sys/types.h]
#include [sys/mman.h]
Define the VM_INHERIT_* macros documented in minherit(2) in some header
file that can be included from user programs and update the man page if