]> git.proxmox.com Git - mirror_qemu.git/commit - bsd-user/qemu.h
bsd-user: implement path searching
authorWarner Losh <imp@bsdimp.com>
Fri, 30 Apr 2021 01:34:34 +0000 (19:34 -0600)
committerWarner Losh <imp@bsdimp.com>
Fri, 10 Sep 2021 20:13:06 +0000 (14:13 -0600)
commit1b50ff64a52b08bebb17d947eb95c18ba88fa20f
tree31cb49d39934a3d86a8f08f9eab9024babacf042
parent223005f0584ece2868b0b5ac11b06f3984aad569
bsd-user: implement path searching

Use the PATH to find the executable given a bare argument. We need to do
this so we can implement mixing native and emulated binaries (e.g.,
execing a x86 native binary from an emulated arm binary to optimize
parts of the build). By finding the binary, we will know how to exec it.

Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
bsd-user/bsdload.c
bsd-user/qemu.h