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/compat/svr4/svr4_signo.c

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*      $NetBSD: svr4_signo.c,v 1.3 2008/05/10 11:51:01 martin Exp $     */
    2 
    3 /*-
    4  * Copyright (c) 2002 The NetBSD Foundation, Inc.
    5  * All rights reserved.
    6  *
    7  * This code is derived from software contributed to The NetBSD Foundation
    8  * by Christos Zoulas.
    9  *
   10  * Redistribution and use in source and binary forms, with or without
   11  * modification, are permitted provided that the following conditions
   12  * are met:
   13  * 1. Redistributions of source code must retain the above copyright
   14  *    notice, this list of conditions and the following disclaimer.
   15  * 2. Redistributions in binary form must reproduce the above copyright
   16  *    notice, this list of conditions and the following disclaimer in the
   17  *    documentation and/or other materials provided with the distribution.
   18  *
   19  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   20  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   21  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   22  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   23  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   24  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   25  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   26  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   27  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   28  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   29  * POSSIBILITY OF SUCH DAMAGE.
   30  */
   31 
   32 #include <sys/cdefs.h>
   33 __KERNEL_RCSID(0, "$NetBSD: svr4_signo.c,v 1.3 2008/05/10 11:51:01 martin Exp $");
   34 
   35 #include <sys/types.h>
   36 #include <sys/signal.h>
   37 
   38 #include <compat/svr4/svr4_types.h>
   39 #include <compat/svr4/svr4_signal.h>
   40 
   41 const int native_to_svr4_signo[NSIG] = {
   42         0,                      /* 0 */
   43         SVR4_SIGHUP,            /* 1 */
   44         SVR4_SIGINT,            /* 2 */
   45         SVR4_SIGQUIT,           /* 3 */
   46         SVR4_SIGILL,            /* 4 */
   47         SVR4_SIGTRAP,           /* 5 */
   48         SVR4_SIGABRT,           /* 6 */
   49         SVR4_SIGEMT,            /* 7 */
   50         SVR4_SIGFPE,            /* 8 */
   51         SVR4_SIGKILL,           /* 9 */
   52         SVR4_SIGBUS,            /* 10 */
   53         SVR4_SIGSEGV,           /* 11 */
   54         SVR4_SIGSYS,            /* 12 */
   55         SVR4_SIGPIPE,           /* 13 */
   56         SVR4_SIGALRM,           /* 14 */
   57         SVR4_SIGTERM,           /* 15 */
   58         SVR4_SIGURG,            /* 16 */
   59         SVR4_SIGSTOP,           /* 17 */
   60         SVR4_SIGTSTP,           /* 18 */
   61         SVR4_SIGCONT,           /* 19 */
   62         SVR4_SIGCHLD,           /* 20 */
   63         SVR4_SIGTTIN,           /* 21 */
   64         SVR4_SIGTTOU,           /* 22 */
   65         SVR4_SIGIO,             /* 23 */
   66         SVR4_SIGXCPU,           /* 24 */
   67         SVR4_SIGXFSZ,           /* 25 */
   68         SVR4_SIGVTALRM,         /* 26 */
   69         SVR4_SIGPROF,           /* 27 */
   70         SVR4_SIGWINCH,          /* 28 */
   71         0,                      /* 29 SIGINFO */
   72         SVR4_SIGUSR1,           /* 30 */
   73         SVR4_SIGUSR2,           /* 31 */
   74         SVR4_SIGPWR,            /* 32 */
   75         SVR4_SIGRTMIN + 0,      /* 33 */
   76         SVR4_SIGRTMIN + 1,      /* 34 */
   77         SVR4_SIGRTMIN + 2,      /* 35 */
   78         SVR4_SIGRTMIN + 3,      /* 36 */
   79         SVR4_SIGRTMIN + 4,      /* 37 */
   80         SVR4_SIGRTMIN + 5,      /* 38 */
   81         SVR4_SIGRTMIN + 6,      /* 39 */
   82         SVR4_SIGRTMIN + 7,      /* 40 */
   83         SVR4_SIGRTMIN + 8,      /* 41 */
   84         SVR4_SIGRTMIN + 9,      /* 42 */
   85         SVR4_SIGRTMIN + 10,     /* 43 */
   86         SVR4_SIGRTMIN + 11,     /* 44 */
   87         SVR4_SIGRTMIN + 12,     /* 45 */
   88         SVR4_SIGRTMIN + 13,     /* 46 */
   89         SVR4_SIGRTMIN + 14,     /* 47 */
   90         SVR4_SIGRTMIN + 15,     /* 48 */
   91         SVR4_SIGRTMIN + 16,     /* 49 */
   92         SVR4_SIGRTMIN + 17,     /* 50 */
   93         SVR4_SIGRTMIN + 18,     /* 51 */
   94         SVR4_SIGRTMIN + 19,     /* 52 */
   95         SVR4_SIGRTMIN + 20,     /* 53 */
   96         SVR4_SIGRTMIN + 21,     /* 54 */
   97         SVR4_SIGRTMIN + 22,     /* 55 */
   98         SVR4_SIGRTMIN + 23,     /* 56 */
   99         SVR4_SIGRTMIN + 24,     /* 57 */
  100         SVR4_SIGRTMIN + 25,     /* 58 */
  101         SVR4_SIGRTMIN + 26,     /* 59 */
  102         SVR4_SIGRTMIN + 27,     /* 60 */
  103         SVR4_SIGRTMIN + 28,     /* 61 */
  104         SVR4_SIGRTMIN + 29,     /* 62 */
  105         SVR4_SIGRTMIN + 30,     /* 63 */
  106 };
  107 
  108 const int svr4_to_native_signo[SVR4_NSIG] = {
  109         0,                      /* 0 */
  110         SIGHUP,                 /* 1 */
  111         SIGINT,                 /* 2 */
  112         SIGQUIT,                /* 3 */
  113         SIGILL,                 /* 4 */
  114         SIGTRAP,                /* 5 */
  115         SIGABRT,                /* 6 */
  116         SIGEMT,                 /* 7 */
  117         SIGFPE,                 /* 8 */
  118         SIGKILL,                /* 9 */
  119         SIGBUS,                 /* 10 */
  120         SIGSEGV,                /* 11 */
  121         SIGSYS,                 /* 12 */
  122         SIGPIPE,                /* 13 */
  123         SIGALRM,                /* 14 */
  124         SIGTERM,                /* 15 */
  125         SIGUSR1,                /* 16 */
  126         SIGUSR2,                /* 17 */
  127         SIGCHLD,                /* 18 */
  128         SIGPWR,                 /* 19 */
  129         SIGWINCH,               /* 20 */
  130         SIGURG,                 /* 21 */
  131         SIGIO,                  /* 22 */
  132         SIGSTOP,                /* 23 */
  133         SIGTSTP,                /* 24 */
  134         SIGCONT,                /* 25 */
  135         SIGTTIN,                /* 26 */
  136         SIGTTOU,                /* 27 */
  137         SIGVTALRM,              /* 28 */
  138         SIGPROF,                /* 29 */
  139         SIGXCPU,                /* 30 */
  140         SIGXFSZ,                /* 31 */
  141         SIGRTMIN + 0,           /* 32 */
  142         SIGRTMIN + 1,           /* 33 */
  143         SIGRTMIN + 2,           /* 34 */
  144         SIGRTMIN + 3,           /* 35 */
  145         SIGRTMIN + 4,           /* 36 */
  146         SIGRTMIN + 5,           /* 37 */
  147         SIGRTMIN + 6,           /* 38 */
  148         SIGRTMIN + 7,           /* 39 */
  149         SIGRTMIN + 8,           /* 40 */
  150         SIGRTMIN + 9,           /* 41 */
  151         SIGRTMIN + 10,          /* 42 */
  152         SIGRTMIN + 11,          /* 43 */
  153         SIGRTMIN + 12,          /* 44 */
  154         SIGRTMIN + 13,          /* 45 */
  155         SIGRTMIN + 14,          /* 46 */
  156         SIGRTMIN + 15,          /* 47 */
  157         SIGRTMIN + 16,          /* 48 */
  158         SIGRTMIN + 17,          /* 49 */
  159         SIGRTMIN + 18,          /* 50 */
  160         SIGRTMIN + 19,          /* 51 */
  161         SIGRTMIN + 20,          /* 52 */
  162         SIGRTMIN + 21,          /* 53 */
  163         SIGRTMIN + 22,          /* 54 */
  164         SIGRTMIN + 23,          /* 55 */
  165         SIGRTMIN + 24,          /* 56 */
  166         SIGRTMIN + 25,          /* 57 */
  167         SIGRTMIN + 26,          /* 58 */
  168         SIGRTMIN + 27,          /* 59 */
  169         SIGRTMIN + 28,          /* 60 */
  170         SIGRTMIN + 29,          /* 61 */
  171         SIGRTMIN + 30,          /* 62 */
  172         0,                      /* 63 */
  173 };

Cache object: 3772afc44687e4c1af643289e77c4f5a


[ 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.