linux_emul.c (166931) | linux_emul.c (166944) |
---|---|
1/*- 2 * Copyright (c) 2006 Roman Divacky 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2006 Roman Divacky 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/sys/compat/linux/linux_emul.c 166931 2007-02-23 22:39:26Z netchild $"); | 30__FBSDID("$FreeBSD: head/sys/compat/linux/linux_emul.c 166944 2007-02-24 16:49:25Z netchild $"); |
31 32#include "opt_compat.h" 33 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/imgact.h> 37#include <sys/kernel.h> 38#include <sys/lock.h> --- 168 unchanged lines hidden (view full) --- 207 cup.op = LINUX_FUTEX_WAKE; 208 cup.val = 0x7fffffff; /* Awake everyone */ 209 cup.timeout = NULL; 210 cup.uaddr2 = NULL; 211 cup.val3 = 0; 212 error = linux_sys_futex(FIRST_THREAD_IN_PROC(p), &cup); 213 /* 214 * this cannot happen at the moment and if this happens it | 31 32#include "opt_compat.h" 33 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/imgact.h> 37#include <sys/kernel.h> 38#include <sys/lock.h> --- 168 unchanged lines hidden (view full) --- 207 cup.op = LINUX_FUTEX_WAKE; 208 cup.val = 0x7fffffff; /* Awake everyone */ 209 cup.timeout = NULL; 210 cup.uaddr2 = NULL; 211 cup.val3 = 0; 212 error = linux_sys_futex(FIRST_THREAD_IN_PROC(p), &cup); 213 /* 214 * this cannot happen at the moment and if this happens it |
215 * probably mean there is a userspace bug | 215 * probably means there is a user space bug |
216 */ 217 if (error) 218 printf(LMSG("futex stuff in proc_exit failed.\n")); 219 } 220 221 /* clean the stuff up */ 222 free(em, M_LINUX); 223 --- 109 unchanged lines hidden --- | 216 */ 217 if (error) 218 printf(LMSG("futex stuff in proc_exit failed.\n")); 219 } 220 221 /* clean the stuff up */ 222 free(em, M_LINUX); 223 --- 109 unchanged lines hidden --- |