From owner-freebsd-hackers Fri May 12 23:25:17 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 90A5C37BCB1 for ; Fri, 12 May 2000 23:25:14 -0700 (PDT) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e4D6vL101741; Fri, 12 May 2000 23:57:21 -0700 (PDT) Date: Fri, 12 May 2000 23:57:21 -0700 From: Alfred Perlstein To: nathan@khmere.com Cc: "hackers@FreeBSD.ORG" Subject: Re: mremap help ? or no support for FreeBSD ? so do what ? Message-ID: <20000512235721.A28383@fw.wintelcom.net> References: <391D39E0.934224E4@khmere.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <391D39E0.934224E4@khmere.com>; from nathan@khmere.com on Sat, May 13, 2000 at 04:17:53AM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * nathan@khmere.com [000512 21:54] wrote: > I know that this was discussed in the past but I can't find out what to > do ? > > In Linux if I have to resize a mmap 'ed object I can just use mremap.... > but in FreeBSD if, I want to resize it what do I do ? > > I have tried writing past where I know the end is and it kinda works ? > but why ? > > Is their a better solution besides just writing to the file and then > calling msync ? > > Is their new plans to make a mremap call for FreeBSD 4.x ? no. > > Or am I just sh%t out of luck ? Possibly, but if you describe what you are trying to accomplish there may be some advice available. Your misuse of msync makes me think that a rethinking of what you are trying to accomplish may be a good idea. Please explain what makes you need mremap which is not portable to any version of unix. I'm assuming you want your app to work on Solaris and other commercial systems. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message