From owner-freebsd-doc Wed Jun 27 12:45:22 2001 Delivered-To: freebsd-doc@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id C8B1B37B407; Wed, 27 Jun 2001 12:45:18 -0700 (PDT) (envelope-from ben@FreeBSD.org) Received: from strontium.shef.vinosystems.com ([192.168.91.36] ident=root) by scientia.demon.co.uk with esmtp (Exim 3.30 #1) id 15FLFU-000M1I-00; Wed, 27 Jun 2001 20:45:16 +0100 Received: (from ben@localhost) by strontium.shef.vinosystems.com (8.11.4/8.11.4) id f5RJjGc49358; Wed, 27 Jun 2001 20:45:16 +0100 (BST) (envelope-from ben@FreeBSD.org) X-Authentication-Warning: strontium.shef.vinosystems.com: ben set sender to ben@FreeBSD.org using -f Date: Wed, 27 Jun 2001 20:45:15 +0100 From: Ben Smithurst To: Poul-Henning Kamp Cc: ru@FreeBSD.org, freebsd-doc@FreeBSD.org Subject: Re: docs/28371: malloc(2) man page correction Message-ID: <20010627204515.D49799@strontium.shef.vinosystems.com> References: <200106271422.f5REMGo18508@freefall.freebsd.org> <93484.993670775@critter> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <93484.993670775@critter> Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Poul-Henning Kamp wrote: > Well, I'm not sure I agree in the fix. The string is not by > definition a constant, you could assign it in your code, depending > on circumstances found only after starting to run (for instance > setting "AJ" when running with a debugging command line switch). But 'extern const char *malloc_options' doesn't prevent that - it makes what malloc_options points to constant, not the malloc_options variable itself. So 'malloc_options = "AJ"' would still be legal, or did I misunderstand something? -- Ben Smithurst / ben@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message