From owner-svn-src-all@freebsd.org Wed May 11 21:14:37 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5C6FFB370EC; Wed, 11 May 2016 21:14:37 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 29D4F1333; Wed, 11 May 2016 21:14:37 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4BLEaL0018874; Wed, 11 May 2016 21:14:36 GMT (envelope-from emaste@FreeBSD.org) Received: (from emaste@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4BLEa5R018873; Wed, 11 May 2016 21:14:36 GMT (envelope-from emaste@FreeBSD.org) Message-Id: <201605112114.u4BLEa5R018873@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: emaste set sender to emaste@FreeBSD.org using -f From: Ed Maste Date: Wed, 11 May 2016 21:14:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r299482 - head/sys/sys X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2016 21:14:37 -0000 Author: emaste Date: Wed May 11 21:14:36 2016 New Revision: 299482 URL: https://svnweb.freebsd.org/changeset/base/299482 Log: exec.h: Move PS_STRINGS define to kernel-only section The kern.ps_strings sysctl was introduced in r103767 and the last use of PS_STRINGS in userspace code was removed in r297888. PR: 208760 [exp-run] Reviewed by: kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5933 Modified: head/sys/sys/exec.h Modified: head/sys/sys/exec.h ============================================================================== --- head/sys/sys/exec.h Wed May 11 20:11:21 2016 (r299481) +++ head/sys/sys/exec.h Wed May 11 21:14:36 2016 (r299482) @@ -58,13 +58,6 @@ struct ps_strings { unsigned int ps_nenvstr; /* the number of environment strings */ }; -/* - * Address of ps_strings structure (in user space). - * Prefer the kern.ps_strings or kern.proc.ps_strings sysctls to this constant. - */ -#define PS_STRINGS (USRSTACK - sizeof(struct ps_strings)) -#define SPARE_USRSPACE 4096 - struct image_params; struct execsw { @@ -77,6 +70,13 @@ struct execsw { #ifdef _KERNEL #include +/* + * Address of ps_strings structure (in user space). + * Prefer the kern.ps_strings or kern.proc.ps_strings sysctls to this constant. + */ +#define PS_STRINGS (USRSTACK - sizeof(struct ps_strings)) +#define SPARE_USRSPACE 4096 + int exec_map_first_page(struct image_params *); void exec_unmap_first_page(struct image_params *);