From owner-freebsd-hackers Thu Dec 7 5:12:55 2000 From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 7 05:12:54 2000 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 2112237B400 for ; Thu, 7 Dec 2000 05:12:53 -0800 (PST) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id OAA33879; Thu, 7 Dec 2000 14:12:29 +0100 (CET) (envelope-from des@ofug.org) Sender: des@ofug.org X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: remy@boostworks.com Cc: dillon@earth.backplane.com, phk@critter.freebsd.dk, freebsd-hackers@FreeBSD.ORG Subject: Re: free() not freing pagedirs pages. References: <200012071200.NAA35634@luxren2.boostworks.com> From: Dag-Erling Smorgrav Date: 07 Dec 2000 14:12:29 +0100 In-Reply-To: Dag-Erling Smorgrav's message of "07 Dec 2000 13:55:33 +0100" Message-ID: Lines: 15 User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dag-Erling Smorgrav writes: > Remy Nonnenmacher writes: > > Well, I may think using this solution if it remains portable between > > Unixes. > It's perfectly portable, with one small variation - on BSD systems, > you pass -1 instead of a file descriptor, while on SysV systems, you > pass a descriptor to /dev/zero (or was it /dev/null?) FWIW, I just did some tests - mmap()'ing /dev/zero works on FreeBSD as well, and mapping the same fd multiple times gives you separate areas, so you don't need a new fd for each. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message