chiark / gitweb /
eglibc (2.11.3-4+deb6u3) squeeze-lts; urgency=medium
[eglibc.git] / ports / sysdeps / unix / sysv / minix / bits / sigaction.h
1 /* Copyright (C) 1992, 1996, 1997 Free Software Foundation, Inc.
2    This file is part of the GNU C Library.
3
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.
8
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.
13
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.  */
18
19 #ifndef _SIGNAL_H
20 # error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
21 #endif
22
23 /* Structure describing the action to be taken when a signal arrives.  */
24 struct sigaction
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     /* Special flags.  */
33     int sa_flags;
34   };
35
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.  */
48
49
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.  */