From owner-svn-src-head@FreeBSD.ORG Thu Dec 15 09:10:04 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EFAF7106566C; Thu, 15 Dec 2011 09:10:03 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 660808FC17; Thu, 15 Dec 2011 09:10:02 +0000 (UTC) Received: from alf.home (alf.kiev.zoral.com.ua [10.1.1.177]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id pBF99lA9084901 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 15 Dec 2011 11:09:47 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from alf.home (kostik@localhost [127.0.0.1]) by alf.home (8.14.5/8.14.5) with ESMTP id pBF99lX9047684; Thu, 15 Dec 2011 11:09:47 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by alf.home (8.14.5/8.14.5/Submit) id pBF99lAt047683; Thu, 15 Dec 2011 11:09:47 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: alf.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 15 Dec 2011 11:09:47 +0200 From: Kostik Belousov To: John Baldwin Message-ID: <20111215090947.GK50300@deviant.kiev.zoral.com.ua> References: <201112142222.pBEMMJ1U017244@svn.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="a/561OsMvuio6Y2Q" Content-Disposition: inline In-Reply-To: <201112142222.pBEMMJ1U017244@svn.freebsd.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r228509 - in head: share/man/man9 sys/kern sys/sys X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2011 09:10:04 -0000 --a/561OsMvuio6Y2Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > + switch (rv) { > + case KERN_INVALID_ADDRESS: > + case KERN_NO_SPACE: > + return (ENOMEM); > + case KERN_PROTECTION_FAILURE: > + return (EACCES); > + default: > + return (EINVAL); > + } You can replace this fragment with the call to vm_mmap_to_errno(). --a/561OsMvuio6Y2Q Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk7puVsACgkQC3+MBN1Mb4jHbQCg4wYT+l4wlSCF5679EGYV8ahh 740An1lLRMMzI+M3S2tH6/FSNxtmI1FM =R0Du -----END PGP SIGNATURE----- --a/561OsMvuio6Y2Q--