imgact_linux.c (331722) | imgact_linux.c (346816) |
---|---|
1/*- 2 * Copyright (c) 1994-1996 S��ren Schmidt 3 * All rights reserved. 4 * 5 * Based heavily on /sys/kern/imgact_aout.c which is: 6 * Copyright (c) 1993, David Greenman 7 * 8 * Redistribution and use in source and binary forms, with or without --- 16 unchanged lines hidden (view full) --- 25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 */ 31 32#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1994-1996 S��ren Schmidt 3 * All rights reserved. 4 * 5 * Based heavily on /sys/kern/imgact_aout.c which is: 6 * Copyright (c) 1993, David Greenman 7 * 8 * Redistribution and use in source and binary forms, with or without --- 16 unchanged lines hidden (view full) --- 25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: stable/11/sys/i386/linux/imgact_linux.c 331722 2018-03-29 02:50:57Z eadler $"); | 33__FBSDID("$FreeBSD: stable/11/sys/i386/linux/imgact_linux.c 346816 2019-04-28 13:19:28Z dchagin $"); |
34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/exec.h> 38#include <sys/imgact.h> 39#include <sys/imgact_aout.h> 40#include <sys/kernel.h> 41#include <sys/lock.h> --- 188 unchanged lines hidden (view full) --- 230fail: 231 vn_lock(imgp->vp, LK_EXCLUSIVE | LK_RETRY); 232 return (error); 233} 234 235/* 236 * Tell kern_execve.c about it, with a little help from the linker. 237 */ | 34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/exec.h> 38#include <sys/imgact.h> 39#include <sys/imgact_aout.h> 40#include <sys/kernel.h> 41#include <sys/lock.h> --- 188 unchanged lines hidden (view full) --- 230fail: 231 vn_lock(imgp->vp, LK_EXCLUSIVE | LK_RETRY); 232 return (error); 233} 234 235/* 236 * Tell kern_execve.c about it, with a little help from the linker. 237 */ |
238static struct execsw linux_execsw = { exec_linux_imgact, "linux a.out" }; | 238static struct execsw linux_execsw = { exec_linux_imgact, "Linux a.out" }; |
239EXEC_SET(linuxaout, linux_execsw); | 239EXEC_SET(linuxaout, linux_execsw); |