Blame bits/siginfo-consts.h

Packit 6c4009
/* siginfo_t constants.  Stub version.
Packit 6c4009
   Copyright (C) 1997-2018 Free Software Foundation, Inc.
Packit 6c4009
   This file is part of the GNU C Library.
Packit 6c4009
Packit 6c4009
   The GNU C Library is free software; you can redistribute it and/or
Packit 6c4009
   modify it under the terms of the GNU Lesser General Public
Packit 6c4009
   License as published by the Free Software Foundation; either
Packit 6c4009
   version 2.1 of the License, or (at your option) any later version.
Packit 6c4009
Packit 6c4009
   The GNU C Library is distributed in the hope that it will be useful,
Packit 6c4009
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 6c4009
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 6c4009
   Lesser General Public License for more details.
Packit 6c4009
Packit 6c4009
   You should have received a copy of the GNU Lesser General Public
Packit 6c4009
   License along with the GNU C Library; if not, see
Packit 6c4009
   <http://www.gnu.org/licenses/>.  */
Packit 6c4009
Packit 6c4009
#ifndef _BITS_SIGINFO_CONSTS_H
Packit 6c4009
#define _BITS_SIGINFO_CONSTS_H 1
Packit 6c4009
Packit 6c4009
/* Values for `si_code'.  Positive values are reserved for kernel-generated
Packit 6c4009
   signals.  */
Packit 6c4009
enum
Packit 6c4009
{
Packit 6c4009
  SI_ASYNCIO = -4,		/* Sent by AIO completion.  */
Packit 6c4009
# define SI_ASYNCIO	SI_ASYNCIO
Packit 6c4009
  SI_MESGQ,			/* Sent by real time mesq state change.  */
Packit 6c4009
# define SI_MESGQ	SI_MESGQ
Packit 6c4009
  SI_TIMER,			/* Sent by timer expiration.  */
Packit 6c4009
# define SI_TIMER	SI_TIMER
Packit 6c4009
  SI_QUEUE,			/* Sent by sigqueue.  */
Packit 6c4009
# define SI_QUEUE	SI_QUEUE
Packit 6c4009
  SI_USER			/* Sent by kill, sigsend, raise.  */
Packit 6c4009
# define SI_USER	SI_USER
Packit 6c4009
};
Packit 6c4009
Packit 6c4009
Packit 6c4009
# if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
Packit 6c4009
/* `si_code' values for SIGILL signal.  */
Packit 6c4009
enum
Packit 6c4009
{
Packit 6c4009
  ILL_ILLOPC = 1,		/* Illegal opcode.  */
Packit 6c4009
#  define ILL_ILLOPC	ILL_ILLOPC
Packit 6c4009
  ILL_ILLOPN,			/* Illegal operand.  */
Packit 6c4009
#  define ILL_ILLOPN	ILL_ILLOPN
Packit 6c4009
  ILL_ILLADR,			/* Illegal addressing mode.  */
Packit 6c4009
#  define ILL_ILLADR	ILL_ILLADR
Packit 6c4009
  ILL_ILLTRP,			/* Illegal trap. */
Packit 6c4009
#  define ILL_ILLTRP	ILL_ILLTRP
Packit 6c4009
  ILL_PRVOPC,			/* Privileged opcode.  */
Packit 6c4009
#  define ILL_PRVOPC	ILL_PRVOPC
Packit 6c4009
  ILL_PRVREG,			/* Privileged register.  */
Packit 6c4009
#  define ILL_PRVREG	ILL_PRVREG
Packit 6c4009
  ILL_COPROC,			/* Coprocessor error.  */
Packit 6c4009
#  define ILL_COPROC	ILL_COPROC
Packit 6c4009
  ILL_BADSTK			/* Internal stack error.  */
Packit 6c4009
#  define ILL_BADSTK	ILL_BADSTK
Packit 6c4009
};
Packit 6c4009
Packit 6c4009
/* `si_code' values for SIGFPE signal.  */
Packit 6c4009
enum
Packit 6c4009
{
Packit 6c4009
  FPE_INTDIV = 1,		/* Integer divide by zero.  */
Packit 6c4009
#  define FPE_INTDIV	FPE_INTDIV
Packit 6c4009
  FPE_INTOVF,			/* Integer overflow.  */
Packit 6c4009
#  define FPE_INTOVF	FPE_INTOVF
Packit 6c4009
  FPE_FLTDIV,			/* Floating point divide by zero.  */
Packit 6c4009
#  define FPE_FLTDIV	FPE_FLTDIV
Packit 6c4009
  FPE_FLTOVF,			/* Floating point overflow.  */
Packit 6c4009
#  define FPE_FLTOVF	FPE_FLTOVF
Packit 6c4009
  FPE_FLTUND,			/* Floating point underflow.  */
Packit 6c4009
#  define FPE_FLTUND	FPE_FLTUND
Packit 6c4009
  FPE_FLTRES,			/* Floating point inexact result.  */
Packit 6c4009
#  define FPE_FLTRES	FPE_FLTRES
Packit 6c4009
  FPE_FLTINV,			/* Floating point invalid operation.  */
Packit 6c4009
#  define FPE_FLTINV	FPE_FLTINV
Packit 6c4009
  FPE_FLTSUB			/* Subscript out of range.  */
Packit 6c4009
#  define FPE_FLTSUB	FPE_FLTSUB
Packit 6c4009
};
Packit 6c4009
Packit 6c4009
/* `si_code' values for SIGSEGV signal.  */
Packit 6c4009
enum
Packit 6c4009
{
Packit 6c4009
  SEGV_MAPERR = 1,		/* Address not mapped to object.  */
Packit 6c4009
#  define SEGV_MAPERR	SEGV_MAPERR
Packit 6c4009
  SEGV_ACCERR			/* Invalid permissions for mapped object.  */
Packit 6c4009
#  define SEGV_ACCERR	SEGV_ACCERR
Packit 6c4009
};
Packit 6c4009
Packit 6c4009
/* `si_code' values for SIGBUS signal.  */
Packit 6c4009
enum
Packit 6c4009
{
Packit 6c4009
  BUS_ADRALN = 1,		/* Invalid address alignment.  */
Packit 6c4009
#  define BUS_ADRALN	BUS_ADRALN
Packit 6c4009
  BUS_ADRERR,			/* Non-existant physical address.  */
Packit 6c4009
#  define BUS_ADRERR	BUS_ADRERR
Packit 6c4009
  BUS_OBJERR			/* Object specific hardware error.  */
Packit 6c4009
#  define BUS_OBJERR	BUS_OBJERR
Packit 6c4009
};
Packit 6c4009
# endif
Packit 6c4009
Packit 6c4009
# ifdef __USE_XOPEN_EXTENDED
Packit 6c4009
/* `si_code' values for SIGTRAP signal.  */
Packit 6c4009
enum
Packit 6c4009
{
Packit 6c4009
  TRAP_BRKPT = 1,		/* Process breakpoint.  */
Packit 6c4009
#  define TRAP_BRKPT	TRAP_BRKPT
Packit 6c4009
  TRAP_TRACE			/* Process trace trap.  */
Packit 6c4009
#  define TRAP_TRACE	TRAP_TRACE
Packit 6c4009
};
Packit 6c4009
# endif
Packit 6c4009
Packit 6c4009
# if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
Packit 6c4009
/* `si_code' values for SIGCHLD signal.  */
Packit 6c4009
enum
Packit 6c4009
{
Packit 6c4009
  CLD_EXITED = 1,		/* Child has exited.  */
Packit 6c4009
#  define CLD_EXITED	CLD_EXITED
Packit 6c4009
  CLD_KILLED,			/* Child was killed.  */
Packit 6c4009
#  define CLD_KILLED	CLD_KILLED
Packit 6c4009
  CLD_DUMPED,			/* Child terminated abnormally.  */
Packit 6c4009
#  define CLD_DUMPED	CLD_DUMPED
Packit 6c4009
  CLD_TRAPPED,			/* Traced child has trapped.  */
Packit 6c4009
#  define CLD_TRAPPED	CLD_TRAPPED
Packit 6c4009
  CLD_STOPPED,			/* Child has stopped.  */
Packit 6c4009
#  define CLD_STOPPED	CLD_STOPPED
Packit 6c4009
  CLD_CONTINUED			/* Stopped child has continued.  */
Packit 6c4009
#  define CLD_CONTINUED	CLD_CONTINUED
Packit 6c4009
};
Packit 6c4009
Packit 6c4009
/* `si_code' values for SIGPOLL signal.  */
Packit 6c4009
enum
Packit 6c4009
{
Packit 6c4009
  POLL_IN = 1,			/* Data input available.  */
Packit 6c4009
#  define POLL_IN	POLL_IN
Packit 6c4009
  POLL_OUT,			/* Output buffers available.  */
Packit 6c4009
#  define POLL_OUT	POLL_OUT
Packit 6c4009
  POLL_MSG,			/* Input message available.   */
Packit 6c4009
#  define POLL_MSG	POLL_MSG
Packit 6c4009
  POLL_ERR,			/* I/O error.  */
Packit 6c4009
#  define POLL_ERR	POLL_ERR
Packit 6c4009
  POLL_PRI,			/* High priority input available.  */
Packit 6c4009
#  define POLL_PRI	POLL_PRI
Packit 6c4009
  POLL_HUP			/* Device disconnected.  */
Packit 6c4009
#  define POLL_HUP	POLL_HUP
Packit 6c4009
};
Packit 6c4009
# endif
Packit 6c4009
Packit 6c4009
#endif