]> git.ipfire.org Git - thirdparty/glibc.git/blame - bits/siginfo-consts.h
build-many-glibcs.py: Add openrisc hard float glibc variant
[thirdparty/glibc.git] / bits / siginfo-consts.h
CommitLineData
a992f506 1/* siginfo_t constants. Stub version.
dff8da6b 2 Copyright (C) 1997-2024 Free Software Foundation, Inc.
cbdee279
UD
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
cbdee279
UD
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
41bdb6e2 13 Lesser General Public License for more details.
cbdee279 14
41bdb6e2 15 You should have received a copy of the GNU Lesser General Public
59ba27a6 16 License along with the GNU C Library; if not, see
5a82c748 17 <https://www.gnu.org/licenses/>. */
cbdee279 18
a992f506
ZW
19#ifndef _BITS_SIGINFO_CONSTS_H
20#define _BITS_SIGINFO_CONSTS_H 1
cbdee279
UD
21
22/* Values for `si_code'. Positive values are reserved for kernel-generated
23 signals. */
24enum
25{
26 SI_ASYNCIO = -4, /* Sent by AIO completion. */
bd355af0 27# define SI_ASYNCIO SI_ASYNCIO
cbdee279 28 SI_MESGQ, /* Sent by real time mesq state change. */
bd355af0 29# define SI_MESGQ SI_MESGQ
cbdee279 30 SI_TIMER, /* Sent by timer expiration. */
bd355af0 31# define SI_TIMER SI_TIMER
cbdee279 32 SI_QUEUE, /* Sent by sigqueue. */
bd355af0 33# define SI_QUEUE SI_QUEUE
cbdee279 34 SI_USER /* Sent by kill, sigsend, raise. */
bd355af0 35# define SI_USER SI_USER
cbdee279
UD
36};
37
38
5c780849 39# if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
cbdee279
UD
40/* `si_code' values for SIGILL signal. */
41enum
42{
43 ILL_ILLOPC = 1, /* Illegal opcode. */
5c780849 44# define ILL_ILLOPC ILL_ILLOPC
1f8f2b60 45 ILL_ILLOPN, /* Illegal operand. */
5c780849 46# define ILL_ILLOPN ILL_ILLOPN
cbdee279 47 ILL_ILLADR, /* Illegal addressing mode. */
5c780849 48# define ILL_ILLADR ILL_ILLADR
cbdee279 49 ILL_ILLTRP, /* Illegal trap. */
5c780849 50# define ILL_ILLTRP ILL_ILLTRP
cbdee279 51 ILL_PRVOPC, /* Privileged opcode. */
5c780849 52# define ILL_PRVOPC ILL_PRVOPC
cbdee279 53 ILL_PRVREG, /* Privileged register. */
5c780849 54# define ILL_PRVREG ILL_PRVREG
cbdee279 55 ILL_COPROC, /* Coprocessor error. */
5c780849 56# define ILL_COPROC ILL_COPROC
cbdee279 57 ILL_BADSTK /* Internal stack error. */
5c780849 58# define ILL_BADSTK ILL_BADSTK
cbdee279
UD
59};
60
61/* `si_code' values for SIGFPE signal. */
62enum
63{
64 FPE_INTDIV = 1, /* Integer divide by zero. */
5c780849 65# define FPE_INTDIV FPE_INTDIV
cbdee279 66 FPE_INTOVF, /* Integer overflow. */
5c780849 67# define FPE_INTOVF FPE_INTOVF
cbdee279 68 FPE_FLTDIV, /* Floating point divide by zero. */
5c780849 69# define FPE_FLTDIV FPE_FLTDIV
cbdee279 70 FPE_FLTOVF, /* Floating point overflow. */
5c780849 71# define FPE_FLTOVF FPE_FLTOVF
cbdee279 72 FPE_FLTUND, /* Floating point underflow. */
5c780849 73# define FPE_FLTUND FPE_FLTUND
cbdee279 74 FPE_FLTRES, /* Floating point inexact result. */
5c780849 75# define FPE_FLTRES FPE_FLTRES
cbdee279 76 FPE_FLTINV, /* Floating point invalid operation. */
5c780849 77# define FPE_FLTINV FPE_FLTINV
cbdee279 78 FPE_FLTSUB /* Subscript out of range. */
5c780849 79# define FPE_FLTSUB FPE_FLTSUB
cbdee279
UD
80};
81
82/* `si_code' values for SIGSEGV signal. */
83enum
84{
85 SEGV_MAPERR = 1, /* Address not mapped to object. */
5c780849 86# define SEGV_MAPERR SEGV_MAPERR
cbdee279 87 SEGV_ACCERR /* Invalid permissions for mapped object. */
5c780849 88# define SEGV_ACCERR SEGV_ACCERR
cbdee279
UD
89};
90
91/* `si_code' values for SIGBUS signal. */
92enum
93{
94 BUS_ADRALN = 1, /* Invalid address alignment. */
5c780849 95# define BUS_ADRALN BUS_ADRALN
7f0d9e61 96 BUS_ADRERR, /* Non-existent physical address. */
5c780849 97# define BUS_ADRERR BUS_ADRERR
cbdee279 98 BUS_OBJERR /* Object specific hardware error. */
5c780849 99# define BUS_OBJERR BUS_OBJERR
cbdee279 100};
5c780849 101# endif
cbdee279 102
5c780849 103# ifdef __USE_XOPEN_EXTENDED
cbdee279
UD
104/* `si_code' values for SIGTRAP signal. */
105enum
106{
107 TRAP_BRKPT = 1, /* Process breakpoint. */
5c780849 108# define TRAP_BRKPT TRAP_BRKPT
cbdee279 109 TRAP_TRACE /* Process trace trap. */
5c780849 110# define TRAP_TRACE TRAP_TRACE
cbdee279 111};
5c780849 112# endif
cbdee279 113
5c780849 114# if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8
cbdee279
UD
115/* `si_code' values for SIGCHLD signal. */
116enum
117{
118 CLD_EXITED = 1, /* Child has exited. */
5c780849 119# define CLD_EXITED CLD_EXITED
cbdee279 120 CLD_KILLED, /* Child was killed. */
5c780849 121# define CLD_KILLED CLD_KILLED
cbdee279 122 CLD_DUMPED, /* Child terminated abnormally. */
5c780849 123# define CLD_DUMPED CLD_DUMPED
cbdee279 124 CLD_TRAPPED, /* Traced child has trapped. */
5c780849 125# define CLD_TRAPPED CLD_TRAPPED
cbdee279 126 CLD_STOPPED, /* Child has stopped. */
5c780849 127# define CLD_STOPPED CLD_STOPPED
cbdee279 128 CLD_CONTINUED /* Stopped child has continued. */
5c780849 129# define CLD_CONTINUED CLD_CONTINUED
cbdee279
UD
130};
131
132/* `si_code' values for SIGPOLL signal. */
133enum
134{
135 POLL_IN = 1, /* Data input available. */
5c780849 136# define POLL_IN POLL_IN
cbdee279 137 POLL_OUT, /* Output buffers available. */
5c780849 138# define POLL_OUT POLL_OUT
cbdee279 139 POLL_MSG, /* Input message available. */
5c780849 140# define POLL_MSG POLL_MSG
cbdee279 141 POLL_ERR, /* I/O error. */
5c780849 142# define POLL_ERR POLL_ERR
cbdee279 143 POLL_PRI, /* High priority input available. */
5c780849 144# define POLL_PRI POLL_PRI
cbdee279 145 POLL_HUP /* Device disconnected. */
5c780849 146# define POLL_HUP POLL_HUP
cbdee279 147};
5c780849 148# endif
cbdee279 149
a992f506 150#endif