diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-11-05 01:59:56 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-11-05 01:59:56 +0000 |
commit | e05e16efa1b6fdbeab87f3c35f6dd106ed1789c9 (patch) | |
tree | ae3d42ca3a43dfe5238a6503057532919bbbc2a3 /sys/compat/pecoff | |
parent | b2a246fa7430c692dccca295c0c132324c419662 (diff) | |
download | FreeBSD-src-e05e16efa1b6fdbeab87f3c35f6dd106ed1789c9.zip FreeBSD-src-e05e16efa1b6fdbeab87f3c35f6dd106ed1789c9.tar.gz |
Remove reference to struct execve_args from struct imgact, which
describes an image activation instance. Instead, make use of the
existing fname structure entry, and introduce two new entries,
userspace_argv, and userspace_envv. With the addition of
mac_execve(), this divorces the image structure from the specifics
of the execve() system call, removes a redundant pointer, etc.
No semantic change from current behavior, but it means that the
structure doesn't depend on syscalls.master-generated includes.
There seems to be some redundant initialization of imgact entries,
which I have maintained, but which could probably use some cleaning
up at some point.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/compat/pecoff')
-rw-r--r-- | sys/compat/pecoff/imgact_pecoff.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/compat/pecoff/imgact_pecoff.c b/sys/compat/pecoff/imgact_pecoff.c index 1d70189..bf05ca8 100644 --- a/sys/compat/pecoff/imgact_pecoff.c +++ b/sys/compat/pecoff/imgact_pecoff.c @@ -363,7 +363,8 @@ pecoff_load_file(struct thread * td, const char *file, u_long * addr, u_long * e * Initialize part of the common data */ imgp->proc = td->td_proc; - imgp->uap = NULL; + imgp->userspace_argv = NULL; + imgp->userspace_envv = NULL; imgp->attr = &attr; imgp->firstpage = NULL; |