Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/kern_exec.c
Show First 20 Lines • Show All 1,161 Lines • ▼ Show 20 Lines | exec_new_vmspace(struct image_params *imgp, struct sysentvec *sv) | ||||
return (0); | return (0); | ||||
} | } | ||||
/* | /* | ||||
* Copy out argument and environment strings from the old process address | * Copy out argument and environment strings from the old process address | ||||
* space into the temporary string buffer. | * space into the temporary string buffer. | ||||
*/ | */ | ||||
int | int | ||||
exec_copyin_args(struct image_args *args, char *fname, | exec_copyin_args(struct image_args *args, const char *fname, | ||||
enum uio_seg segflg, char **argv, char **envv) | enum uio_seg segflg, char **argv, char **envv) | ||||
{ | { | ||||
u_long argp, envp; | u_long argp, envp; | ||||
int error; | int error; | ||||
size_t length; | size_t length; | ||||
bzero(args, sizeof(*args)); | bzero(args, sizeof(*args)); | ||||
if (argv == NULL) | if (argv == NULL) | ||||
▲ Show 20 Lines • Show All 556 Lines • Show Last 20 Lines |