Date: 07 Dec 2000 14:12:29 +0100 From: Dag-Erling Smorgrav <des@ofug.org> To: remy@boostworks.com Cc: dillon@earth.backplane.com, phk@critter.freebsd.dk, freebsd-hackers@FreeBSD.ORG Subject: Re: free() not freing pagedirs pages. Message-ID: <xzp1yvkpe82.fsf@flood.ping.uio.no> In-Reply-To: Dag-Erling Smorgrav's message of "07 Dec 2000 13:55:33 %2B0100" References: <200012071200.NAA35634@luxren2.boostworks.com> <xzp66kwpf0a.fsf@flood.ping.uio.no>
next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Smorgrav <des@ofug.org> writes: > Remy Nonnenmacher <remy@boostworks.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzp1yvkpe82.fsf>