Home | History | Annotate | Line # | Download | only in common
linux_signal.h revision 1.6
      1  1.6      erh /* 	$NetBSD: linux_signal.h,v 1.6 1998/10/01 00:57:30 erh Exp $	*/
      2  1.1     fvdl 
      3  1.1     fvdl /*
      4  1.6      erh  * Copyright (c) 1998 Eric Haszlakiewicz
      5  1.1     fvdl  * Copyright (c) 1995 Frank van der Linden
      6  1.1     fvdl  * All rights reserved.
      7  1.1     fvdl  *
      8  1.1     fvdl  * Redistribution and use in source and binary forms, with or without
      9  1.1     fvdl  * modification, are permitted provided that the following conditions
     10  1.1     fvdl  * are met:
     11  1.1     fvdl  * 1. Redistributions of source code must retain the above copyright
     12  1.1     fvdl  *    notice, this list of conditions and the following disclaimer.
     13  1.1     fvdl  * 2. Redistributions in binary form must reproduce the above copyright
     14  1.1     fvdl  *    notice, this list of conditions and the following disclaimer in the
     15  1.1     fvdl  *    documentation and/or other materials provided with the distribution.
     16  1.1     fvdl  * 3. All advertising materials mentioning features or use of this software
     17  1.1     fvdl  *    must display the following acknowledgement:
     18  1.1     fvdl  *      This product includes software developed for the NetBSD Project
     19  1.1     fvdl  *      by Frank van der Linden
     20  1.1     fvdl  * 4. The name of the author may not be used to endorse or promote products
     21  1.1     fvdl  *    derived from this software without specific prior written permission
     22  1.1     fvdl  *
     23  1.1     fvdl  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     24  1.1     fvdl  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     25  1.1     fvdl  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     26  1.1     fvdl  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     27  1.1     fvdl  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     28  1.1     fvdl  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     29  1.1     fvdl  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     30  1.1     fvdl  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     31  1.1     fvdl  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     32  1.1     fvdl  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     33  1.1     fvdl  */
     34  1.1     fvdl 
     35  1.6      erh /* Note: Machine dependant portions of this file exist. */
     36  1.1     fvdl 
     37  1.6      erh #ifndef _COMMON_LINUX_SIGNAL_H
     38  1.6      erh #define _COMMON_LINUX_SIGNAL_H
     39  1.3  mycroft 
     40  1.6      erh #ifdef _KERNEL
     41  1.5  mycroft extern int native_to_linux_sig[];
     42  1.5  mycroft extern int linux_to_native_sig[];
     43  1.6      erh __BEGIN_DECLS
     44  1.6      erh void linux_old_to_native_sigset __P((const linux_old_sigset_t *, sigset_t *));
     45  1.6      erh void native_to_linux_old_sigset __P((const sigset_t *, linux_old_sigset_t *));
     46  1.6      erh 
     47  1.6      erh #if 0
     48  1.6      erh /* XXX Need these if sizeof(linux_old_sigset_t) != sizeof(linux_sigset_t) */
     49  1.5  mycroft void linux_to_native_sigset __P((const linux_sigset_t *, sigset_t *));
     50  1.5  mycroft void native_to_linux_sigset __P((const sigset_t *, linux_sigset_t *));
     51  1.6      erh #endif
     52  1.6      erh 
     53  1.6      erh #define linux_to_native_sigset(x,y) \
     54  1.6      erh 			linux_old_to_native_sigset((linux_old_sigset_t *)x, y)
     55  1.6      erh #define native_to_linux_sigset(x,y) \
     56  1.6      erh 			native_to_linux_old_sigset(x, (linux_old_sigset_t *)y)
     57  1.6      erh 
     58  1.6      erh void linux_old_to_native_sigaction __P((struct linux_old_sigaction *, \
     59  1.6      erh 							struct sigaction *));
     60  1.6      erh void native_to_linux_old_sigaction __P((struct sigaction *, \
     61  1.6      erh 						struct linux_old_sigaction *));
     62  1.6      erh 
     63  1.6      erh void linux_to_native_sigaction __P((struct linux_sigaction *, \
     64  1.6      erh 							struct sigaction *));
     65  1.6      erh void native_to_linux_sigaction __P((struct sigaction *, \
     66  1.6      erh 						struct linux_sigaction *));
     67  1.6      erh 
     68  1.6      erh __END_DECLS
     69  1.6      erh #endif /* !_KERNEL */
     70  1.1     fvdl 
     71  1.6      erh #endif /* !_COMMON_LINUX_SIGNAL_H */
     72