]> git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/unix/sysv/minix/sigaction.h
initial import
[thirdparty/glibc.git] / sysdeps / unix / sysv / minix / sigaction.h
1 /* Copyright (C) 1992 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 Library General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 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 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public
15 License along with the GNU C Library; see the file COPYING.LIB. If
16 not, write to the, 1992 Free Software Foundation, Inc., 675 Mass Ave,
17 Cambridge, MA 02139, USA. */
18
19 /* Structure describing the action to be taken when a signal arrives. */
20 struct sigaction
21 {
22 /* Signal handler. */
23 __sighandler_t sa_handler;
24
25 /* Additional set of signals to be blocked. */
26 __sigset_t sa_mask;
27
28 /* Special flags. */
29 int sa_flags;
30 };
31
32 /* Bits in `sa_flags'. */
33 #ifdef __USE_MISC
34 #define SA_ONSTACK 0x1 /* Take signal on signal stack. */
35 #define SA_RESETHAND 0x2 /* Reset signal handler when signal caught. */
36 #define SA_NODEFER 0x4 /* Don't block signal while catching it. */
37 #define SA_RESTART 0x8 /* Don't restart syscall on signal return. */
38 #define SA_SIGINFO 0x10 /* Extended signal handling. */
39 #define SA_NOCLDWAIT 0x20 /* Don't create zombies. */
40 #define SA_COMPAT 0x80 /* Internal flag for old signal catchers. */
41 #define SA_DISABLE 0x100 /* Disable alternate signal stack. */
42 #endif
43 #define SA_NOCLDSTOP 0x40 /* Don't send SIGCHLD when children stop. */
44
45
46 /* Values for the HOW argument to `sigprocmask'. */
47 #define SIG_BLOCK 0 /* Block signals. */
48 #define SIG_UNBLOCK 1 /* Unblock signals. */
49 #define SIG_SETMASK 2 /* Set the set of blocked signals. */