OSDN Git Service

import files from glibc for an ia64/static port
[uclinux-h8/uClibc.git] / libc / sysdeps / linux / ia64 / bits / sigstack.h
1 /* sigstack, sigaltstack definitions.
2    Copyright (C) 1998, 2000, 2002, 2003 Free Software Foundation, Inc.
3    This file is part of the GNU C Library.
4
5    The GNU C Library is free software; you can redistribute it and/or
6    modify it under the terms of the GNU Lesser General Public
7    License as published by the Free Software Foundation; either
8    version 2.1 of the License, or (at your option) any later version.
9
10    The GNU C Library is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13    Lesser General Public License for more details.
14
15    You should have received a copy of the GNU Lesser General Public
16    License along with the GNU C Library; if not, write to the Free
17    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18    02111-1307 USA.  */
19
20 #ifndef _SIGNAL_H
21 # error "Never include this file directly.  Use <signal.h> instead"
22 #endif
23
24 #ifndef _SIGSTACK_H
25 #define _SIGSTACK_H     1
26
27 /* Structure describing a signal stack (obsolete).  */
28 struct sigstack
29   {
30     __ptr_t ss_sp;              /* Signal stack pointer.  */
31     int ss_onstack;             /* Nonzero if executing on this stack.  */
32   };
33
34
35 /* Possible values for `ss_flags.'.  */
36 enum
37 {
38   SS_ONSTACK = 1,
39 #define SS_ONSTACK      SS_ONSTACK
40   SS_DISABLE
41 #define SS_DISABLE      SS_DISABLE
42 };
43
44 /* Minimum stack size for a signal handler.
45
46    Yes, this should be 131072 but the constant got defined incorrectly
47    in the kernel and we have to live with it.  Users should in any case
48    use SIGSTKSZ as the size user-supplied buffers should have.  */
49 #define MINSIGSTKSZ     131027
50
51 /* System default stack size.  */
52 #define SIGSTKSZ        262144
53
54
55 /* Alternate, preferred interface.  */
56 typedef struct sigaltstack
57   {
58     __ptr_t ss_sp;
59     int ss_flags;
60     size_t ss_size;
61   } stack_t;
62
63 #endif  /* bits/sigstack.h */