Upload Tizen:Base source
[external/eglibc.git] / ports / sysdeps / unix / bsd / osf / bits / sigaction.h
1 /* Structure and constant definitions for sigaction et al.  OSF/1 version.
2    Copyright (C) 1993, 1996, 1997 Free Software Foundation, Inc.
3    This file is part of the GNU C Library.
4    Contributed by Brendan Kehoe (brendan@zen.org).
5
6    The GNU C Library is free software; you can redistribute it and/or
7    modify it under the terms of the GNU Lesser General Public
8    License as published by the Free Software Foundation; either
9    version 2.1 of the License, or (at your option) any later version.
10
11    The GNU C Library is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14    Lesser General Public License for more details.
15
16    You should have received a copy of the GNU Lesser General Public
17    License along with the GNU C Library; if not, write to the Free
18    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19    02111-1307 USA.  */
20
21 #ifndef _SIGNAL_H
22 # error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
23 #endif
24
25 /* Structure describing the action to be taken when a signal arrives.  */
26 struct sigaction
27   {
28     /* Signal handler.  */
29     __sighandler_t sa_handler;
30
31     /* Additional set of signals to be blocked.  */
32     __sigset_t sa_mask;
33
34     /* Special flags.  */
35     int sa_flags;
36   };
37
38 /* Bits in `sa_flags'.  */
39 #ifdef  __USE_BSD
40 # define SA_ONSTACK     0x1     /* Take signal on signal stack.  */
41 # define SA_RESTART     0x2     /* Restart syscall on signal return.  */
42 # define SA_DISABLE     0x4     /* Disable alternate signal stack.  */
43 #endif
44 #define SA_NOCLDSTOP    0x4     /* Don't send SIGCHLD when children stop.  */
45
46
47 /* Values for the HOW argument to `sigprocmask'.  */
48 #define SIG_BLOCK       1       /* Block signals.  */
49 #define SIG_UNBLOCK     2       /* Unblock signals.  */
50 #define SIG_SETMASK     3       /* Set the set of blocked signals.  */