aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/linux
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2018-03-19 15:11:10 +0000
committerEd Maste <emaste@FreeBSD.org>2018-03-19 15:11:10 +0000
commit9bec2ea66e56d7d887e8166cd88a196ff9d3dd4d (patch)
tree90aaf002d7399a4f53509e915a4225761bf73c05 /sys/amd64/linux
parentc69defc269991130de2684ac83a887cfad4949bb (diff)
Notes
Diffstat (limited to 'sys/amd64/linux')
-rw-r--r--sys/amd64/linux/linux_sysvec.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/amd64/linux/linux_sysvec.c b/sys/amd64/linux/linux_sysvec.c
index cc2a654b400e..0f9cc34f0761 100644
--- a/sys/amd64/linux/linux_sysvec.c
+++ b/sys/amd64/linux/linux_sysvec.c
@@ -126,6 +126,7 @@ static void linux_vdso_install(void *param);
static void linux_vdso_deinstall(void *param);
static void linux_set_syscall_retval(struct thread *td, int error);
static int linux_fetch_syscall_args(struct thread *td);
+static int exec_linux_imgact_try(struct image_params *iparams);
static void linux_exec_setregs(struct thread *td, struct image_params *imgp,
u_long stack);
static int linux_vsyscall(struct thread *td);
@@ -669,8 +670,6 @@ linux_rt_sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask)
* be able to modify the interpreter path. We only do this if a Linux
* binary is doing the exec, so we do not create an EXEC module for it.
*/
-static int exec_linux_imgact_try(struct image_params *iparams);
-
static int
exec_linux_imgact_try(struct image_params *imgp)
{
@@ -685,15 +684,14 @@ exec_linux_imgact_try(struct image_params *imgp)
*/
if (((const short *)head)[0] == SHELLMAGIC) {
/*
- * Run our normal shell image activator. If it succeeds
- * attempt to use the alternate path for the interpreter.
- * If an alternate path is found, use our stringspace
- * to store it.
+ * Run our normal shell image activator. If it succeeds then
+ * attempt to use the alternate path for the interpreter. If
+ * an alternate path is found, use our stringspace to store it.
*/
if ((error = exec_shell_imgact(imgp)) == 0) {
linux_emul_convpath(FIRST_THREAD_IN_PROC(imgp->proc),
- imgp->interpreter_name, UIO_SYSSPACE,
- &rpath, 0, AT_FDCWD);
+ imgp->interpreter_name, UIO_SYSSPACE, &rpath, 0,
+ AT_FDCWD);
if (rpath != NULL)
imgp->args->fname_buf =
imgp->interpreter_name = rpath;