NetBSD Problem Report #10450
Received: (qmail 8635 invoked from network); 26 Jun 2000 13:34:23 -0000
Message-Id: <200006261334.PAA08692@danbala.tuwien.ac.at>
Date: Mon, 26 Jun 2000 15:34:08 +0200 (MEST)
From: Dieter Baron <dillo@danbala.tuwien.ac.at>
Reply-To: dillo@danbala.tuwien.ac.at
To: gnats-bugs@gnats.netbsd.org
Subject: minherit(2) inherit types not defined
X-Send-Pr-Version: 3.95
>Number: 10450
>Category: lib
>Synopsis: minherit(2) inherit types not defined
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: lib-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jun 26 13:35:00 +0000 2000
>Closed-Date: Tue Mar 13 18:22:25 +0000 2001
>Last-Modified: Tue Mar 13 18:22:25 +0000 2001
>Originator: Dieter Baron
>Release: 1.4.2
>Organization:
>Environment:
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
>Description:
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.
>How-To-Repeat:
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]
int foo = VM_INHERIT_SHARE
>Fix:
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
necessary.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: wiz
State-Changed-When: Tue Mar 13 10:20:53 PST 2001
State-Changed-Why:
Fixed in -current around 2000/08/01, and pulled up to 1.5.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.