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_siginfo.h

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_siginfo.h,v 1.4 2002/06/19 17:33:01 eeh Exp $      */
    2 
    3 /*-
    4  * Copyright (c) 1994 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  * 3. All advertising materials mentioning features or use of this software
   19  *    must display the following acknowledgement:
   20  *        This product includes software developed by the NetBSD
   21  *        Foundation, Inc. and its contributors.
   22  * 4. Neither the name of The NetBSD Foundation nor the names of its
   23  *    contributors may be used to endorse or promote products derived
   24  *    from this software without specific prior written permission.
   25  *
   26  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   27  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   28  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   29  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   30  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   31  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   32  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   33  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   34  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   35  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   36  * POSSIBILITY OF SUCH DAMAGE.
   37  */
   38 
   39 #ifndef _SVR4_SIGINFO_H_
   40 #define _SVR4_SIGINFO_H_
   41 
   42 #define SVR4_ILL_ILLOPC         1
   43 #define SVR4_ILL_ILLOPN         2
   44 #define SVR4_ILL_ILLADR         3
   45 #define SVR4_ILL_ILLTRP         4
   46 #define SVR4_ILL_PRVOPC         5
   47 #define SVR4_ILL_PRVREG         6
   48 #define SVR4_ILL_COPROC         7
   49 #define SVR4_ILL_BADSTK         8
   50 
   51 #define SVR4_FPE_INTDIV         1
   52 #define SVR4_FPE_INTOVF         2
   53 #define SVR4_FPE_FLTDIV         3
   54 #define SVR4_FPE_FLTOVF         4
   55 #define SVR4_FPE_FLTUND         5
   56 #define SVR4_FPE_FLTRES         6
   57 #define SVR4_FPE_FLTINV         7
   58 #define SVR4_FPE_FLTSUB         8
   59 
   60 #define SVR4_SEGV_MAPERR        1
   61 #define SVR4_SEGV_ACCERR        2
   62 
   63 #define SVR4_BUS_ADRALN         1
   64 #define SVR4_BUS_ADRERR         2
   65 #define SVR4_BUS_OBJERR         3
   66 
   67 #define SVR4_TRAP_BRKPT         1
   68 #define SVR4_TRAP_TRACE         2
   69 
   70 #define SVR4_POLL_IN            1
   71 #define SVR4_POLL_OUT           2
   72 #define SVR4_POLL_MSG           3
   73 #define SVR4_POLL_ERR           4
   74 #define SVR4_POLL_PRI           5
   75 
   76 #define SVR4_CLD_EXITED         1
   77 #define SVR4_CLD_KILLED         2
   78 #define SVR4_CLD_DUMPED         3
   79 #define SVR4_CLD_TRAPPED        4
   80 #define SVR4_CLD_STOPPED        5
   81 #define SVR4_CLD_CONTINUED      6
   82 
   83 #define SVR4_EMT_TAGOVF         1
   84 
   85 typedef union svr4_siginfo {
   86         char    si_pad[128];    /* Total size; for future expansion */
   87         struct {
   88                 int                             _signo;
   89                 int                             _code;
   90                 int                             _errno;
   91 #ifdef _LP64
   92                 /* In _LP64 the union starts on an 8-byte boundary. */
   93                 int                             _pad;
   94 #endif
   95                 union {
   96                         struct {
   97                                 svr4_pid_t      _pid;
   98                                 svr4_clock_t    _utime;
   99                                 int             _status;
  100                                 svr4_clock_t    _stime;
  101                         } _child;
  102 
  103                         struct {
  104                                 caddr_t         _addr;
  105                                 int             _trap;
  106                         } _fault;
  107                 } _reason;
  108         } _info;
  109 } svr4_siginfo_t;
  110 
  111 #define si_signo        _info._signo
  112 #define si_code         _info._code
  113 #define si_errno        _info._errno
  114 
  115 #define si_pid          _info._reason._child._pid
  116 #define si_stime        _info._reason._child._stime
  117 #define si_status       _info._reason._child._status
  118 #define si_utime        _info._reason._child._utime
  119 
  120 #define si_addr         _info._reason._fault._addr
  121 #define si_trap         _info._reason._fault._trap
  122 
  123 #endif /* !_SVR4_SIGINFO_H_ */

Cache object: 8beb557d01b3a916f722e0dd23d9f7f7


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