]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/generic/bits/sigaction.h
Update to LGPL v2.1.
[thirdparty/glibc.git] / sysdeps / generic / bits / sigaction.h
CommitLineData
7ce241a0 1/* Copyright (C) 1991, 1992, 1996, 1997, 1998 Free Software Foundation, Inc.
478b92f0 2 This file is part of the GNU C Library.
28f540f4 3
478b92f0 4 The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
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.
28f540f4 8
478b92f0
UD
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
41bdb6e2 12 Lesser General Public License for more details.
28f540f4 13
41bdb6e2
AJ
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. */
28f540f4 18
f4017d20
UD
19#ifndef _SIGNAL_H
20# error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
21#endif
22
28f540f4
RM
23/* These definitions match those used by the 4.4 BSD kernel.
24 If the operating system has a `sigaction' system call that correctly
25 implements the POSIX.1 behavior, there should be a system-dependent
26 version of this file that defines `struct sigaction' and the `SA_*'
27 constants appropriately. */
28
29/* Structure describing the action to be taken when a signal arrives. */
30struct sigaction
31 {
32 /* Signal handler. */
33 __sighandler_t sa_handler;
34
35 /* Additional set of signals to be blocked. */
36 __sigset_t sa_mask;
37
38 /* Special flags. */
39 int sa_flags;
40 };
41
42/* Bits in `sa_flags'. */
7ce241a0
UD
43#if defined __USE_UNIX98 || defined __USE_MISC
44# define SA_ONSTACK 0x0001 /* Take signal on signal stack. */
45# define SA_RESTART 0x0002 /* Restart syscall on signal return. */
28f540f4 46#endif
7ce241a0 47#define SA_NOCLDSTOP 0x0008 /* Don't send SIGCHLD when children stop. */
28f540f4
RM
48
49
50/* Values for the HOW argument to `sigprocmask'. */
51#define SIG_BLOCK 1 /* Block signals. */
52#define SIG_UNBLOCK 2 /* Unblock signals. */
53#define SIG_SETMASK 3 /* Set the set of blocked signals. */