Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/imgact.h
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | struct image_args { | ||||
char *begin_argv; /* beginning of argv in buf */ | char *begin_argv; /* beginning of argv in buf */ | ||||
char *begin_envv; /* beginning of envv in buf */ | char *begin_envv; /* beginning of envv in buf */ | ||||
char *endp; /* current `end' pointer of arg & env strings */ | char *endp; /* current `end' pointer of arg & env strings */ | ||||
char *fname; /* pointer to filename of executable (system space) */ | char *fname; /* pointer to filename of executable (system space) */ | ||||
char *fname_buf; /* pointer to optional malloc(M_TEMP) buffer */ | char *fname_buf; /* pointer to optional malloc(M_TEMP) buffer */ | ||||
int stringspace; /* space left in arg & env buffer */ | int stringspace; /* space left in arg & env buffer */ | ||||
int argc; /* count of argument strings */ | int argc; /* count of argument strings */ | ||||
int envc; /* count of environment strings */ | int envc; /* count of environment strings */ | ||||
int interpreter; /* descriptor of interpreter to override with */ | |||||
int fd; /* file descriptor of the executable */ | int fd; /* file descriptor of the executable */ | ||||
struct filedesc *fdp; /* new file descriptor table */ | struct filedesc *fdp; /* new file descriptor table */ | ||||
}; | }; | ||||
struct image_params { | struct image_params { | ||||
struct proc *proc; /* our process struct */ | struct proc *proc; /* our process struct */ | ||||
struct label *execlabel; /* optional exec label */ | struct label *execlabel; /* optional exec label */ | ||||
struct vnode *vp; /* pointer to vnode of file to exec */ | struct vnode *vp; /* pointer to vnode of file to exec */ | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |