From owner-freebsd-bugs Mon Sep 30 10:50: 6 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 387FD37B401 for ; Mon, 30 Sep 2002 10:50:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E61F043E42 for ; Mon, 30 Sep 2002 10:50:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g8UHo3Co042127 for ; Mon, 30 Sep 2002 10:50:03 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g8UHo3I8042126; Mon, 30 Sep 2002 10:50:03 -0700 (PDT) Date: Mon, 30 Sep 2002 10:50:03 -0700 (PDT) Message-Id: <200209301750.g8UHo3I8042126@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Janos Mohacsi Subject: Re: bin/43426: mlockall and munlockall system calls are missing from FreeBSD Reply-To: Janos Mohacsi Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/43426; it has been noted by GNATS. From: Janos Mohacsi To: Garrett Wollman Cc: Janos Mohacsi , Subject: Re: bin/43426: mlockall and munlockall system calls are missing from FreeBSD Date: Mon, 30 Sep 2002 19:45:24 +0200 (CEST) On Fri, 27 Sep 2002, Garrett Wollman wrote: > < said: > > > The mlockall and munlockall system calls are missing from FreeBSD. > > The mlockall() and munlockall() functions conform to IEEE Std > > 1003.1b-1993 (``POSIX''). FreeBSD should support these system calls. > > FreeBSD-stable does not define _POSIX_MEMLOCK. > FreeBSD-current defines _POSIX_MEMLOCK as -1. > > This indicates to applications that these features are not supported. > > > Try to import from NetBSD. > > FreeBSD and NetBSD have completely different virtual-memory systems. > The functionality would have to be rewritten from scratch. Perhaps > you can interest one of the VM gurus. Yes I knew that, but I expected that mlockall() can be implemented with usage of mlock(), that does exist on FreeBSD. Unfortunately I am not an expert of the VM and I see that mlockall() on NetBSD is working a quite different way than mlock() on FreeBSD. What a pity! Janos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message