linux.h (68807) | linux.h (69081) |
---|---|
1/*- 2 * Copyright (c) 1994-1996 S�ren Schmidt 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 --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 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 * | 1/*- 2 * Copyright (c) 1994-1996 S�ren Schmidt 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 --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 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 * $FreeBSD: head/sys/i386/linux/linux.h 68807 2000-11-16 02:08:40Z gallatin $ | 28 * $FreeBSD: head/sys/i386/linux/linux.h 69081 2000-11-23 08:55:30Z marcel $ |
29 */ 30 31#ifndef _I386_LINUX_LINUX_H_ 32#define _I386_LINUX_LINUX_H_ 33 34#include <sys/signal.h> /* for sigval union */ 35 36#include <i386/linux/linux_syscall.h> --- 293 unchanged lines hidden (view full) --- 330 331/* 332 * We make the stack look like Linux expects it when calling a signal 333 * handler, but use the BSD way of calling the handler and sigreturn(). 334 * This means that we need to pass the pointer to the handler too. 335 * It is appended to the frame to not interfere with the rest of it. 336 */ 337struct linux_sigframe { | 29 */ 30 31#ifndef _I386_LINUX_LINUX_H_ 32#define _I386_LINUX_LINUX_H_ 33 34#include <sys/signal.h> /* for sigval union */ 35 36#include <i386/linux/linux_syscall.h> --- 293 unchanged lines hidden (view full) --- 330 331/* 332 * We make the stack look like Linux expects it when calling a signal 333 * handler, but use the BSD way of calling the handler and sigreturn(). 334 * This means that we need to pass the pointer to the handler too. 335 * It is appended to the frame to not interfere with the rest of it. 336 */ 337struct linux_sigframe { |
338 int sf_sig; 339 struct linux_sigcontext sf_sc; 340 struct linux_fpstate fpstate; 341 u_int extramask[LINUX_NSIG_WORDS-1]; 342 linux_handler_t sf_handler; | 338 int sf_sig; 339 struct linux_sigcontext sf_sc; 340 struct linux_fpstate sf_fpstate; 341 u_int sf_extramask[LINUX_NSIG_WORDS-1]; 342 linux_handler_t sf_handler; |
343}; 344 345struct linux_rt_sigframe { 346 int sf_sig; | 343}; 344 345struct linux_rt_sigframe { 346 int sf_sig; |
347 linux_siginfo_t *sf_siginfo;; 348 struct linux_ucontext *sf_ucontext; 349 linux_siginfo_t sf_si; 350 struct linux_ucontext sf_sc; | 347 linux_siginfo_t *sf_siginfo; 348 struct linux_ucontext *sf_ucontext; 349 linux_siginfo_t sf_si; 350 struct linux_ucontext sf_sc; |
351 linux_handler_t sf_handler; 352}; 353 | 351 linux_handler_t sf_handler; 352}; 353 |
354 | |
355extern int bsd_to_linux_signal[]; 356extern int linux_to_bsd_signal[]; 357extern struct sysentvec linux_sysvec; 358extern struct sysentvec elf_linux_sysvec; 359 360/* 361 * Pluggable ioctl handlers 362 */ --- 186 unchanged lines hidden --- | 354extern int bsd_to_linux_signal[]; 355extern int linux_to_bsd_signal[]; 356extern struct sysentvec linux_sysvec; 357extern struct sysentvec elf_linux_sysvec; 358 359/* 360 * Pluggable ioctl handlers 361 */ --- 186 unchanged lines hidden --- |