]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
exec: Simplify sv_copyout_strings implementations a bit
authorMark Johnston <markj@FreeBSD.org>
Fri, 31 Dec 2021 17:50:15 +0000 (12:50 -0500)
committerMark Johnston <markj@FreeBSD.org>
Fri, 31 Dec 2021 17:50:15 +0000 (12:50 -0500)
commitf04a096049382637178b54ffb45089f5f9fb3db9
treec1c1eab82476bd9dd77740bd7edfba54b0e558e0
parent757089f01e3f5386d134443047fae363a8da9809
exec: Simplify sv_copyout_strings implementations a bit

Simplify control flow around handling of the execpath length and signal
trampoline.  Cache the sysentvec pointer in a local variable.

No functional change intended.

Reviewed by: kib
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33703
sys/amd64/linux/linux_sysvec.c
sys/amd64/linux32/linux32_sysvec.c
sys/arm64/linux/linux_sysvec.c
sys/compat/freebsd32/freebsd32_misc.c
sys/i386/linux/linux_sysvec.c
sys/kern/kern_exec.c