diff options
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r-- | sys/kern/kern_exec.c | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 7b5b0786deca..fe9638a064d7 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -353,10 +353,7 @@ kern_execve(struct thread *td, struct image_args *args, struct mac *mac_p) * userspace pointers from the passed thread. */ static int -do_execve(td, args, mac_p) - struct thread *td; - struct image_args *args; - struct mac *mac_p; +do_execve(struct thread *td, struct image_args *args, struct mac *mac_p) { struct proc *p = td->td_proc; struct nameidata nd; @@ -1042,8 +1039,7 @@ exec_map_first_page(imgp) } void -exec_unmap_first_page(imgp) - struct image_params *imgp; +exec_unmap_first_page(struct image_params *imgp) { vm_page_t m; @@ -1063,9 +1059,7 @@ exec_unmap_first_page(imgp) * automatically in trap.c. */ int -exec_new_vmspace(imgp, sv) - struct image_params *imgp; - struct sysentvec *sv; +exec_new_vmspace(struct image_params *imgp, struct sysentvec *sv) { int error; struct proc *p = imgp->proc; @@ -1460,8 +1454,7 @@ exec_free_args(struct image_args *args) * as the initial stack pointer. */ register_t * -exec_copyout_strings(imgp) - struct image_params *imgp; +exec_copyout_strings(struct image_params *imgp) { int argc, envc; char **vectp; @@ -1617,8 +1610,7 @@ exec_copyout_strings(imgp) * Return 0 for success or error code on failure. */ int -exec_check_permissions(imgp) - struct image_params *imgp; +exec_check_permissions(struct image_params *imgp) { struct vnode *vp = imgp->vp; struct vattr *attr = imgp->attr; @@ -1688,8 +1680,7 @@ exec_check_permissions(imgp) * Exec handler registration */ int -exec_register(execsw_arg) - const struct execsw *execsw_arg; +exec_register(const struct execsw *execsw_arg) { const struct execsw **es, **xs, **newexecsw; int count = 2; /* New slot and trailing NULL */ @@ -1711,8 +1702,7 @@ exec_register(execsw_arg) } int -exec_unregister(execsw_arg) - const struct execsw *execsw_arg; +exec_unregister(const struct execsw *execsw_arg) { const struct execsw **es, **xs, **newexecsw; int count = 1; |