From owner-freebsd-doc Fri Feb 2 5:30:20 2001 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3FC4137B4EC for ; Fri, 2 Feb 2001 05:30:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f12DU2e52966; Fri, 2 Feb 2001 05:30:02 -0800 (PST) (envelope-from gnats) Received: from mailhub.fokus.gmd.de (mailhub.fokus.gmd.de [193.174.154.14]) by hub.freebsd.org (Postfix) with ESMTP id CFE5F37B401 for ; Fri, 2 Feb 2001 05:29:28 -0800 (PST) Received: from fokus.gmd.de (beagle [193.175.132.100]) by mailhub.fokus.gmd.de (8.8.8/8.8.8) with ESMTP id OAA09555 for ; Fri, 2 Feb 2001 14:29:26 +0100 (MET) Received: (from hbb@localhost) by fokus.gmd.de (8.11.2/8.11.0) id f12DTQt02660; Fri, 2 Feb 2001 14:29:26 +0100 (CET) (envelope-from hbb) Message-Id: <200102021329.f12DTQt02660@fokus.gmd.de> Date: Fri, 2 Feb 2001 14:29:26 +0100 (CET) From: Hartmut Brandt Reply-To: brandt@fokus.gmd.de To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: docs/24797: malloc(9) missing #includes in man-page Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 24797 >Category: docs >Synopsis: when using MALLOC_DEFINE sys/param.h and sys/kernel.h are needed >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 02 05:30:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Harti Brandt >Release: FreeBSD 5.0-CURRENT i386 >Organization: GMD Fokus, Berlin >Environment: System: FreeBSD beagle.fokus.gmd.de 5.0-CURRENT FreeBSD 5.0-CURRENT #2: Fri Feb 2 10:58:07 CET 2001 hbb@beagle.fokus.gmd.de:/opt/obj/usr/src/sys/BEAGLE i386 >Description: It should be documented in malloc(9) that sys/param.h is needed to get NULL defined and sys/kernel.h to get SYSINIT defined when one uses MALLOC_DEFINE(). >How-To-Repeat: Try to compile this file: # include # include MALLOC_DEFINE(M_FOOBUF, "foobuffers", "Buffers to foo data into the ether"); and see the compile errors. >Fix: Add something like .Fd #include .Fd #inclued just above the line MALLOC_DEFINE(M_FOOBUF, "foobuffers", "Buffers to foo data into the ether"); in the man page. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message