2006-01-07 Roland McGrath <roland@redhat.com>
[glibc-ports.git] / sysdeps / unix / sysv / minix / bits / sigaction.h
blob4b04b7b55997908ad8b2a1e20f6c8099ed4a0aaf
1 /* Copyright (C) 1992, 1996, 1997 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, write to the Free
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17 02111-1307 USA. */
19 #ifndef _SIGNAL_H
20 # error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
21 #endif
23 /* Structure describing the action to be taken when a signal arrives. */
24 struct sigaction
26 /* Signal handler. */
27 __sighandler_t sa_handler;
29 /* Additional set of signals to be blocked. */
30 __sigset_t sa_mask;
32 /* Special flags. */
33 int sa_flags;
36 /* Bits in `sa_flags'. */
37 #ifdef __USE_MISC
38 # define SA_ONSTACK 0x1 /* Take signal on signal stack. */
39 # define SA_RESETHAND 0x2 /* Reset signal handler when signal caught. */
40 # define SA_NODEFER 0x4 /* Don't block signal while catching it. */
41 # define SA_RESTART 0x8 /* Restart syscall on signal return. */
42 # define SA_SIGINFO 0x10 /* Extended signal handling. */
43 # define SA_NOCLDWAIT 0x20 /* Don't create zombies. */
44 # define SA_COMPAT 0x80 /* Internal flag for old signal catchers. */
45 # define SA_DISABLE 0x100 /* Disable alternate signal stack. */
46 #endif
47 #define SA_NOCLDSTOP 0x40 /* Don't send SIGCHLD when children stop. */
50 /* Values for the HOW argument to `sigprocmask'. */
51 #define SIG_BLOCK 0 /* Block signals. */
52 #define SIG_UNBLOCK 1 /* Unblock signals. */
53 #define SIG_SETMASK 2 /* Set the set of blocked signals. */