The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/svr4/svr4_signal.h

Version: -  FREEBSD  -  FREEBSD11  -  FREEBSD10  -  FREEBSD9  -  FREEBSD92  -  FREEBSD91  -  FREEBSD90  -  FREEBSD8  -  FREEBSD82  -  FREEBSD81  -  FREEBSD80  -  FREEBSD7  -  FREEBSD74  -  FREEBSD73  -  FREEBSD72  -  FREEBSD71  -  FREEBSD70  -  FREEBSD6  -  FREEBSD64  -  FREEBSD63  -  FREEBSD62  -  FREEBSD61  -  FREEBSD60  -  FREEBSD5  -  FREEBSD55  -  FREEBSD54  -  FREEBSD53  -  FREEBSD52  -  FREEBSD51  -  FREEBSD50  -  FREEBSD4  -  FREEBSD3  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 /*
    2  * Copyright (c) 1998 Mark Newton
    3  * Copyright (c) 1994 Christos Zoulas
    4  * All rights reserved.
    5  *
    6  * Redistribution and use in source and binary forms, with or without
    7  * modification, are permitted provided that the following conditions
    8  * are met:
    9  * 1. Redistributions of source code must retain the above copyright
   10  *    notice, this list of conditions and the following disclaimer.
   11  * 2. Redistributions in binary form must reproduce the above copyright
   12  *    notice, this list of conditions and the following disclaimer in the
   13  *    documentation and/or other materials provided with the distribution.
   14  * 3. The name of the author may not be used to endorse or promote products
   15  *    derived from this software without specific prior written permission
   16  *
   17  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
   18  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   19  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   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: src/sys/svr4/svr4_signal.h,v 1.6.2.1 2001/02/22 05:15:12 marcel Exp $
   29  */
   30 
   31 #ifndef _SVR4_SIGNAL_H_
   32 #define _SVR4_SIGNAL_H_
   33 
   34 #include <i386/svr4/svr4_machdep.h>
   35 #include <svr4/svr4_siginfo.h>
   36 
   37 #define SVR4_SIGHUP      1
   38 #define SVR4_SIGINT      2
   39 #define SVR4_SIGQUIT     3
   40 #define SVR4_SIGILL      4
   41 #define SVR4_SIGTRAP     5
   42 #define SVR4_SIGIOT      6
   43 #define SVR4_SIGABRT     6
   44 #define SVR4_SIGEMT      7
   45 #define SVR4_SIGFPE      8
   46 #define SVR4_SIGKILL     9
   47 #define SVR4_SIGBUS     10
   48 #define SVR4_SIGSEGV    11
   49 #define SVR4_SIGSYS     12
   50 #define SVR4_SIGPIPE    13
   51 #define SVR4_SIGALRM    14
   52 #define SVR4_SIGTERM    15
   53 #define SVR4_SIGUSR1    16
   54 #define SVR4_SIGUSR2    17
   55 #define SVR4_SIGCLD     18
   56 #define SVR4_SIGCHLD    18
   57 #define SVR4_SIGPWR     19
   58 #define SVR4_SIGWINCH   20
   59 #define SVR4_SIGURG     21
   60 #define SVR4_SIGPOLL    22
   61 #define SVR4_SIGIO      22
   62 #define SVR4_SIGSTOP    23
   63 #define SVR4_SIGTSTP    24
   64 #define SVR4_SIGCONT    25
   65 #define SVR4_SIGTTIN    26
   66 #define SVR4_SIGTTOU    27
   67 #define SVR4_SIGVTALRM  28
   68 #define SVR4_SIGPROF    29
   69 #define SVR4_SIGXCPU    30
   70 #define SVR4_SIGXFSZ    31
   71 #define SVR4_NSIG       32
   72 #define SVR4_SIGTBLSZ   31
   73 
   74 #define SVR4_SIGNO_MASK         0x00FF
   75 #define SVR4_SIGNAL_MASK        0x0000
   76 #define SVR4_SIGDEFER_MASK      0x0100
   77 #define SVR4_SIGHOLD_MASK       0x0200
   78 #define SVR4_SIGRELSE_MASK      0x0400
   79 #define SVR4_SIGIGNORE_MASK     0x0800
   80 #define SVR4_SIGPAUSE_MASK      0x1000
   81 
   82 typedef void (*svr4_sig_t) __P((int, svr4_siginfo_t *, void *));
   83 #define SVR4_SIG_DFL    (svr4_sig_t)     0
   84 #define SVR4_SIG_ERR    (svr4_sig_t)    -1
   85 #define SVR4_SIG_IGN    (svr4_sig_t)     1
   86 #define SVR4_SIG_HOLD   (svr4_sig_t)     2
   87 
   88 #define SVR4_SIGNO(a)   ((a) & SVR4_SIGNO_MASK)
   89 #define SVR4_SIGCALL(a) ((a) & ~SVR4_SIGNO_MASK)
   90 
   91 #define SVR4_SIG_BLOCK          1
   92 #define SVR4_SIG_UNBLOCK        2
   93 #define SVR4_SIG_SETMASK        3
   94 
   95 extern int bsd_to_svr4_sig[];
   96 extern int svr4_to_bsd_sig[];
   97 
   98 #define SVR4_BSD2SVR4_SIG(sig)  \
   99         (((sig) <= SVR4_SIGTBLSZ) ? bsd_to_svr4_sig[_SIG_IDX(sig)] : sig)
  100 #define SVR4_SVR42BSD_SIG(sig)  \
  101         (((sig) <= SVR4_SIGTBLSZ) ? svr4_to_bsd_sig[_SIG_IDX(sig)] : sig)
  102 
  103 typedef struct {
  104         u_long bits[4];
  105 } svr4_sigset_t;
  106 
  107 struct svr4_sigaction {
  108         int             ssa_flags;
  109         svr4_sig_t      ssa_handler;
  110         svr4_sigset_t   ssa_mask;
  111         int             ssa_reserved[2];
  112 };
  113 
  114 struct svr4_sigaltstack {
  115         char            *ss_sp;
  116         int             ss_size;
  117         int             ss_flags;
  118 };
  119 
  120 /* sa_flags */
  121 #define SVR4_SA_ONSTACK         0x00000001
  122 #define SVR4_SA_RESETHAND       0x00000002
  123 #define SVR4_SA_RESTART         0x00000004
  124 #define SVR4_SA_SIGINFO         0x00000008
  125 #define SVR4_SA_NODEFER         0x00000010
  126 #define SVR4_SA_NOCLDWAIT       0x00010000      /* No zombies   */
  127 #define SVR4_SA_NOCLDSTOP       0x00020000      /* No jcl       */
  128 #define SVR4_SA_ALLBITS         0x0003001f
  129 
  130 /* ss_flags */
  131 #define SVR4_SS_ONSTACK         0x00000001
  132 #define SVR4_SS_DISABLE         0x00000002
  133 #define SVR4_SS_ALLBITS         0x00000003
  134 
  135 #define SVR4_MINSIGSTKSZ        8192
  136 
  137 void bsd_to_svr4_sigaltstack __P((const struct sigaltstack *, struct svr4_sigaltstack *));
  138 void bsd_to_svr4_sigset __P((const sigset_t *, svr4_sigset_t *));
  139 void svr4_to_bsd_sigaltstack __P((const struct svr4_sigaltstack *, struct sigaltstack *));
  140 void svr4_to_bsd_sigset __P((const svr4_sigset_t *, sigset_t *));
  141 void svr4_sendsig(sig_t, int, sigset_t  *, u_long);
  142 
  143 #endif /* !_SVR4_SIGNAL_H_ */

Cache object: c09e08e3e17bfd895c6ca9aa9c0d0391


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.