Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/exec.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
struct ps_strings { | struct ps_strings { | ||||
char **ps_argvstr; /* first of 0 or more argument strings */ | char **ps_argvstr; /* first of 0 or more argument strings */ | ||||
unsigned int ps_nargvstr; /* the number of argument strings */ | unsigned int ps_nargvstr; /* the number of argument strings */ | ||||
char **ps_envstr; /* first of 0 or more environment strings */ | char **ps_envstr; /* first of 0 or more environment 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 { | ||||
int (*ex_imgact)(struct image_params *); | int (*ex_imgact)(struct image_params *); | ||||
const char *ex_name; | const char *ex_name; | ||||
}; | }; | ||||
#include <machine/exec.h> | #include <machine/exec.h> | ||||
#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 *); | ||||
int exec_register(const struct execsw *); | int exec_register(const struct execsw *); | ||||
int exec_unregister(const struct execsw *); | int exec_unregister(const struct execsw *); | ||||
extern int coredump_pack_fileinfo; | extern int coredump_pack_fileinfo; | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |