Index: head/sys/sys/exec.h =================================================================== --- head/sys/sys/exec.h +++ head/sys/sys/exec.h @@ -58,13 +58,6 @@ 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 @@ #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 *);