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
This commit is contained in:
parent
bbe0cb3df6
commit
699b3c8722
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=299482
@ -58,13 +58,6 @@ struct ps_strings {
|
|||||||
unsigned int ps_nenvstr; /* the number of environment 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 image_params;
|
||||||
|
|
||||||
struct execsw {
|
struct execsw {
|
||||||
@ -77,6 +70,13 @@ struct execsw {
|
|||||||
#ifdef _KERNEL
|
#ifdef _KERNEL
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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 *);
|
int exec_map_first_page(struct image_params *);
|
||||||
void exec_unmap_first_page(struct image_params *);
|
void exec_unmap_first_page(struct image_params *);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user