linux32_machdep.c (166188) | linux32_machdep.c (166394) |
---|---|
1/*- 2 * Copyright (c) 2004 Tim J. Robbins 3 * Copyright (c) 2002 Doug Rabson 4 * Copyright (c) 2000 Marcel Moolenaar 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 15 unchanged lines hidden (view full) --- 24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2004 Tim J. Robbins 3 * Copyright (c) 2002 Doug Rabson 4 * Copyright (c) 2000 Marcel Moolenaar 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 15 unchanged lines hidden (view full) --- 24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/amd64/linux32/linux32_machdep.c 166188 2007-01-23 08:46:51Z jeff $"); | 32__FBSDID("$FreeBSD: head/sys/amd64/linux32/linux32_machdep.c 166394 2007-02-01 13:24:40Z kib $"); |
33 34#include <sys/param.h> 35#include <sys/kernel.h> 36#include <sys/systm.h> 37#include <sys/file.h> 38#include <sys/fcntl.h> 39#include <sys/clock.h> 40#include <sys/imgact.h> --- 507 unchanged lines hidden (view full) --- 548 printf(ARGS(clone, "flags %x, stack %x, parent tid: %x, child tid: %x"), 549 (unsigned int)args->flags, (unsigned int)(uintptr_t)args->stack, 550 (unsigned int)(uintptr_t)args->parent_tidptr, 551 (unsigned int)(uintptr_t)args->child_tidptr); 552 } 553#endif 554 555 exit_signal = args->flags & 0x000000ff; | 33 34#include <sys/param.h> 35#include <sys/kernel.h> 36#include <sys/systm.h> 37#include <sys/file.h> 38#include <sys/fcntl.h> 39#include <sys/clock.h> 40#include <sys/imgact.h> --- 507 unchanged lines hidden (view full) --- 548 printf(ARGS(clone, "flags %x, stack %x, parent tid: %x, child tid: %x"), 549 (unsigned int)args->flags, (unsigned int)(uintptr_t)args->stack, 550 (unsigned int)(uintptr_t)args->parent_tidptr, 551 (unsigned int)(uintptr_t)args->child_tidptr); 552 } 553#endif 554 555 exit_signal = args->flags & 0x000000ff; |
556 if (exit_signal >= LINUX_NSIG) | 556 if (!LINUX_SIG_VALID(exit_signal) && exit_signal != 0) |
557 return (EINVAL); 558 559 if (exit_signal <= LINUX_SIGTBLSZ) 560 exit_signal = linux_to_bsd_signal[_SIG_IDX(exit_signal)]; 561 562 if (args->flags & CLONE_VM) 563 ff |= RFMEM; 564 if (args->flags & CLONE_SIGHAND) --- 624 unchanged lines hidden --- | 557 return (EINVAL); 558 559 if (exit_signal <= LINUX_SIGTBLSZ) 560 exit_signal = linux_to_bsd_signal[_SIG_IDX(exit_signal)]; 561 562 if (args->flags & CLONE_VM) 563 ff |= RFMEM; 564 if (args->flags & CLONE_SIGHAND) --- 624 unchanged lines hidden --- |