From nobody@FreeBSD.org  Mon Mar 18 07:42:41 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 6ADF837B402
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 18 Mar 2002 07:42:41 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g2IFgfC50349;
	Mon, 18 Mar 2002 07:42:41 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200203181542.g2IFgfC50349@freefall.freebsd.org>
Date: Mon, 18 Mar 2002 07:42:41 -0800 (PST)
From: Yonatan Bokovza <yonatan@xpert.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] wrong command in malloc(3)
X-Send-Pr-Version: www-1.0

>Number:         36050
>Category:       docs
>Synopsis:       [PATCH] wrong command in malloc(3)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 18 07:50:01 PST 2002
>Closed-Date:    Mon Mar 18 08:26:37 PST 2002
>Last-Modified:  Mon Mar 18 08:26:37 PST 2002
>Originator:     Yonatan Bokovza
>Release:        4.5-Stable of 18/3/2002
>Organization:
>Environment:
FreeBSD Temujin 4.5-STABLE FreeBSD 4.5-STABLE #1: Sun Mar 17 19:00:25 IST 2002   root@Temujin:/usr/obj/usr/src/sys/TEMUJIN  i386
>Description:
from malloc(3):
---
To set a systemwide reduction of cache size, and to dump core whenever a
     problem occurs:

	   ln -s 'A<' /etc/malloc.conf
---
>How-To-Repeat:
read malloc(3)
>Fix:
--- malloc.3.orig	Mon Mar 18 17:23:29 2002
+++ malloc.3	Mon Mar 18 17:24:42 2002
@@ -253,7 +253,7 @@ To set a systemwide reduction of cache s
 a problem occurs:
 .Pp
 .Bd -literal -offset indent
-ln -s 'A<' /etc/malloc.conf
+echo 'A<' > /etc/malloc.conf
 .Ed
 .Pp
 To specify in the source that a program does no return value checking
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: roam 
State-Changed-When: Mon Mar 18 08:25:14 PST 2002 
State-Changed-Why:  
The documentation is quite correct: /etc/malloc.conf is not supposed 
to be a file, merely a symbolic link.  It is read using readlink(2) 
once, at the first call to malloc(3) or calloc(3) or a similar 
function; no file is opened, only the link contents are read. 
Thus, ln -s is correct. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36050 
>Unformatted:
