Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/exec.h
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Address of ps_strings structure (in user space). | * Address of ps_strings structure (in user space). | ||||
* Prefer the kern.ps_strings or kern.proc.ps_strings sysctls to this constant. | * Prefer the kern.ps_strings or kern.proc.ps_strings sysctls to this constant. | ||||
*/ | */ | ||||
#define PS_STRINGS (USRSTACK - sizeof(struct ps_strings)) | #define PS_STRINGS (USRSTACK - sizeof(struct ps_strings)) | ||||
#define PROC_PS_STRINGS(p) \ | #define PROC_PS_STRINGS(p) \ | ||||
((p)->p_vmspace->vm_stacktop - (p)->p_sysent->sv_psstringssz) | ((p)->p_vmspace->vm_stacktop - (p)->p_sysent->sv_psstringssz) | ||||
/* | |||||
* Address of signal trampoline (in user space). | |||||
* This assumes that the sigcode resides in the shared page, which is true | |||||
* in all cases, except for a.out binaries. | |||||
*/ | |||||
#define PROC_SIGCODE(p) \ | |||||
((p)->p_sysent->sv_sigcode_base) | |||||
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 *); | ||||
enum uio_seg; | enum uio_seg; | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |