Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jan 2003 02:00:22 -0800
From:      Marcel Moolenaar <marcel@xcllnt.net>
To:        "Alan L. Cox" <alc@imimic.com>
Cc:        Peter Wemm <peter@wemm.org>, Matthew Dillon <dillon@apollo.backplane.com>, arch@FreeBSD.ORG
Subject:   Re: Virtual memory question
Message-ID:  <20030114100022.GA17799@dhcp01.pn.xcllnt.net>
In-Reply-To: <3E239150.9FC363DD@imimic.com>
References:  <20030114041407.DDFC32A89E@canning.wemm.org> <3E239150.9FC363DD@imimic.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 13, 2003 at 10:25:52PM -0600, Alan L. Cox wrote:
> 
> >From the spec (on the web page that I mentioned): 
> 
> "The name argument points to a string naming a shared memory object. It
> is unspecified whether the name appears in the file system and is
> visible to other functions that take pathnames as arguments."
> 
> I don't think ftruncate() is necessary.  The underlying shm object can
> be grown implicitly according to its mmap()ings.  I do not, however,
> know of a way to shrink an shm object.

shm_open("key", O_TRUNC|..., ...) ?

-- 
 Marcel Moolenaar	  USPA: A-39004		 marcel@xcllnt.net

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030114100022.GA17799>