]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/unix/sysv/linux/mips/bits/sigaction.h
Linux/M68k specific mman.h definitions.
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / mips / bits / sigaction.h
CommitLineData
eec226c3
UD
1/* The proper definitions for Linux/MIPS's sigaction.
2 Copyright (C) 1993, 1994, 1995, 1997 Free Software Foundation, Inc.
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
6 modify it under the terms of the GNU Library General Public License as
7 published by the Free Software Foundation; either version 2 of the
8 License, or (at your option) any later version.
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
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public
16 License along with the GNU C Library; see the file COPYING.LIB. If not,
17 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. */
19
20/* Structure describing the action to be taken when a signal arrives. */
21struct sigaction
22 {
23 /* Special flags. */
24 unsigned int sa_flags;
25
26 /* Signal handler. */
27 __sighandler_t sa_handler;
28
29 /* Additional set of signals to be blocked. */
30 __sigset_t sa_mask;
31
32 /* The ABI says here are two unused ints following. */
33 /* Restore handler. */
34 void (*sa_restorer) __P ((void));
35
36#if (_MIPS_ISA == _MIPS_ISA_MIPS1) || (_MIPS_ISA == _MIPS_ISA_MIPS2)
37 int sa_resv[1];
38#endif
39 };
40
41/* Bits in `sa_flags'. */
42#define SA_NOCLDSTOP 1 /* Don't send SIGCHLD when children stop. */
43#ifdef __USE_MISC
44#define SA_STACK 0x08000000 /* Use signal stack by using `sa_restorer'. */
45#define SA_RESTART 0x10000000 /* Don't restart syscall on signal return. */
46#define SA_INTERRUPT 0x20000000 /* Historical no-op. */
47#define SA_NODEFER 0x40000000 /* Don't automatically block the signal when
48 its handler is being executed. */
49#define SA_RESETHAND 0x80000000 /* Reset to SIG_DFL on entry to handler. */
50
51/* Some aliases for the SA_ constants. */
52#define SA_NOMASK SA_NODEFER
53#define SA_ONESHOT SA_RESETHAND
54#endif
55
56/* Values for the HOW argument to `sigprocmask'. */
57#define SIG_NOP 0 /* 0 is unused to catch errors */
58#define SIG_BLOCK 1 /* Block signals. */
59#define SIG_UNBLOCK 2 /* Unblock signals. */
60#define SIG_SETMASK 3 /* Set the set of blocked signals. */
61#define SIG_SETMASK32 256 /* Goodie from SGI for BSD compatibility:
62 set only the low 32 bit of the sigset. */